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

Relationships

#530 swamp-issue skill should scrub secrets and org-specific data before submission

Opened by bixu · 6/2/2026· Shipped 6/2/2026

Problem

The swamp-issue skill has no sanitization step. Bug content gathered from a working session often contains secrets (tokens, API keys, vault references), internal identifiers (org/repo names, hostnames, emails), or local paths that leak the user's identity or employer. The skill advances gather_details -> version_check -> submit with no prompt for the agent to redact.

This is a real risk for any agent driving the skill on behalf of a user inside a private project: error logs, stack traces, env dumps, and reproduction commands routinely contain material that should not be posted publicly.

Proposed solution

Add a sanitization gate in (or after) gather_details. Instruct the agent to:

  1. Scan the drafted title and body for:
    • Secrets: tokens, passwords, private keys, JWTs, vault references, Authorization headers, cookies
    • Identifiers: org/repo names, internal hostnames, IPs, email addresses, usernames
    • Paths: absolute paths under /Users/, /home/, or other locations that identify the host
  2. Replace findings with neutral placeholders (<REDACTED_TOKEN>, <ORG>, /path/to/repo).
  3. Confirm redactions with the user before submitting if anything was changed.

Applies equally to --extension @third-party/* handoff via gh, since the same content leaves the local machine.

Alternatives

  • Server-side scrubbing on the Lab API — does not cover third-party handoff, and the data has already left the machine by then.
  • A --scrub flag — only helps agents who know it exists; skill guidance is loaded on every invocation, which is the higher-leverage surface.
02Bog Flow
OPENTRIAGEDIN PROGRESSSHIPPED+ 1 MOREASSIGNED+ 2 MOREREVIEW+ 3 MOREPR_MERGED+ 1 MORECONTRIBUTOR_NOTIFIED

Shipped

6/2/2026, 11:24:06 PM

Click a lifecycle step above to view its details.

03Sludge Pulse
stack72 assigned stack726/2/2026, 9:55:07 PM
Editable. Press Enter to edit.

stack72 commented 6/2/2026, 11:24:12 PM

Thanks @bixu for reporting this! The fix has been merged and a release is on its way. We appreciate your contribution to swamp.

Sign in to post a ripple.