# AWS Secrets Manager

**Secrets** (**AWS Secrets Manager**) lists the secrets of a profile and region and opens one to show its rotation, replication, versions, resource policy and where it is used. Values are read only when you click **Reveal**, and hide again on their own.

It is for the questions that come up around a secret: is it rotating, when was it last read, which version is current, which service reads it, and is staging set up like production. Changing a value, rotating now and going back to the previous version are writes, behind [Writes](https://arnscope.com/docs/writes) and a native confirmation.

Editing an encrypted SOPS file in S3 and deploying it to Secrets Manager is a separate page, [SOPS files](https://arnscope.com/docs/sops-files), in [Labs](https://arnscope.com/docs/labs).

![The Secrets page for fernwood-prod: views on the left (All secrets, Rotation on, Rotation off, Managed by AWS, Replicas, Not read in 90 days, Scheduled for deletion), the secrets table with when each was last changed and its rotation, and prod/checkout/db open in the inspector with its value hidden until Reveal.](https://arnscope.com/media/docs/secrets/secrets-browse.webp)

## The list

Open **Secrets**, choose the profile and region, and the secrets load: one paged `ListSecrets`, metadata only. No value is read to show the list. The table has the **Name**, **Description**, **Last changed**, **Last read** (Secrets Manager rounds it to the day), **Rotation** (on with the next date, off, or **deletion scheduled**) and **Tags**. A secret created by another AWS service, such as RDS, shows that service as a chip, and a replica of a secret in another region shows **replica**. Every column sorts, and the table exports.

The **Views** pane on the left narrows the list, with a count for each:

| View | Secrets |
| --- | --- |
| **All secrets** | Every secret in the region, scheduled deletions included |
| **Rotation on** | Automatic rotation turned on |
| **Rotation off** | Never rotated automatically |
| **Managed by AWS** | Created and managed by another AWS service (RDS, EventBridge and others) |
| **Replicas** | Read-only copies whose primary is in another region |
| **Not read in 90 days** | No `GetSecretValue` in the last 90 days, or never |
| **Scheduled for deletion** | Recoverable until the recovery window ends |

A view with no secrets is hidden. **Name, description or tag** filters the list as you type; a tag matches as `key`, `value` or `key=value`.

The status bar says when the metadata was listed and that values are never cached. **Refresh secrets** lists again. If your role cannot list secrets, the page names the actions it needs and offers **Copy read policy JSON**.

## One secret

Select a secret to open it on the right. The title copies the name; right-click it for the ARN, the partial ARN (without Secrets Manager's six-character suffix, as IAM policies and ECS often use), the console URL and an `aws secretsmanager get-secret-value` command. Under the title, **Changed**, **Read** and **Rotation** sum it up.

The tabs:

- **Value**: hidden until you reveal it. See below.
- **Versions**: each version's ID, its labels (`AWSCURRENT`, `AWSPREVIOUS`, `AWSPENDING`, or deprecated), when it was created and last read.
- **Details**: the description, the encryption key (`aws/secretsmanager` when it is the AWS managed key), created, last changed, last read and who manages it. **Rotation** shows the status, next rotation, schedule, window, last rotation and the rotation function, which **Open** takes to the [Lambda](https://arnscope.com/docs/lambda) page. **Replication** lists each replica region with its status, key and last read. **Tags** lists the tags.
- **Policy**: the resource policy as formatted JSON, or "No resource policy" when only IAM policies in the account decide who can read it.
- **Usages**: where the secret is referenced. See below.

If your role lacks `secretsmanager:ListSecretVersionIds` or `secretsmanager:GetResourcePolicy`, only that tab says so; the rest of the secret still opens.

## Reveal a value

Nothing is read until you click **Reveal**. Then ARNscope calls `GetSecretValue` for that one secret, shows the value, and:

- hides it again after **30 seconds** (a chip counts down), when the window loses focus, when you leave the page or choose another secret;
- never caches it, writes it to disk or puts it in a log. Secrets Manager request and response bodies are kept out of the [Network requests panel](https://arnscope.com/docs/settings#network-log) entirely.

On a production profile, **Reveal** first asks in a bar: "Reveal prod/checkout/db? CloudTrail records the GetSecretValue under your name. It shows for 30 s and is never saved."

A JSON value shows as a table of keys, each value masked until you press its own eye; **Show all** and **Mask all** do them together, and the copy button next to a key copies its value without showing it. **Raw** shows the whole text. A binary secret shows its size and base64. With more than one version, the **Version** menu reveals an older one, such as `AWSPREVIOUS`.

A secret scheduled for deletion cannot be read. When the read is denied, the message names `secretsmanager:GetSecretValue`, and `kms:Decrypt` on the secret's key when it uses a customer managed key.

![The Value tab of prod/checkout/db after Reveal: a table of keys with engine, host and port shown and username, password and dbname still masked, a "re-masks in 28s" countdown, Copy, Update value (off until Writes is on) and Hide.](https://arnscope.com/media/docs/secrets/secrets-reveal.webp)

## Find everywhere

**Find everywhere** searches secret names, descriptions and tags across the profiles and regions you pick, for when you know a secret exists but not in which account. Each profile and region is one `ListSecrets`, metadata only, at most four at a time and two per profile; a list the page already loaded costs nothing. **Stop** ends it early.

Results are grouped by profile and region with the matching text highlighted. A scope that could not be searched says why, and the rest still show. **Open** opens the secret on the page, in a new tab when it is in another profile or region. No value is read.

## Compare across accounts

**Compare** puts two accounts side by side, for example `staging/` in fernwood-staging against `prod/` in fernwood-prod. Pick a profile, region and name prefix for **Left** and **Right**. Secrets pair up by the rest of the name and are marked **Only left**, **Only right** or **In both**; **Hide pairs in both** leaves only the gaps.

Select a pair and **Compare keys**: ARNscope reads both current values in its Rust core and returns only the key names, so you see which keys are missing on one side without either value reaching the page. **Reveal both to compare values** then marks each shared key **Same value** or **Value differs**, without showing the values; they are held in memory for 30 seconds. On a production side, both steps ask first, and each read is a `GetSecretValue` that CloudTrail records.

![Compare with prod/ in fernwood-prod on the left and staging/ in fernwood-staging on the right: 7 pairs only on the left, 1 only on the right and 3 in both, and checkout/db open with its six key names in both accounts; values are not compared until both are revealed.](https://arnscope.com/media/docs/secrets/secrets-compare.webp)

## Usages

The **Usages** tab answers "what reads this secret?" in the page's profile and region. **Scan** runs three read-only searches, each with its own result or error:

| Source | What it finds |
| --- | --- |
| **ECS task definitions** | `secrets[].valueFrom` and private registry credentials in the latest active revision of each family, matched exactly |
| **Lambda environments** | Environment values that hold the secret's name or ARN (a heuristic) |
| **RDS master user secrets** | Instances and clusters whose `MasterUserSecret` is this secret |

Lambda functions and databases open on their own page. No value is read. Code that calls `GetSecretValue` by name at runtime, other accounts and regions, and infrastructure code are not found, so an empty list never means a secret is safe to delete. The same approach is used for [Parameter Store usages](https://arnscope.com/docs/parameter-store).

## Change a secret

Three changes are possible, each behind Writes for the profile and region ([Writes and confirmations](https://arnscope.com/docs/writes)). Each opens an edit dialog with a review of what changes, then a native confirmation that names PRODUCTION when it applies. Every write, cancelled or not, is recorded in the [activity log](https://arnscope.com/docs/activity-log) with key names only, never a value.

**Update value.** Reveal `AWSCURRENT`, then **Update value…**. A JSON secret is edited by key: change, add or remove keys, each marked **edited**, **new** or **removed**, with values masked until you show them; keys you don't touch keep their values. **Text** replaces the whole value. **Put new version…** shows the review; the confirmation, "Store a new secret value?", lists the key names that change and says that Secrets Manager saves a new version, moves `AWSCURRENT` to it and makes the old one `AWSPREVIOUS`. If the secret changed since you revealed it, nothing is written. A secret managed by another service (such as RDS) is changed there, so **Update value** is off for it.

**Rotate now…** (in the ⋯ menu) runs the secret's configured rotation immediately instead of at the next scheduled time. The confirmation, "Rotate secret now?", names the rotation function. The new version is `AWSPENDING` until the function tests it and moves `AWSCURRENT`; a failed rotation leaves the current value working. It is off for a secret with no rotation set up.

**Restore the previous version…** moves `AWSCURRENT` back to the `AWSPREVIOUS` version, which undoes the last value change or rotation without writing a value. The confirmation, "Go back to the previous version?", shows the two version IDs. Nothing is deleted, and the version that was current becomes `AWSPREVIOUS`, so you can switch back the same way. A rotated database password that was already changed on the database will not match the restored value.

Apps that cache a secret keep the old value until they read it again; ECS tasks read secrets when they start.

## Permissions

| What | Actions |
| --- | --- |
| List secrets, Find everywhere, Compare (listing) | `secretsmanager:ListSecrets` |
| Open a secret | `secretsmanager:DescribeSecret`, `secretsmanager:ListSecretVersionIds` (Versions), `secretsmanager:GetResourcePolicy` (Policy) |
| Reveal a value, compare keys or values | `secretsmanager:GetSecretValue`, plus `kms:Decrypt` on a customer managed key |
| Usages | `ecs:ListTaskDefinitionFamilies`, `ecs:DescribeTaskDefinition`, `lambda:ListFunctions`, `rds:DescribeDBInstances`, `rds:DescribeDBClusters` |
| Update value | `secretsmanager:GetSecretValue`, `secretsmanager:PutSecretValue` |
| Rotate now | `secretsmanager:DescribeSecret`, `secretsmanager:RotateSecret` |
| Restore the previous version | `secretsmanager:DescribeSecret`, `secretsmanager:UpdateSecretVersionStage` |

The [IAM permission check](https://arnscope.com/docs/iam-permission-check) shows which of these your role has. Use a role without `GetSecretValue` if you only want to see metadata.

## Limitations

- **One profile and region per list.** Find everywhere and Compare reach across accounts; the list does not.
- **The first 5,000 secrets** of a region are listed.
- **Three writes only.** ARNscope does not create or delete secrets, restore a scheduled deletion, set up or change rotation, replicate, or edit tags, descriptions, KMS keys or resource policies. Use your infrastructure code or the console for those.
- **Text and JSON values only** for Update value; a binary secret can be revealed but not edited. A new value can be at most 64 KB, as in Secrets Manager.
- **Last read is a day** at most, as Secrets Manager reports it.
- **Usages are found references**, in one profile and region, not proof that a secret is unused.
- **Reading is recorded.** Every reveal or compare is a `GetSecretValue` in CloudTrail under your identity; that is how Secrets Manager works.

Missing something you do with secrets every week? Write to [hello@arnscope.com](mailto:hello@arnscope.com).

Source: https://arnscope.com/docs/secrets
