Skip to main content
← Back to list
01Issue
FeatureClosedUAT
AssigneesNone

Relationships

#569 UAT: sensitive resource output without vault produces clear pre-flight error

Opened by stack72 · 6/5/2026

Context

swamp-club/swamp#562 added pre-flight vault validation. When a model has sensitive resource output fields and no vault is configured, the method now fails before execution with a clear error message.

Test scenario

CLI UAT (tests/cli/doctor/)

  1. Create a repo with swamp repo init
  2. Create an extension model with a sensitive field: apiKey: z.string().meta({ sensitive: true })
  3. Do NOT create a vault
  4. Run swamp doctor vaults — verify exit code 1 and output lists the model as a finding
  5. Run swamp doctor vaults --json — verify JSON output has overallStatus: fail and the finding

CLI UAT (tests/cli/model/)

  1. Same repo setup — model with sensitive output, no vault
  2. Run swamp model method run — verify it fails BEFORE execution with error mentioning "no vault is configured"
  3. Verify the error message includes "swamp vault create "
  4. Create a vault with swamp vault create local_encryption test-vault
  5. Re-run swamp model method run — verify it succeeds and sensitive data is stored in vault

Adversarial (tests/cli/adversarial/)

  1. Model with sensitiveOutput: true on the spec (all fields sensitive) — verify same pre-flight behavior
  2. Model with nested sensitive field (credentials.apiKey) — verify detection works for nested schemas
02Bog Flow
OPENTRIAGEDIN PROGRESSCLOSED

Closed

6/5/2026, 11:52:31 PM

No activity in this phase yet.

03Sludge Pulse
Editable. Press Enter to edit.

stack72 commented 6/5/2026, 11:52:28 PM

Sign in to post a ripple.