Implements SECRETS-WP-0002 end to end as a uv-managed Python package: - catalog: non-secret lane registry + strict validator (build/test/prod) - stage roles + OpenBao ACL policies; guards refuse wildcards, sys/, identity/, admin names, and cross-stage paths before any backend call - plan/apply: dry-run-first, idempotent policy + approle apply, decision-gated - decisions: State Hub lookup with local-fixture fallback; non-secret evidence to JSONL + hub progress, scrubbed of any value - provision/verify: mode-0600 file import + generated test values; positive/ negative checks that never print the value - exec delivery: `exec --catalog ... -- npm publish` injects the token via a temp .npmrc for the child only, cleaned up on exit/failure/interrupt - ops-warden routing contract + hardening backlog docs - 34 tests incl. live OpenBao integration; scripts/demo-e2e.sh runs the full chain against a throwaway bao dev server Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
# Example BUILD-stage lane. Demonstrates that build entries can be looser:
|
|
# generated test values are allowed and no production decision is required.
|
|
id: example-build-test-token
|
|
owner: platform-ci
|
|
stage: build
|
|
description: >-
|
|
Throwaway generated credential for build-stage integration tests. May be
|
|
generated locally; must never be reused in test or prod.
|
|
|
|
mount: secret
|
|
path: build/example/test-token
|
|
|
|
fields:
|
|
- api_token
|
|
|
|
consumers:
|
|
- name: build-runner
|
|
auth: approle
|
|
claim: "role:build-runner"
|
|
purpose: "exercise build-stage integration tests"
|
|
|
|
delivery_modes:
|
|
- exec-env
|
|
- read-check
|
|
|
|
# Build stage permits bootstrap-only / generated values without a prod decision.
|
|
approval:
|
|
model: bootstrap-only
|
|
notes: "Build stage: generated test secret, no production decision required."
|
|
|
|
verification:
|
|
positive: "build-runner token can read the generated value"
|
|
negative: "prod consumers cannot read build paths"
|
|
|
|
rotation:
|
|
expectation: "regenerate per run"
|
|
ttl: "1h"
|
|
|
|
deactivation:
|
|
expectation: "delete on build teardown"
|
|
|
|
audit:
|
|
evidence: "actor, path, timestamp, result — no secret value"
|