An OIDC token carries claims about an authenticated workload. A continuous-delivery platform presents it to a cloud provider, which exchanges it for temporary credentials instead of requiring stored credentials, rotation, or service accounts. section 8.5.1
The provider must explicitly use OIDC. Spacelift exposes a token file for each run, while GitHub Actions makes the token available through workflow permissions; trust conditions should restrict access to the intended stack or workflow. section 8.5.1
Assuming an AWS role from Spacelift
Configure the AWS provider with an AWS role ARN and the automatically created token file: web_identity_token_file = "/mnt/workspace/spacelift.oidc". AWS exchanges the OIDC token for temporary credentials.
