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

Relationships

#495 vault annotate --url fails with query params on @swamp/aws-sm

Opened by webframp · 5/30/2026· Shipped 5/31/2026

Description

swamp vault annotate with --url fails when the URL contains query string parameters (e.g., ?name=foo&region=us-east-1). The annotation URL value is passed through to AWS Secrets Manager's TagResource API, which rejects characters like ? and & in tag values.

Steps to Reproduce

  1. Have an @swamp/aws-sm vault with a stored secret
  2. Run:
    swamp vault annotate aws-secrets "aws-exploration/test-secret" \
      --url "https://console.aws.amazon.com/secretsmanager/secret?name=foo&region=us-east-1"
  3. Observe: InvalidRequestException — Request rejected by the downstream tagging service

Expected Behavior

The URL should be stored successfully, either by URL-encoding the value before passing to AWS tagging, or by storing the URL in the secret's Description field instead of tags.

Actual Behavior

AWS Secrets Manager TagResource failed HTTP 400 InvalidRequestException — Request rejected by the downstream tagging service

Workaround

Use a simplified URL without query parameters — that works fine.

Environment

  • swamp version: 20260530.005533.0-sha.1c117111
  • Platform: macOS Darwin 24.6.0
  • Vault type: @swamp/aws-sm
  • Region: us-east-1

Upstream repository: https://github.com/systeminit/swamp-extensions

Environment

  • Extension: @swamp/aws-sm@2026.05.23.1
  • swamp: 20260530.005533.0-sha.1c117111
  • OS: darwin (aarch64)
  • Deno: 2.7.14+19bd3d8
  • Shell: /bin/zsh
02Bog Flow
OPENTRIAGEDIN PROGRESSSHIPPED+ 2 MORETRIAGE+ 6 MOREREVIEW+ 3 MOREPR_MERGEDSHIPPED

Shipped

5/31/2026, 9:55:31 PM

Click a lifecycle step above to view its details.

03Sludge Pulse
stack72 assigned stack725/31/2026, 8:56:57 PM

Sign in to post a ripple.