# Do workloads get cloud access through attached roles, managed identities or workload identity federation instead of stored secrets?

Facts read 16 Nov 2026. Page reviewed 16 Nov 2026.

Question 4 of the assessment asks: Do workloads get cloud access through attached roles, managed identities or workload identity federation instead of stored secrets? A workload that receives short-lived credentials from the platform has nothing to leak from a repository or a build log.

## Why it matters

A workload that receives short-lived credentials from the platform has nothing to leak from a repository or a build log.

## Answers and what each is worth

| Answer | Value |
| --- | --- |
| Yes, for all workloads | 1 |
| For some workloads | 0.5 |
| No or not known | 0 |

## How to check it in each cloud

- **AWS:** Check that EC2, ECS, EKS and Lambda use execution or instance roles and that CI systems use OIDC federation to assume roles instead of stored access keys.
- **Azure:** Check that apps use system-assigned or user-assigned managed identities or federated credentials on app registrations instead of client secrets.
- **Google Cloud:** Check that workloads use attached service accounts or workload identity federation, and that the iam.disableServiceAccountKeyCreation org policy is enforced.

## The fix

Move each workload to platform-issued identities and remove the stored secret it used before. Effort: high.

## Where it comes from

- Microsoft cloud security benchmark IM-3: [Manage application identities securely and automatically](https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-v2-identity-management)
- NIST SP 800-53 Rev. 5 IA-5: [source](https://csrc.nist.gov/pubs/sp/800/53/r5/upd1/final)

## Related pages

- [Question 5: Identities and entitlements, admin roles limit](/questions/admin-roles-limited/)
- [Question 6: Identities and entitlements, no standing privi](/questions/no-standing-privilege/)
- [Question 7: Identities and entitlements, access reviews](/questions/access-reviews/)

## Sources

- Microsoft cloud security benchmark IM-3: https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-v2-identity-management (read 16 Nov 2026)
- NIST SP 800-53 Rev. 5 IA-5: https://csrc.nist.gov/pubs/sp/800/53/r5/upd1/final (read 16 Nov 2026)

Last reviewed 16 Nov 2026. Canonical: https://cloudsecurityriskassessment.com/questions/workload-identity/
