Repository navigation
fix(redaction): stop redacting issue keys, Copilot call ids and code identifiers - #3818
Merged
migmartri merged 3 commits intoNov 16, 2026
Merged
Conversation
…identifiers AI coding session redaction replaced values that are not secrets. A match in one key: value position then replaced every copy in the session, including spec titles and URIs. - generic-api-key keeps Jira issue keys. - The AI coding session redactor treats a Copilot apiCallId as opaque. - generic-password keeps an unquoted variable that names a credential. - Bump RulesetVersion to 5. Closes chainloop-dev#3817 Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev> Chainloop-Trace-Sessions: 6d2843d7-b3b9-4576-aaf6-4320133129dd
Contributor
There was a problem hiding this comment.
All reported issues were addressed across 5 files
Tip: Get a Slack DM when cubic finishes reviewing your PRs. Connect Slack
View guided diff | Re-trigger cubic
A camelCase or snake_case value with a digit, such as abcToken123, can be a real credential. The identifier exemptions now accept letters and underscores only. Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev> Chainloop-Trace-Sessions: 6d2843d7-b3b9-4576-aaf6-4320133129dd
The opaque filter skipped every apiCallId value in the transcript, so a credential under that key was never scanned. Only a base64 value of 100 or more characters is now skipped. Any other value is scanned. Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev> Chainloop-Trace-Sessions: 6d2843d7-b3b9-4576-aaf6-4320133129dd
matiasinsaurralde
approved these changes
Nov 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
AI coding session redaction replaced values that are not secrets. A rule matches a value once in a
key: valueposition. The redactor then replaces every copy of that value in the session. When the value is an issue key or a common word, the placeholder spreads into tool results, prose, file names and the spec entries. Theai-config-no-secretspolicy then reports each placeholder as a leaked credential.This change removes three false-positive shapes. The redactor still replaces every copy of a real secret.
generic-api-keykeeps a Jira issue key, such as the key in the arguments of a Jira tool call. The project key part has at most 10 characters, which is the Jira default.apiCallIdof a GitHub Copilot model call as opaque data, like base64 media. The value is a long base64 id, and the key name holdsapi.generic-passwordkeeps an unquoted value that is shaped like a code variable and names a credential: a camelCase or snake_case name such asregistryPasswordorclient_secret, or the bare wordsecretortokenbefore a code delimiter. The upstream rule drops unquoted values in code files, but it reads the file type from a path that the scanned document does not have.password: supersecret, is still redacted.RulesetVersionchanges to 5.This change is narrower than the
^[A-Za-z_]+$exemption that the issue proposes. That exemption also dropped real letters-only passwords in config files and command lines.Sessions that are already uploaded keep their placeholders.
Closes #3817