AWS Access Key Alternatives: Comparing OIDC, IAM Roles Anywhere, and Systems Manager Hybrid Activation

· Original article ↗

Summary

The article compares OIDC, IAM Roles Anywhere, and Systems Manager hybrid activation as alternatives to long-lived AWS access keys, outlining security trade-offs and possible improvements such as hardware-backed signing.

Key points

  • OIDC can let workloads in other clouds or GitHub Actions assume an AWS IAM role; trust policies should restrict the permitted subject to prevent unauthorized users or repositories from assuming it.
  • IAM Roles Anywhere uses certificates instead of access keys, but its credential helper reads certificates from disk, where they may be exposed through file reads, source control, or backups.
  • The article describes hardware-backed signing through TPMs or YubiKeys as a potential improvement, and notes that IAM Roles Anywhere lacks PKCS11 support.
  • Systems Manager hybrid activation uses a short-lived, one-time activation code and device fingerprinting to register remote systems.
  • Hybrid activation stores fingerprint data and private keys on disk, and its temporary AWS session credentials are stored in /root/.aws/credentials; those credentials expire.
  • The author favors hybrid activation for small, one-off integrations and IAM Roles Anywhere for larger deployments requiring granular certificate-based policies.

Article Details

Topic
Alternatives to long-lived AWS IAM access keys, including OIDC, IAM Roles Anywhere, and Systems Manager hybrid activation

People

Vendors

Products

Tools

Related Articles