Add New secret: create KV v2 secrets from the Secrets page
Write-only values, create-only (cas: 0). Admin policy gains secret/data/* create; docs updated. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d5f5faf2df
commit
c29b0cfd63
12 files changed
+192
-10
No files matched your search
+1
-1
@@ -120,7 +120,7 @@ Required secrets: in `envbao-admin`, `PKGS_USER`, `PKGS_PASSWORD` and `DEPLOY_DI
|
||||
|
||||
- **Token handling.** The token lives in memory only and is sent only to the OpenBao URL you entered. Anyone who can run script in the page (an XSS bug, a malicious browser extension) could use it, so keep the CSP and serve the UI from a dedicated origin.
|
||||
- **Credentials shown once.** Tokens and dynamic credentials appear when created and are never stored or cached by the UI. Password and private-key fields in configuration forms are write-only.
|
||||
- **Secret values are never read.** The Secrets page lists names and metadata only. It cannot display KV secret values.
|
||||
- **Secret values are write-only.** The Secrets page lists names and metadata only and cannot display KV secret values. **New secret** creates a secret (with `cas: 0`, so it can never overwrite one) and needs only `create` on `<mount>/data/*`.
|
||||
- **Audit.** The UI has no audit trail of its own. Turn on an OpenBao audit device; every UI action appears there under the signed-in account.
|
||||
- **Session length.** Sessions last as long as the token. Give the admin account a short TTL if you want people to sign in more often.
|
||||
- **Managed policies.** Grants are stored as policies named `envbao-<kind>-<name>` with an `# envbao-owner:` header. If someone edits one outside EnvBao, the UI treats it as read-only rather than overwrite it. Other policies are shown read-only.
|
||||
|
||||
@@ -33,6 +33,8 @@ path "sys/mounts/*" { capabilities = ["create", "read", "update", "delete
|
||||
# KV v2 settings (max versions, check-and-set) of the KV mount
|
||||
path "secret/config" { capabilities = ["read", "update"] }
|
||||
path "secret/metadata/*" { capabilities = ["list"] }
|
||||
# Creating a new KV v2 secret. Create only: values can't be read back and existing secrets can't be overwritten
|
||||
path "secret/data/*" { capabilities = ["create"] }
|
||||
|
||||
# Dynamic secrets engines: roles, config, credentials and leases. The paths use the default mount
|
||||
# names (database/, aws/, ssh/); repeat a block with your own mount path for each engine you manage.
|
||||
|
||||
+3
-3
@@ -86,13 +86,13 @@ For each identity, EnvBao keeps one policy named `envbao-<kind>-<name>` (for exa
|
||||
**Secrets** is where you browse and manage secrets engines. At the top:
|
||||
|
||||
- **New secrets engine** adds a mount (see [Managing secrets engines](#managing-secrets-engines)).
|
||||
- The **Secrets engine** drop-down chooses which engine to work with, with **Settings** and **Delete** for that engine beside it.
|
||||
- The **Secrets engine** drop-down chooses which engine to work with, with **Settings**, **Delete** and (for KV) **New secret** for that engine beside it.
|
||||
|
||||
For a **KV** engine you browse folders and secrets with the breadcrumb under the toolbar. Select a secret to see **who can reach it**: every identity with access, through which policy, and with which capabilities. **Grant access** on that panel opens the grant form for the secret.
|
||||
|
||||

|
||||
|
||||
EnvBao shows secret **names only**. It never reads or displays a secret's value. OpenBao applies the most specific matching policy path, and the table follows the same rule. It does not evaluate parameter constraints, control groups, MFA or templated paths (templated paths are approximated), so a policy using those may be over-reported and is flagged.
|
||||
**New secret** (KV engines) adds a secret under the current folder: type a name such as `expo` and one or more key/value pairs. Values are write-only. EnvBao never reads or displays a secret's value, and it refuses to overwrite an existing secret. OpenBao applies the most specific matching policy path, and the table follows the same rule. It does not evaluate parameter constraints, control groups, MFA or templated paths (templated paths are approximated), so a policy using those may be over-reported and is flagged.
|
||||
|
||||
## Dynamic secrets engines
|
||||
|
||||
@@ -162,7 +162,7 @@ If creating a KV engine succeeds but saving its KV settings fails, the page says
|
||||
## Good to know
|
||||
|
||||
- **Copy it now.** Tokens and generated credentials are shown once only.
|
||||
- **Names, not values.** Secret values are never shown.
|
||||
- **Write-only values.** Secret values can be created but are never shown, and existing secrets can't be changed here.
|
||||
- **Whole-instance reads.** The graph and Access panels read every user, entity, group, token and policy each time they load, which can be slow on very large instances.
|
||||
- **Not everything is managed here.** Auth methods other than userpass, nested groups and non-userpass aliases are not followed, and KV v1 mounts are not shown. See the README's limitations for the full list.
|
||||
- **Policies you did not create are read-only.** Change those with the OpenBao CLI.
|
||||
Reference in new issue
Block a user