AWS Secrets Manager
Store the credentials and settings your app reads at run time, and try out secret rotation with a Lambda function, all inside Floci.
Features
Secrets
- List secrets with their description, last changed date and rotation status; find them by name.
- Store a new secret as key/value pairs (saved as a JSON object) or as plaintext, with a name and an optional description.
- Choose the encryption key: the default
aws/secretsmanagerkey, a KMS key from the list, or a key ARN typed by hand. - Edit the description.
- Delete with a waiting period of 7–30 days. Until it ends, the secret is hidden and a new secret with the same name can't be created.
Secret details
- ARN, last changed date and encryption key (linked to its KMS key page).
- "Stack: X" link when the secret was created by CloudFormation.
- Connect card with Node.js and Python code that reads the secret.
Secret value
- Retrieve secret value on demand; nothing is shown until you ask.
- Key/value secrets show as a table and as plaintext; compact JSON (such as an RDS master user secret) is indented for reading.
- Edit value as key/value pairs or as plaintext. Plaintext is saved exactly as typed.
- Binary secrets are not shown.
Rotation
- Status, rotation function, schedule, last rotated and next rotation dates.
- Edit rotation: turn automatic rotation on or off, choose the Lambda function, and set the schedule as a number of days (1–1000) or a
rate(…)/cron(…)expression. - Rotate secret immediately, with a link to the rotation function's logs.
Typical workflow
- Open Secrets and choose Store a new secret.
- Pick Key/value, add your pairs (for example
usernameandpassword), name the secretapp/dev/dband choose Store secret. - On the secret page, choose Retrieve secret value to check what your app will read, and copy the code from the Connect card.
- To test rotation, choose Edit rotation, turn on Automatic rotation, pick your rotation function, save, then choose Rotate secret immediately.
Works with
- AWS Lambda: rotation functions; a function's Triggers tab lists the secrets it rotates.
- AWS KMS: choose the key a secret is encrypted with.
- Amazon RDS: the master user secret of a database opens here.
- Amazon ECS: container secrets link to their secret page.
- AWS CloudFormation: secrets created by a stack link to it.
Limitations
- Floci runs rotation in the background and returns at once, so a failing rotation function doesn't report an error to the console. Refresh to see the new value; if it doesn't change, check the function's logs.
- Floci stores the KMS key of a secret but ignores its state: a disabled key keeps working.