Adds sys/mounts/* and secret/config to the least-privilege policy and
runs create, tune and delete under only that policy. Mounting, tuning
and deleting need no sudo; KV settings are only covered on secret/, so
settings on another KV mount fail after the mount is created, which
the README and the UI's partial-create message now explain. Integration
tests also confirm that deleting a mount revokes the leases it issued
and that a blank TTL resets to the system default.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Adds create/tune/delete for secrets engine mounts, the KV v2 settings
that live on the mount, and an impact summary for deletes. Mount lists
now carry description and explicit lease TTLs: sys/mounts/<path>/tune
reports the effective value, which would pin the system default if it
were saved back, so edits prefill from the list instead.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
docker compose now runs a Postgres with sample tables and an SSH server
that trusts the CA in OpenBao's ssh/ engine. seed.sh configures the
database engine (dynamic and static roles), the ssh CA and a role, a few
live leases, and grants for alice and the platform group. CI gains a
Postgres service so the database engine and its admin-policy rules are
tested against a real database (skipped when BAO_PG_URL is unset).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Adds database, aws, ssh and lease rules to the least-privilege policy,
with the ssh flows (config, roles, sign, OTP, lease list/lookup/revoke
and revoke-by-prefix) run under only that policy in the integration
tests. That showed listing leases and revoking by prefix need sudo.
README documents the new screens, enabling the engines, the AWS plugin
caveat and the credential handling.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
dynamicGrantRules expands a grant on a role into the credential paths
its requests need (generate) and the role CRUD paths (manage); unticked
access comes back empty so writing it revokes. Roles get an Access panel
showing who can generate credentials or manage them, and the identity
Access editor can pick dynamic mounts and roles. Checked against
capabilities-self and a real token in the integration tests.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Adds a Leases tab that walks sys/leases/lookup under the mount, shows a
lease's timings on demand, renews renewable leases, and revokes one
lease or everything under a prefix after confirmation. Covered by unit
tests and an ssh OTP integration test.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Adds Config tab (database connections with rotate/reset, aws root and
lease, ssh CA with generate/import) and a Generate action on roles
(database/static creds, aws creds, ssh sign and OTP). Secret inputs are
write-only: never prefilled and omitted when blank so the stored value
is kept. Issued credentials live only in a gcTime-0 mutation and are
shown once, with revoke-now for leased credentials.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Registry gains per-engine role kinds with field schemas (database
dynamic and static roles, aws, ssh); unknown engines get a raw JSON
role editor. RolesPanel lists, creates, edits and deletes roles, and
edits write back fields the form does not know about so they are not
dropped. Covered by unit tests and an ssh integration test.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Adds listMounts and an engine registry (database, aws, ssh, generic
fallback). The Secrets page groups mounts by engine; KV v2 keeps the
path browser and dynamic mounts get a placeholder EngineView.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
OpenBao copies the creator's policies when none are sent, so a token created
with nothing ticked while signed in as root was itself root. The New token form
now starts with `default` ticked, and createToken sends ['default'] for an
empty selection.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- Add a token-based design system (light/dark colours, type and spacing scales)
and style buttons, forms, tables, tabs and the app shell.
- Show a server and session summary (version, status, cluster, server time,
token expiry) instead of the connect form while connected.
- Replace the free-text secret path in the Access panel with a browsable picker
and an "everything inside" tickbox; typing a path is still available.
- Re-lay out the Access panel: header bar, current access beside the grant form.
- Seed the docker-compose stack with sample secrets, users, entities, a group,
policies and a token via docker/seed.sh (safe to re-run).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Model follows OpenBao's most-specific-path rule rather than unioning matches,
verified against sys/capabilities-self in integration tests.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>