CLOUD CONCEPT

Credential Management

Credential management is the controlled creation, storage, use, renewal, and revocation of the authentication material that people and workloads use to access systems.

Cloud Concepts Hub →

What is Credential Management

Credentials include passwords, access keys, session tokens, and other material used to prove an identity. Managing their lifecycle reduces credential theft, limits the impact of compromise, and keeps applications working when credentials change or expire.

Credential management governs how authentication material is issued, protected, used, replaced, and retired. In cloud environments, this includes credentials for engineers, administrators, applications, automation pipelines, and emergency access. Authentication establishes who is making a request; authorization determines what that identity may do. A securely stored credential can still be dangerous if its identity has excessive permissions, so credential management must work alongside least-privilege access policies.

Different credentials serve different purposes. An AWS IAM user can have a console password and, separately, access keys for programmatic requests. An access key consists of an access key ID and a secret access key. Temporary AWS credentials also include a session token and expire automatically. Changing a console password does not rotate access keys, and deleting an access key does not remove console access. Engineers must inventory and manage each authentication method independently.

Prefer temporary credentials over long-lived access keys wherever possible. A workload running on an AWS compute service can obtain role credentials through its supported credential mechanism rather than embedding keys in code. Developers can use federated sign-in and role sessions instead of maintaining individual long-lived keys. AWS SDK credential providers can retrieve and refresh role credentials automatically. Temporary credentials reduce persistent exposure, but they remain sensitive and can be abused until they expire or access is otherwise restricted.

When an application needs a database password or external API token, store it in a dedicated secret store rather than source code, container images, shared documents, or logs. For example, a workload can use its IAM role to retrieve a database password from AWS Secrets Manager. AWS Systems Manager Parameter Store also supports encrypted SecureString parameters. Secrets Manager provides managed rotation capabilities for supported integrations and customizable rotation workflows; Parameter Store does not provide equivalent built-in secret rotation. Encryption at rest alone is insufficient: restrict retrieval permissions, protect decryption access, and prevent applications from exposing retrieved values.

Password policies establish requirements such as minimum length, complexity, and reuse restrictions. AWS IAM account password policies apply to IAM user console passwords, not root user passwords, access keys, or passwords managed by an external identity provider. Configure workforce password controls in the system that actually authenticates those users. Use unique passwords and multifactor authentication rather than relying on complexity alone. Enabling MFA for console sign-in does not automatically require MFA for every request signed with an IAM user's long-lived access keys.

Root user protection deserves separate controls because root has highly privileged account capabilities. Do not use root for everyday administration, and do not create root access keys. Protect the root password with a strong, unique value, enable MFA, and secure the associated email account and recovery channels. Restrict access to root credentials, monitor root activity, and reserve root sign-in for tasks that require it. Where AWS Organizations centralized root access management is configured, eligible member accounts can have long-term root credentials removed; the management account still requires its own root protection.

Rotation and revocation must be operationally safe. When replacing a long-lived key, update its consumers, verify that they use the replacement, and then deactivate and delete the old key. For a leaked credential, revoke or disable it promptly and investigate its use; removing it from a repository does not invalidate it. Secret retrieval adds cost, latency, and availability dependencies, while caching reduces requests but can delay adoption of rotated values. Design refresh behavior, monitoring, and incident procedures around these trade-offs.

Key aspects of Credential Management

Effective credential management minimizes persistent secrets, protects authentication paths, and makes credential replacement and revocation reliable.

Credential lifecycle control

Track credential ownership, purpose, consumers, and retirement requirements. Remove unused credentials and revoke exposed credentials rather than merely deleting their visible copies.

Temporary credentials by default

Use workload roles and federated sessions instead of distributing long-lived access keys. Ensure applications refresh expiring credentials through supported SDK credential providers.

Protected storage and retrieval

Keep secrets out of source code, images, and logs. Use encrypted storage with narrowly scoped retrieval permissions, and protect secrets after they enter application memory.

Password and MFA controls

Apply password requirements in the identity system that authenticates the user, and enable MFA where supported. Treat console passwords and programmatic credentials as separate authentication methods with separate controls.

Root and emergency access protection

Reserve root access for tasks that require it, avoid root access keys, and protect root sign-in with MFA and secured recovery channels. Monitor its use and maintain a controlled emergency-access procedure.

Safe rotation and auditability

Coordinate credential replacement with dependent applications to avoid outages. Record relevant authentication and secret-access events, and investigate unexpected use or failed retrievals.

Cloud services for Credential Management

IAM and IAM Identity Center establish how people and workloads obtain access, while AWS STS supplies temporary credentials for role-based sessions. Applications can use those credentials to retrieve application secrets from Secrets Manager or encrypted configuration from Systems Manager Parameter Store without embedding AWS access keys. IAM permissions constrain which identities can retrieve each value; AWS KMS provides the underlying encryption controls for these stores. CloudTrail supplies an audit trail for relevant management and retrieval activity. Together, these services separate identity access from application secrets, reduce persistent credentials, and support controlled rotation and incident investigation.

AWS Secrets Manager image AWS Secrets Manager

Secrets Manager stores secrets such as database credentials and API tokens, encrypts them, and controls retrieval through permissions. It supports automatic rotation through supported integrations or configured rotation workflows; rotation must also update the corresponding target system.

Open AWS Secrets Manager →
AWS Systems Manager image AWS Systems Manager

Systems Manager Parameter Store provides centralized configuration storage, including SecureString parameters encrypted with AWS KMS. It can hold sensitive configuration values but does not offer the same built-in secret rotation capabilities as Secrets Manager.

Open AWS Systems Manager →
AWS CloudTrail image AWS CloudTrail

CloudTrail records AWS account activity, including relevant credential-management operations, secret-retrieval API calls, and root activity. These events support investigations and can feed monitoring rules for unexpected credential or privileged-account use.

Open AWS CloudTrail →