| title | pg hardstorage jit | ||
|---|---|---|---|
| description | CLI reference for the pg hardstorage jit command. | ||
| tags |
|
Just-in-time access tokens for break-glass operations
Manage JIT (just-in-time) access tokens.
JIT tokens are time-bound elevated grants signed with the operator's ed25519 signing key. Use case: an operator under supervised access needs to perform a destructive operation (kms shred, repo gc --apply, etc.) without holding a permanent elevated token. An admin issues a short-TTL token scoped to the specific operation; the operator passes the token to the destructive command; the audit chain records both issuance and consumption.
Operationally:
# admin issues a 1-hour token for a single shred
pg_hardstorage jit issue ops@acme.example \
--scope kms.shred --duration 1h \
--reason "GDPR Art. 17 erasure request #4421" \
--repo s3://acme
# operator consumes (future commit will wire --jit-token
# into kms shred + other destructive commands)
pg_hardstorage kms shred --tenant T \
--jit-token <encoded-token> --repo s3://acme
# admin lists current tokens
pg_hardstorage jit list --repo s3://acme
# admin revokes if needed
pg_hardstorage jit revoke <token-id> --reason "..."
-h, --help help for jit
--airgapped airgapped: strict refuse outbound endpoints (LLM providers, sinks, OTLP collectors) outside loopback / RFC1918 / explicit airgap.allowlist. Also enabled by PG_HARDSTORAGE_AIRGAPPED=1 or airgapped: strict in the config file.
-c, --config string path to config file (default: XDG/FHS lookup)
--cpu-profile go tool pprof <path> write a pprof CPU profile to this path for the duration of the command (go tool pprof <path> to analyse). Off when empty.
--mem-profile string write a pprof heap profile to this path at command exit. Off when empty.
--no-color disable ANSI color in text output
--on-error-llm on a structured-error failure, drop into the matching LLM helper skill (auto_on_error trigger). Also enabled by PG_HARDSTORAGE_ON_ERROR_LLM=1.
--otel-endpoint string OpenTelemetry OTLP/HTTP endpoint (e.g. http://otel-collector:4318); empty disables tracing
--otel-stdout also export OpenTelemetry traces to stderr (useful for dev)
-o, --output string output format: text|json|ndjson|yaml|template|csv|markdown|html|tap|junit|pdf (default: text on TTY, json off-TTY)
--profile-port go tool pprof http://127.0.0.1:6060/debug/pprof/profile?seconds=30 if non-zero, expose net/http/pprof on 127.0.0.1:<port> for live profiling of long-running commands (e.g. go tool pprof http://127.0.0.1:6060/debug/pprof/profile?seconds=30). Off when zero.
-q, --quiet suppress non-essential output
--template string Go text/template applied when --output template (or implied if --template is set without --output)
- pg_hardstorage - PostgreSQL backup, done right.
- pg_hardstorage jit issue - Mint a new JIT access token
- pg_hardstorage jit list - List JIT tokens with effective lifecycle status
- pg_hardstorage jit revoke - Revoke a JIT token (writes a sibling .revoked marker)
- pg_hardstorage jit show - Show one JIT token's full body + revocation status
- pg_hardstorage jit verify - Verify a supplied JIT token is currently valid for an operation