Repository navigation
Clear the 17 open CodeQL alerts - #14
Merged
Merged
Conversation
Three groups of findings, all fixed in code rather than dismissed: - actions/missing-workflow-permissions (backend-ci, frontend-ci, frontend-e2e): the workflows inherited the repository default for GITHUB_TOKEN. Each now declares `permissions: contents: read`, the least it needs; only codeql.yml asks for security-events: write. - js/incomplete-sanitization (both Langflow iframe assertions): the specs escaped dots only, so any other metacharacter in the URL would have made the prefix match wrong. The assertion moves into DevelopPage.expectEmbeddedFrom, which escapes every metacharacter, and both tiers call it instead of duplicating the RegExp. - py/clear-text-logging-sensitive-data (12 sinks): the query treats a value as sensitive when the name that holds it matches its secret heuristic, so the Secret *names* logged by the NIM controller, the credential helpers and the gateway client-secret copy were reported. The log lines no longer interpolate a Secret name; they keep the namespace and the instance kind/id, which identify the instance anyway. No Secret value was ever logged.
Collaborator
Author
|
The Evidence:
So the toasts are broken on |
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.
Summary
Fixes every open code-scanning alert in this repository, in code, with no dismissals.
actions/missing-workflow-permissionspermissions: contents: readat the top ofbackend-ci.yml,frontend-ci.ymlandfrontend-e2e.yml; onlycodeql.ymlneedssecurity-events: write.js/incomplete-sanitization.only, so any other metacharacter in the URL would have broken the prefix match. They now callDevelopPage.expectEmbeddedFrom, which escapes every regex metacharacter, so one copy of the RegExp serves both e2e tiers.py/clear-text-logging-sensitive-datasecret_name,credential.secret_name,GATEWAY_CLIENT_SECRET_NAME) is reported. The 12 sinks no longer interpolate a Secret name; they log the namespace and the instance kind/id instead. No Secret value was ever logged.Why the Python alerts are fixed rather than dismissed
py/clear-text-logging-sensitive-datahas no sanitizer, and the sources here arename-heuristic (
SensitiveVariableAssignmentmarkssecret_name = "..."as a source),not a real flow of Secret data. Dropping the name from the message keeps the log
useful (the namespace and instance id identify the instance; the names were
constants or fixed suffixes) and leaves nothing for the heuristic to flag.
Test plan
backend/hack/lint.sh(ruff check + format)backend/hack/runtest.sh— 770 passedpnpm exec tsc --noEmit,pnpm lintandprettier --checkon the changed e2e filesplaywright test e2e/fast/runtime-config.spec.ts— the iframe assertion passes; the later clipboard-toast step fails identically on unmodifiedmainon this machine, so it is pre-existing and unrelated