Skip to content

Secrets

What it is

The Secrets pane opens secrets without leaving den. Four providers are supported:

  • SOPS: den decrypts the file through the sops CLI. You can browse its keys, laid out like the YAML file itself, reveal or copy one value, or edit the file in $EDITOR. SOPS re-encrypts the file when you save. For a file in a git working copy, den also shows whether a teammate pushed a newer version, and updates it for you (Files in git).
  • AWS Secrets Manager: den reads the secret with the AWS SDK as your profile. It is read-only.
  • KeePassXC: den reads an entry of a .kdbx database through keepassxc-cli, asking you for the master password. It is read-only.
  • HashiCorp Vault: den reads KV v1/v2 secrets through the vault CLI with your own token, and L runs your login command (OIDC and so on). It is read-only.

For SOPS, it replaces this shell step:

AWS_PROFILE=acme-dev sops edit ~/repos/infra/secrets/eu-staging.enc.yaml

What den does and doesn’t do with your secrets:

  • den.yaml holds references only. It contains file paths, secret IDs and AWS profiles, never values, so the file stays safe to commit.
  • Decrypted values stay in memory. They are never written to disk, the Logs pane, the log file or a command line.
  • Values are masked by default. Only the selected row can be revealed, and moving the cursor hides it again. a reveals every value, and auto_reveal: true makes a secret open that way. Use it only where nobody can see your screen: the values are shown on screen, and in any screen share or recording.
  • Values are dropped when you leave. Esc, ←, Tab or switching panes drops the decrypted values. Opening the secret again reads it again.
  • Copies are cleared after 30 s. y copies a value and clears the clipboard 30 s later, unless you’ve copied something else since. If den quits before then, the clipboard isn’t cleared. Where there is no system clipboard (over SSH, a Linux machine without xclip/wl-copy) the copy goes to the terminal (OSC 52), which den cannot read back: that clear empties the clipboard without checking what is on it.
  • den stores no keys, and passwords only when you ask it to. sops finds the key (AWS KMS, age, PGP) from the file’s own metadata, and den only exports the AWS profile a KMS key needs. Secrets Manager uses your existing AWS login for that profile. Vault uses the token your vault login left (~/.vault-token, VAULT_TOKEN or a token helper). A KeePass master password is the one exception, because there’s no login session to reuse. den asks for it and sends it to keepassxc-cli on stdin, and keeps it only if the entry sets remember_password (details).

Configuration (den.yaml)

Secrets are grouped by provider: sops, aws_secretsmanager, keepassxc and vault. Any other group, for example aws_ssm:, is rejected at load time with a clear error instead of being ignored. Names must be unique across all groups.

Tree or flat view

A secret with nested values (a SOPS file, a JSON secret in Secrets Manager or Vault) opens as a tree, indented like the YAML it came from, or as a flat list with one dotted key per value:

tree (default)                          flat
  cicd-database-secret:                   cicd-database-secret.password    ••••••••
    password: ••••••••                    client.aacn.apiKey               ••••••••
  client.aacn:                            client.aacn.basicauth.clientId   ••••••••
    apiKey:             ••••••••          hosts[0]                         ••••••••
    basicauth.clientId: ••••••••
  hosts:
    - ••••••••

The tree keeps keys that contain dots (client.aacn, basicauth.clientId) apart from real nesting, which the flat list can’t show. Parent keys are headings: the cursor moves over values only, so r, y and / work the same in both views.

secrets:
  view: tree                             # every secret: tree (default) or flat
  sops:
    - name: "Legacy env file"
      file: ./secrets/dev.enc.env
      view: flat                         # this one opens flat
KeyRequiredDescription
secrets.viewnotree (default) or flat, for every secret that doesn’t set its own.
view (on a secret)notree or flat for this secret: SOPS, Secrets Manager and Vault. KeePassXC entries have no nesting and always open flat.

t switches the open secret between the two views. Closing and opening it again starts from the config.

SOPS

secrets:
  sops:
    - name: "EU STAGING"
      description: "App secrets for EU STAGING"
      file: ~/repos/infra/secrets/eu-staging.enc.yaml
      aws_profile: "acme-dev"
      aws_region: "eu-central-1"
      auto_reveal: true                  # values start in clear

    - name: "Local dev"
      file: ./secrets/dev.enc.env        # age or PGP: no AWS settings needed

    - name: "EU PROD"
      file: ~/repos/infra/secrets/eu-prod.enc.yaml
      aws_profile: "acme-prod"
      git:                               # only to override what den finds by itself
        branch: main                     # compare with main's upstream, whatever is checked out
KeyRequiredDescription
nameyesShown in the pane. Unique across all groups.
descriptionnoShown in the box under the list.
fileyesThe encrypted file. ~ is expanded. YAML, JSON, dotenv and INI all work.
aws_profilenoExported as AWS_PROFILE for KMS keys. Without it, sops uses your current environment.
aws_regionnoExported as AWS_REGION.
auto_revealnotrue shows every value in clear when the secret opens. Default false (masked). a toggles it at runtime.
viewnotree or flat (above). Default: secrets.view, else tree. t toggles it at runtime.
git.branchnoFor a file in a git working copy: the branch whose upstream the file is compared with and updated from, whatever branch is checked out. Default: the branch checked out. Files in git.
git.checknofalse shows no git state and offers no f or u for this file. Default true.

A file in a git working copy needs no git: block: den finds the repository, the branch and its upstream by itself.

Keys are shown in the file’s own order, nested as in the file, or as dotted paths (db.password, hosts[0]) in the flat view.

AWS Secrets Manager

secrets:
  aws_secretsmanager:
    - name: "Orders API key - staging"
      description: "API client private key"
      secret_id: "/acme/orders/staging/api-key"
      aws_profile: "acme-dev"
      aws_region: "eu-central-1"
      version_stage: "AWSCURRENT"
      auto_reveal: false
KeyRequiredDescription
nameyesShown in the pane. Unique across all groups.
descriptionnoShown in the box under the list.
secret_idyesThe secret’s name, or its full ARN. Use the ARN for a secret in another account.
aws_profilenoProfile the SDK reads as. Without it, the default credential chain.
aws_regionnoRegion of the secret. Without it, the profile’s region.
version_stagenoAWSCURRENT (default), AWSPREVIOUS or a custom staging label.
auto_revealnoAs for SOPS.
viewnoAs for SOPS.

A JSON object or array secret is shown like a SOPS file, as a tree or dotted keys, for example client_id and private_key. Any other string shows as a single value row, and a binary secret as value (base64). A multi-line value (a PEM key) is shown on one row with ⏎ marking the line breaks. y copies the original, line breaks included.

The identity behind aws_profile needs secretsmanager:GetSecretValue on the secret, plus kms:Decrypt if it’s encrypted with a customer-managed KMS key. If it’s missing, opening the secret shows AWS’s own reason, for example AccessDeniedException: … because no identity-based policy allows the secretsmanager:GetSecretValue action, and the item turns red.

The provider is read-only: e shows “editing is not supported”.

KeePassXC

secrets:
  keepassxc:
    - name: "Jenkins service account"
      description: "CI login"
      database: ~/secrets/team.kdbx
      entry: "CI/Jenkins"
      key_file: ~/.keys/team.key
      attributes: [UserName, Password, URL, Notes]
      totp: true
      remember_password: 10m
      auto_reveal: false

    - name: "AMS"                        # pick from every entry under a group
      database: ~/secrets/team.kdbx
      group: "AppointmentManagement360"
      remember_password: 10m

    - name: "Team vault"                 # pick from every entry in the database
      database: ~/secrets/team.kdbx
KeyRequiredDescription
nameyesShown in the pane. Unique across all groups.
descriptionnoShown in the box under the list.
databaseyesThe .kdbx file. ~ is expanded.
entrynoOne entry, by its path in the database: Group/Sub/Title, leaving out the root group. Without it, den lists entries to pick from.
groupnoWith no entry: list only the entries under this group, including subgroups. Can’t be combined with entry.
key_filenoKey file used together with (or instead of) the master password.
no_passwordnotrue for a database opened by key_file alone. den never prompts. Needs key_file.
attributesnoAttributes to show, in order. Default UserName, Password, URL, Notes. Custom attributes work too.
totpnotrue adds a TOTP row with the current code.
remember_passwordnoHow long den keeps the master password, e.g. 10m. Unset means asked on every open.
cli_pathnoPath to keepassxc-cli. By default den looks on PATH, then in /Applications/KeePassXC.app on macOS.
auto_revealnoAs for SOPS.

Picking an entry

With entry set, opening the item shows that entry. Without it, opening the item (and typing the master password) lists entry paths:

  • the whole database, or everything under group
  • groups, empty groups and the Recycle Bin are left out

/ searches the list by path, and Enter opens an entry’s fields. From an entry, Esc goes back to the list and drops that entry’s values. Esc on the list closes the database.

To find an entry’s path for entry, open the database in the KeePassXC app, or list every path (it asks for the master password):

keepassxc-cli ls -R -f ~/secrets/team.kdbx
# on macOS, if keepassxc-cli isn't on PATH:
/Applications/KeePassXC.app/Contents/MacOS/keepassxc-cli ls -R -f ~/secrets/team.kdbx

Lines ending in / are groups. The other lines are entries.

A multi-line value such as Notes shows on one row with ⏎ marking the line breaks, and y copies it with the line breaks. The provider is read-only: e shows “editing is not supported”.

The master password

keepassxc-cli has no login session to reuse, so every read needs the master password:

  • Asking. Opening the entry shows a masked password field in the pane. Enter unlocks and Esc cancels. Every key is typed into the field, q and h included. A wrong password shows “wrong password — try again” and asks again. It doesn’t turn the entry red.
  • Handing it over. The password goes to keepassxc-cli on stdin only, never as a command-line argument (which other users can see with ps) or an environment variable.
  • Without remember_password. For a single entry, den drops the password as soon as the read finishes, and asks again on the next open. While you’re picking from a list, den keeps the password until you close the database (Esc on the list, or leaving the pane), so each entry doesn’t ask again. Then it’s dropped.
  • With remember_password: 10m. den keeps the password in its own memory for 10 minutes. Every entry in the same database (with the same key file) opens without asking during that time. When the time is up it’s forgotten.
  • Forgetting it early. l forgets every remembered password at once, and quitting den forgets them too.

“Drops” and “forgets” mean den clears its own copy of the bytes. Like any Go program, den can’t guarantee that no other copy lingers in memory until the garbage collector reuses it. If that matters to you, leave remember_password unset.

Each keepassxc-cli call re-derives the database key, which is slow on purpose (about a second with the default settings). A read is one call, or one per attribute when a value spans several lines, so an entry with a multi-line Notes takes a few seconds to open.

HashiCorp Vault

secrets:
  vault:
    - name: "Grafana admin"
      description: "Shared Grafana login"
      address: "https://vault.example.com"
      namespace: "team-a"
      mount: "secret"
      path: "grafana/admin"
      field: "password"
      login: "vault login -method=oidc"

    - name: "AMS apps"                   # pick from every secret under a folder
      address: "https://vault.example.com"
      path: "apps/ams/"
      login: "vault login -method=oidc"
KeyRequiredDescription
nameyesShown in the pane. Unique across all groups.
descriptionnoShown in the box under the list.
addressnoExported as VAULT_ADDR. Without it, your environment’s is used.
namespacenoExported as VAULT_NAMESPACE (Vault Enterprise / HCP).
ca_certnoExported as VAULT_CACERT, for a server with a private CA. ~ is expanded.
mountnoThe KV secrets engine’s mount. Default secret.
pathyesThe secret’s path under the mount. A path ending in / is a folder, and den lists every secret under it, subfolders included, to pick from.
fieldnoShow only this key (and anything nested under it). One secret only.
versionnoA KV v2 version number. The latest when unset. One secret only.
loginnoShell command L runs to log in, e.g. vault login -method=oidc.
cli_pathnoPath to vault. By default den uses the one on PATH.
auto_revealnoAs for SOPS.
viewnoAs for SOPS.

den runs vault kv get -format=json -mount=<mount> <path> and shows the secret’s data as keys. It works for KV v1 and v2, and v2 metadata is left out. Nested JSON values are shown like a SOPS file. A value stored as a JSON string stays one string.

A folder is listed with vault kv list, one call per subfolder. The list shows full paths (apps/ams/kafka/e2e), sorted, with the same search, Enter and Esc as KeePassXC. den stops after 500 secrets or 10 levels deep and says so next to the count. Point path at a smaller folder if you hit that.

The provider is read-only: e shows “editing is not supported”.

Logging in

den never handles Vault credentials. The vault CLI finds your token in VAULT_TOKEN, ~/.vault-token (written by vault login) or a configured token_helper:

  • No token at all. The status shows vault login required, with — L to log in when login is set.
  • L. Hands the terminal to the login command, run through sh -c with the entry’s VAULT_ADDR, VAULT_NAMESPACE and VAULT_CACERT. For -method=oidc your browser opens. When the command finishes, den re-checks every secret’s status. If the open secret had failed, den reads it again.
  • A token that has expired, or has no access to the path. den can’t see this without calling the server, so it shows up when you open the secret: vault: permission denied — token expired or no access (L to log in). The item turns red until a read succeeds.

Prerequisites

  • SOPS: sops 3.9 or newer on PATH: den edits through sops edit, which sops 3.9 added (older versions still decrypt). den check-install --for sops checks it and prints the install command for your OS; see also the releases page. den also checks that one of the keys the file is encrypted to is available (below) and says which one is missing.
  • SOPS: access to the file’s key:
    • AWS KMS: a valid session for aws_profile. If SSO has expired, log in from the AWS pane. The IAM identity needs kms:Decrypt on the key, plus kms:Encrypt / kms:GenerateDataKey to save edits.
    • age: SOPS_AGE_KEY_FILE, or the default ~/.config/sops/age/keys.txt.
    • PGP: the key in your keyring. A GUI pinentry such as pinentry-mac is needed if the key has a passphrase, because den can’t show a terminal pinentry while the TUI is running.
  • SOPS: $EDITOR set for e. If it’s unset, sops falls back to vim / nano.
  • SOPS: git, for a file in a git working copy. den doctor checks it when one of your files is in one; finding the working copy needs no git. A fetch can’t ask for anything (a passphrase, a password, a new host key), so the remote has to be reachable with an SSH agent or a credential helper.
  • AWS Secrets Manager: a valid session for aws_profile (log in from the AWS pane) and the IAM permissions above. No extra tools are needed.
  • KeePassXC: keepassxc-cli, which ships with KeePassXC 2.x:
    • macOS: installing the app (brew install --cask keepassxc) is enough. den finds the CLI inside KeePassXC.app, even though it isn’t on PATH.
    • Linux: the keepassxc package puts keepassxc-cli on PATH.
    • Windows: keepassxc-cli.exe is next to KeePassXC.exe. Set cli_path if it isn’t on PATH.
    • A database protected by a YubiKey challenge-response isn’t supported yet.
  • Vault: the vault CLI (brew install hashicorp/tap/vault, or a release from developer.hashicorp.com). Version 1.11 or newer, for -mount. Your token also needs a policy allowing read on the secrets, plus list for folders.

Status

The status next to each secret is worked out without decrypting, or calling AWS or the Vault server. It checks, in order:

StatusMeaning
sops not installedNo sops on PATH (SOPS only)
file not foundfile doesn’t exist (SOPS only)
keepassxc-cli not installed / cli_path not foundNo CLI found (KeePassXC only)
database not found / key file not found(KeePassXC only)
vault not installed / cli_path not foundNo vault CLI found (Vault only)
vault login required (— L to log in)No VAULT_TOKEN, ~/.vault-token or token_helper (Vault only)
unknown AWS profile <name>aws_profile isn’t in the AWS config den reads (aws.config_path, default ~/.aws/config)
SSO login expired — log in from the AWS paneaws_profile is an SSO profile and its cached login is missing or expired
decrypt failed — enter for detailsThe checks passed but the last read failed, e.g. missing IAM or KMS permissions. It stays red until a read succeeds, or until the AWS login it was read with changes.
readyEvery check passed

Profiles using static keys, credential_process or role_arn aren’t checked beyond existing, so problems with them show up as decrypt failed. The full error is shown when you open the secret.

When the status is refreshed

Every secret is checked when den starts and when the config is reloaded (R). A secret is checked again when you open or edit it, and all of them after an edit or a Vault login.

Secrets read through an AWS profile (SOPS files with a KMS key, Secrets Manager) also follow the AWS login by themselves:

  • Log in from the AWS pane or the Connect list and the secrets waiting for that login turn ready. There’s no need to reload or restart.
  • Log in outside den (aws sso login in another terminal) and they turn ready within about five seconds, while the Secrets list is on screen.
  • When a login runs out, they go back to SSO login expired, the same way.

This stays cheap with many secrets. den reads ~/.aws/config and the SSO cache once for all of them, and only looks at the secrets again when a login, a logout or an expiry actually happened. Secrets that don’t use AWS (age or PGP keys, KeePassXC, Vault) are left alone, and a SOPS file isn’t read again unless it changed.

Usage

Select Secrets in the left menu and press → or Enter to focus the list.

KeyAction
↑/↓Move between secrets, or between keys when a secret is open
EnterOpen the selected secret and list its keys (values masked)
/Filter: secrets by name, description or location; in an open secret, keys and values
rReveal / hide the selected value
aReveal / hide every value
tSwitch the open secret between tree and flat view
yCopy the selected value; the clipboard is cleared after 30 s
eEdit in $EDITOR via sops edit (SOPS only)
fFetch the file’s upstream and check again (a file in git)
uFetch, then fast-forward the branch after asking (a file in git)
lForget every remembered KeePassXC master password
LRun the selected secret’s login command (Vault)
EscClear the filter; then close the secret and drop its values
RReload the config
h / ?Shortcuts pop-up

The details box under the list shows the selected secret’s settings. Its dots match the toggles in the VPN and Tunnel panes, green when on: Auto reveal for every secret, and Remember password for KeePassXC entries.

Search

/ opens a search bar at the bottom, the same as in the Connect pane:

  • In the list, it matches names, descriptions and locations (file path or secret ID).
  • In an open secret, it matches key names and values, ignoring case: type a host, a token prefix or an account ID to find the key that holds it. What matched lights up in yellow, in a key or a revealed value. A row found by its value alone stays masked and is tagged in value; r reveals it. Whoever sees your screen, on a screen share say, sees the query and which keys it matched, so they learn that those keys hold what you typed.
  • While you type, ↑/↓ move through the results. Every other key is text, including j, k, h and q.
  • Enter closes the bar and keeps the filter, so r, a, y and e act on the remaining rows. In the list, Enter also opens the secret you picked.
  • Esc while typing clears the query. When a filter is kept, the first Esc clears it and the next one closes the secret.

Editing (SOPS)

e works both from the list and from an open file. den hands the terminal to sops edit and comes back when the editor closes. If you saved, the open file is decrypted again so you see the new values. Closing without changes shows “no changes”.

Files in git (SOPS)

secrets-git.gif

A SOPS file often lives in a git repository the team shares (~/repos/infra/secrets/payments-dev.enc.yaml). A teammate rotates a value and pushes; until your clone pulls, the old value still opens as ready, and you find out when a login fails. The reverse happens too: after e the file is changed in your clone and still needs a commit and a push.

So for a file in a git working copy, the list shows a second status beside ready: readable and up to date are two different things.

  SOPS
  ● payments dev     ready   ↓ outdated
  ● payments prod    ready   ✓ up to date
  ● billing dev      ready   ✎ not committed
  ● local env        ready

den finds the working copy by looking for .git above the file, without running git. A file outside any repository (local env above) has no git status and no git keys, exactly as before. Everything else needs no configuration either: the branch is the one checked out and the upstream is its tracking branch.

The comparison is per file, not per repository: den compares the file’s content at HEAD with its content on the upstream. A busy repository is nearly always behind, and a commit that does not touch the file leaves it up to date.

StatusMeaningu
divergedThe file changed both in your clone and upstreamRefused: an encrypted file can’t be merged; resolve it in git
outdatedThe upstream has a newer version of the file (the details box says how many commits, and the newest)Fast-forwards, after asking
not committedThe file is changed in your working tree or index, e.g. after eA reminder
not pushedYour commits change the file and the upstream lacks themA reminder
up to dateThe same content as the upstream, as of the last fetch
no upstreamThe branch tracks nothing (or HEAD is detached) and there is no git.branch
check failedgit failed, e.g. a fetch with the VPN down; the details box shows git’s last linef retries
not in gitInside a repository, but untracked or ignored

The details box shows where the file is and what it is compared with, and how old that comparison is:

Git          infra · main → origin/main · fetched 2h ago
Upstream     2 newer commits · a1b2c3d rotate stripe key (Anna, 3h ago)

When den checks. The status is worked out offline, from the refs your clone already has, when the Secrets pane is first shown and again after e, u, f and a config reload. den never fetches by itself, on a timer or otherwise: fetched 2h ago is the time of the clone’s last fetch, whoever made it (den, your shell or your editor’s auto-fetch), and never fetched offers f. So not committed, not pushed and diverged show up without the network, and so does outdated once anything fetched.

  • f fetches the upstream of the selected file’s repository (that branch only, no tags, 30 s at most) and checks every file in that repository again. Ten secrets in one repository cost one fetch.

  • u fetches the same way, then, if the file is outdated, asks:

    Fast-forward infra (main) by 7 commits? This updates the whole branch, not only this file.

    y runs git merge --ff-only, checks every secret again and, if the file is open, decrypts it again so you see the new values. The status bar says what moved: infra: main a1b2c3d → d4e5f6a (7 commits). A file that is already up to date only says so.

  • e on an outdated file asks first: editing the old version is how a diverged file is made. u updates first, e edits anyway.

What u will and won’t do. den changes your own working copy here, so it only ever fast-forwards:

  • It runs git merge --ff-only --no-autostash on the branch checked out. It never rebases, makes a merge commit, stashes, resets, checks out, switches branches, commits or pushes. It runs merge, not pull, so your pull.rebase doesn’t apply.
  • It refuses, saying why, when the file is diverged, HEAD is detached, a merge, rebase, cherry-pick, revert or bisect is in progress, git.branch names another branch than the one checked out (“you are on feature/x; switch to main to update”), or your branch has commits the upstream lacks.
  • git itself refuses when the update would overwrite your local changes, and den names the files in the way. Nothing changes.

git.branch. Set it to compare with a branch other than the one checked out: on feature/x, git.branch: main still tells you when main changed the file. The upstream is that branch’s tracking branch, or origin/<branch> when it has none. u only updates it while it is checked out.

Some things to know:

  • A fetch runs without a terminal and can’t ask for anything: a key with a passphrase needs your SSH agent, and HTTPS needs a credential helper. Otherwise it shows check failed with git’s message.
  • sops rewrites lastmodified and mac on every save, so saving without changing a value still makes the file not committed. The commit subject in the details box shows what an upstream change was.
  • Git state isn’t part of den mcp or --json.

Providers: supported and planned

Providerden.yaml groupStatusEdit
SOPS (KMS, age, PGP)sopsSupportede via sops edit
AWS Secrets Manageraws_secretsmanagerSupportedread-only
KeePassXC (.kdbx)keepassxcSupportedread-only
HashiCorp Vault (KV v1/v2)vaultSupportedread-only
AWS SSM Parameter Storeaws_ssmPlanned—
Any CLI (pass, gopass, op, bw, …)commandPlannedoptional edit command

A planned group in den.yaml stops den loading with secrets.<group>: unsupported provider. The commented examples in den.yaml show the config each one is intended to take.

Planned providers

  • SSM Parameter Store (aws_ssm:) would read through the AWS SDK like Secrets Manager: one parameter, or every parameter under a path (optionally recursive). SecureString values would be decrypted, which needs kms:Decrypt. The status checks would be the same as for Secrets Manager.
  • Any command (command:) would run a get command that prints the secret, either as JSON (flattened like SOPS) or as key: value lines, with requires: naming the binary the status should check for. An optional edit command would enable e. This covers pass / gopass, the 1Password CLI (op) and the Bitwarden CLI (bw, which needs BW_SESSION) without code changes in den.

Candidates, not designed yet

  • Azure Key Vault (az keyvault secret show)
  • Google Secret Manager (gcloud secrets versions access)
  • Kubernetes Secrets (kubectl get secret, values base64-decoded)
  • Native 1Password or Bitwarden providers, if the command group turns out to be too limited for them

Other planned improvements

  • KeePassXC: YubiKey challenge-response databases, and the git status of a .kdbx kept in a repository, as SOPS files have.
  • Vault: editing (vault kv patch), and other secrets engines than KV (for example dynamic database credentials).
  • Using secrets elsewhere: an RDS service can log in with a username and password from a secret. Other data stores and runbook parameters are planned.

Adding a provider

A provider is a package under internal/secrets/<name>/:

  • Required: an Item implementing secrets.Item: name, location, details, a status check that never decrypts, and Read.
  • Optional: Editor (the e key), Unlocker (a password den must ask for), Locker, Browser (pick entries from a list), Toggler (extra dots in the details box), Viewer (values that nest, opened as a tree unless view: flat) and AWSUser (read through an AWS profile, so the status is checked again after an SSO login). The pane finds these at runtime, so it needs no change for a new provider.
  • Config: a spec in internal/config/schema.go, with validation in validateSecrets, and a loop in Items in internal/secrets/providers/providers.go, which also fills an empty view from secrets.view.
  • Shared helpers in internal/secrets: AWSLogins.Check for the AWS profile and SSO checks, and FlattenJSON for JSON secrets, which keeps each value’s path for the tree view. Items hands every AWS-backed item the same AWSLogins, so the AWS config is read once however many secrets use it. Such a provider takes it in its constructor and implements AWSUser.
Last updated on