Skip to main content
← Back to list
01Issue
FeatureClosedSwamp CLI
Assigneesstack72

Relationships

#1116 Vault audit trail: wire audit through model resolver, serve, and token paths

Opened by stack72 · 7/13/2026

Context: PR #1830 (swamp-club#1109) adds vault read-access audit trail for CLI paths (vault read-secret, vault inspect). Several internal paths that create VaultService instances do not call setAuditRepository(), so reads through those paths are not audited.

Paths to wire:

  • ModelResolver.getVaultService() (src/domain/expressions/model_resolver.ts) — CEL vault.get() expression evaluation
  • src/cli/commands/serve.ts — WebSocket serve path
  • src/libswamp/access/token_create.ts, token_rotate.ts — access token operations
  • src/libswamp/worker/token_create.ts — worker token operations
  • src/domain/models/data_writer.ts — sensitive field vault writes

Each path should also pass descriptive callerContext values (e.g. expression:model-resolver, serve:websocket, access:token-create).

02Bog Flow
OPENTRIAGEDIN PROGRESSCLOSED+ 1 MOREASSIGNEDCLASSIFICATION

Closed

7/13/2026, 7:21:41 PM

No activity in this phase yet.

03Sludge Pulse
stack72 assigned stack727/13/2026, 6:58:32 PM
Editable. Press Enter to edit.

stack72 commented 7/13/2026, 7:21:39 PM

Already closed as part of 1109

Sign in to post a ripple.