alibabacloud-idaas-ecs-m2m-federated-credential
IDaaS ECS M2M Federation (PKCS#7, Without AK)
Implement the verified end-to-end flow: ECS instance identity signature (PKCS#7 + IMDSv2) → signature verification by an EIAM federated credential provider → application federated credential verification → M2M token issuance using client_credentials.
All scripts are in scripts/. They use Python 3 with the standard library only, calling the aliyun CLI through subprocess (credentials must already be configured). Run scripts from the workspace root: python3 scripts/<script>.py.
Respond in the user's language unless they request otherwise.
For exact API versions, required request parameters, CLI option mappings, and response fields, read OpenAPI contracts. Each listed RPC Action is independent; the OAuth token endpoint is a separate instance HTTP API.
Execute Scoped Read-Only Requests
Preserve the API, region, page number, page size, and filters explicitly supplied by the user. Initialize the session and read the manifest before the first cloud call. Execute only the requested read operation using the configured credential chain and the session user-agent; do not start parameter collection, creation, authorization, or cleanup for an inventory-only request.