trust policy
A JSON document on a cloud role that says who may assume the role and under which conditions.
In more detail
It names the principal allowed in, the action allowed, and conditions that must hold. For keyless deploys the conditions compare token claims such as audience and subject with exact values.
Example
In AWS: The policy on an IAM role that says which principals may assume it, using the sts:AssumeRole action.Related terms
- IAM role — A cloud identity with permissions but no password, which trusted users or workloads temporarily assume.
- principal — The identity making a request, such as a user, a role session or a service, that an access policy allows or denies.
- AWS STS — The AWS Security Token Service, which issues temporary credentials when someone assumes a role.
- resource-based policy — An IAM policy attached to a resource, such as a bucket, queue or encryption key, that names which principals may use it.
- subject claim — The sub claim in a token, which identifies the user or service the token is about.
- AssumeRoleWithWebIdentity — The AWS STS operation that exchanges a token from a trusted identity provider for temporary credentials of one IAM role.
- AssumeRole — The STS operation a principal calls to take on an IAM role and receive that role's temporary credentials.
- claim — One statement inside a token, as a name and value, such as sub (subject), exp (expiry), iss (issuer), aud (audience) or scope.
- external ID — Identities from outside an organisation, such as the work accounts of partners or the social accounts of customers, that are allowed to sign in to its apps.
Taught in
- The Root Key In The Backup Script — AWS Certified Cloud Practitioner (CLF-C02) Exam Prep
- Friday Evening, Nobody To Call — AWS Certified Cloud Practitioner (CLF-C02) Exam Prep
- Billing Sprint: Worth An Evening? — AWS Certified Cloud Practitioner (CLF-C02) Exam Prep
- StackSets: Eighty Failures Before Lunch — AWS Certified DevOps Engineer – Professional (DOP-C02) Exam Prep
- Monitoring As Code: The Alarm That Watched Nothing — AWS Certified DevOps Engineer – Professional (DOP-C02) Exam Prep
- Auditing: Who Opened Port Twenty Two? — AWS Certified DevOps Engineer – Professional (DOP-C02) Exam Prep
- Who Signs In: Identity Center, STS And Cognito — AWS Certified Solutions Architect – Associate (SAA-C03) Exam Prep
- Keyless Authentication: OIDC to the Cloud — Continuous Integration & Continuous Delivery Pipelines
- IAM as the Foundation — Cloud Infrastructure & Hyperscaler Architecture
- Users, Groups and Roles — Cloud Infrastructure & Hyperscaler Architecture
- The Danger of Long-Lived Keys — Cloud Infrastructure & Hyperscaler Architecture
- Policy Simulation and Dry Runs — Cloud Infrastructure & Hyperscaler Architecture
- Load Balancing and DNS — Cloud Infrastructure & Hyperscaler Architecture
- Metrics, Logs, and Alarms — Cloud Infrastructure & Hyperscaler Architecture
- Infrastructure as Code (Handover to Terraform) — Cloud Infrastructure & Hyperscaler Architecture
- AWS Organizations, Account Hierarchies & Azure Management Groups — Cloud Security & DevSecOps Engineering
- Workload Identity Federation: Eliminating Static Keys — Cloud Security & DevSecOps Engineering
- Cross-Account AssumeRole Chains & Temporary STS — Cloud Security & DevSecOps Engineering
- OIDC: Cloud Access Without Stored Keys — GitHub Actions (GH-200) Exam Prep
- Full Mock And Review: Where Your Points Go — GitHub Actions (GH-200) Exam Prep
References
- IAM roles: terms and concepts
- AWS STS AssumeRole API
- GitHub Docs: Configuring OpenID Connect in Amazon Web Services