Repository navigation
Closed
Labels
effort/lowEffort Low: little workpriority/p2-mediumPriority P2: standard workscope/securitySecurity linters (trivy, bandit, gitleaks, kubeconform) and Vaultsource/agentFiled by an agenttype/bugType bug: the code does not do what it mustvalue/mediumValue Medium
Description
Problem or Motivation
The secret masker replaces plain words that follow the word token or Secret with <masked-token>, and devops roadmap intake then refuses the candidate ("The candidate's body holds what looks like a secret ... filed nothing"). On 2026-11-12, two candidates with no secret were refused:
- A sentence where the word Secret is followed directly by a resource name (the Kubernetes object of kind Secret, whose name is devops-cli): the masker replaced the name with
<masked-token>. - The subcommand revoke-self of the vault CLI group token, written as a command line: the masker replaced the subcommand with
<masked-token>.
Each refusal stops a filing run, and an agent must reword correct text to get past the check.
Proposed Solution & Architectural Design
- In
src/devops_cli/security/sanitizer.py, the rule that masks a value after a key word matches only an assignment form (token=,token:,"token": "..., anAuthorizationheader, a flag--token <value>), or a value that has the shape of a credential (a known prefix, or a high-entropy run of the length that the rule names). A lower-case word with hyphens afterSecretortokenis not masked. - Keep every current true positive: add the two shapes above as negative cases (build the test strings in the test from parts, so this issue text stays readable by the masker) and keep the existing positive cases.
Target Subsystem
Security: the secret masker (src/devops_cli/security/sanitizer.py) and its use in devops roadmap intake.
Existing Tool Considered
The masker already has its rule table and tests; the change narrows one rule. A detector library (for example detect-secrets) was not chosen for this small fix.
Acceptance Criteria
- Tests: the two shapes above pass through unchanged; each existing positive case of the sanitizer tests still masks.
-
uv run devops ci fail-to-pass --base origin/mainshows the two negative cases fail on the base. -
devops roadmap intake --dry-runwith a body that holds the two shapes plans a filing.
Source: #5233
Metadata
Metadata
Assignees
Labels
effort/lowEffort Low: little workpriority/p2-mediumPriority P2: standard workscope/securitySecurity linters (trivy, bandit, gitleaks, kubeconform) and Vaultsource/agentFiled by an agenttype/bugType bug: the code does not do what it mustvalue/mediumValue Medium
Activity
dan-petty commentedon Nov 12, 2026
Both fix false positives in the same sanitizer rule for the word 'token', but 2613 targets the colon-separated form and the candidate targets the space-separated subcommand form.devops-cli-service commentedon Nov 15, 2026
Released in v0.153.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.153.0
devops-cli-service commentedon Nov 15, 2026
Live since 2026-11-15 13:55 UTC