Secrets Manager: credentials out of code, with just-enough access
Create a secret, enable rotation and restrict the app’s policy to that single secret.
The problem
IAM user billing-app exists with policy BillingAppSecrets (secretsmanager:* on *), plus another team’s secret prod/hr/db. IAM is evaluated by a JG Labs educational engine.
Mission
billing-app (fictional) can read EVERY secret in the account, HR ones included. Store its credential in Secrets Manager and let it read only its own.
3 objectives inside the lab. You meet them as you play: no steps or solutions are shown here.
What you will learn
- Secrets out of code
- Rotation
- Resource-scoped IAM policies
Specialty and certification
Official objectives it practices (3)
- CLF-C02: AWS access management capabilities
- CLF-C02: Components and resources for security
- SCS-C03: Design and implement controls to protect confidential data, credentials, secrets, and key material
Aligned with public exam objectives. Not official material and no complete coverage is implied.
On the roadmap AWS · Security and compliance
ProNext: Brisa: an access key used from where it should not beThis exercise needs a paid plan. Free alternative: Your first S3 bucket (without making the news)
What it is and is not
Deterministic JG Labs model: rules and errors based on official documentation. Not the real cloud.
Official documentation
- What is AWS Secrets Manager? (reviewed 2026-11-15)
- Rotate AWS Secrets Manager secrets (reviewed 2026-11-15)
- Authentication and access control for Secrets Manager (reviewed 2026-11-15)