Add agentvault with a seed-outpost subcommand #7
Reference in New Issue
Block a user
Delete Branch "benvin/agentvault-seed-outpost"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Interactive agents are classifier-blocked from plumbing credentials through a shell, so seeding an Authentik outpost token into Vault KV has to happen inside a single binary invocation that never exposes the secret — the same reason
agentprmints its Gitea token internally.agentvault, a fourth CLI sharing the existing Vault AppRole login (role_id only;VAULT_ADDR/AGENT_APPROLE_ROLE_IDdefaults unchanged).agentvault seed-outpost: reads the Authentik API token fromkv/service/authentik/agent-api-token(fieldtoken, falling back toapi_token), exact-matches the outpost via/api/v3/outposts/instances/?search=, fetches its key from/api/v3/core/tokens/<identifier>/view_key/, and writes it to--dest-pathunder--dest-key(defaulttoken).view_key, KV write denied) with actionable messages built onErrVaultDenied/ErrVaultNotFound/ErrOutpostNotFound.internal/agent/vaultkv.go(AppRole-authenticated KV-v2 client) andinternal/agent/authentik.goso future deterministic flows land as sibling subcommands.api_tokenfallback, custom dest key and every failure mode against httptest servers, plus a check that no error string leaks a secret.agentvaultinto the Makefile,build-rpm.sh, nfpm contents and completions, the release cross-builds/assets, README and AGENTS.md.Usage: