Repository navigation
Release 1.1.4514.4: wider secret masking, M and 亿 token counts, lint CI, contributor docs - #1
Open
devin-ai-integration[bot] wants to merge 8 commits into
Open
devin-ai-integration[bot] wants to merge 8 commits into
devin-ai-integration[bot] wants to merge 8 commits into
Conversation
…CI, contributor docs Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Author
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Author
There was a problem hiding this comment.
Devin Review found 5 findings. Devin automatically fixed all 5 findings.
Fixed by Devin (5)
- Password masking corrupts ordinary URLs —
http://localhost:8080?email=user@example.comhad8080?email=usermasked.?and#now end the host part in URL_PASSWORD. - Version check accepts stale bundles — A stale PLUGIN_VERSION2 in one compiled module passed as long as another module held the new number. check-version.py now reads every built PLUGIN_VERSION copy and fails on any that differs.
- Unmasked Basic credentials for spaced usernames —
Basic <base64 of "John Smith:hunter2">was left unmasked because the user name part excluded the space. The user name now allows a space, and a test covers it. - Lowercase Basic credentials remain visible —
authorization: basic <base64>was left unmasked. The scheme now matches in any case, and the value counts only when it decodes to an ASCII user:password pair, which also stops paths after "Basic" being masked. - Earlier placeholders suppress credential warnings —
password: "xxxx…", client_secret: "<real>"on one staged line passed the scan because only the first assignment was tested. Every assignment on the line is now checked.
This branch has not been deployed
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.
What changes
Plugin and source go to 1.1.4514.4. The bundled Mac pet and the installers stay at 1.1.4514.2 (they need a Developer ID signature and notarization), and
COMPANION_MIN_VERSIONis unchanged.New
source/hooks/c3-secrets.ts) knows more shapes: npm, PyPI, Slack app and refresh tokens, Google OAuth, DigitalOcean, xAI, Groq, Telegram bots, Stripe test keys and webhook secrets, HTTP Basic. This applies to sticky notes, window notes and the staged-diff check on commit.postgres://user:password@host) is masked and the rest of the address is kept. Placeholders such as${DB_PASSWORD},<password>and%sare left alone.DB_PASSWORD,MY_API_KEY,aws_secret_access_key,AccountKey,client-secret,x-api-key) now count. Before, the\bin front ofpassworddid not match after_.compactTokenText(source/hooks/numbers.ts) usesMfrom a million and 亿/億 from a hundred million:1.2Mand1.2亿instead of1,234.5kand12,345万.999,950becomes1M, not1000k.CONTRIBUTING.md,SECURITY.md, a PR template, issue forms for bugs and ideas, and links to them from the three READMEs.CI and checks
lintjob (Ubuntu, about a minute, no Claude Code needed):scripts/check.sh --scan-only,scripts/check-version.py(new: every copy of the version agrees withplugin.json, including each copy in the built bundle),build-hooks-graph.py --check, shellcheck at error level, and a parse of every tracked Python and JSON file.Fixed
scripts/check.shfailed on a clean checkout ofmain: the release list did not include the line supplement files from 1.1.4514.3 (plugin/assets/lines,source/line-supplements.json,tools/build-line-supplements.py,tools/tests/companion-lines). They are now listed.name=valueon a line, so a placeholder in front could hide a real key behind it. It now tests each one.docs/install.htmlpointed at a file GitHub Pages does not serve (404). It now points at the GitHub Release asset.raisestatements insideexceptnow usefrom None, and one duplicate import is gone (Ruff B904, F811).How it was checked
m1-bookmark-secrets(12 pass),numbers-c1(61),quota-round-b1,c3-runtime(32),promises-persistence,m1-c3-security(13),localization. All pass.claude plugin validate .andclaude plugin validate pluginpass.scripts/check.sh --scan-onlypasses on a clean copy of this branch; it fails onmain.build-hooks-graph.py --checkreports the 241 files match.Things to look at
algo-core.mjswas rebuilt without its private entry file. The staged-diff scan runs from this bundle, not fromc3-secrets.tsdirectly, and its entry (tools/c3-algo-core.ts) is not in the public tree. I rebuilt the entry from the existing bundle and bundled it with Bun 1.4.2. The same steps on the oldc3-secrets.tsgive the committed bundle byte for byte, and a new test checks the bundle and the source agree on the new shapes. Please rebuild it from the real entry before release if you want to be sure.Basic <base64>masking matches the scheme in any case and counts only when the value decodes to an ASCIIuser:passwordpair, so paths and plain words after "basic" are left alone. A password with non-ASCII characters is not masked.docs/install.htmlis edited by hand. If a private generator writes it, the link needs the same change there.companion-macos.sh. Warnings are not fixed in this PR.Checklist
source/hooks(not only inplugin/hooks), and the hooks are rebuilttools/testscovers itCHANGELOG.mdhas a line if a user would notice (under the new[1.1.4514.4]heading)Link to Devin session: https://app.devin.ai/sessions/ef9bec68abe94663978296df53236e1a
Open in Devin Desktop: https://app.devin.ai/desktop/session/ef9bec68abe94663978296df53236e1a?variant=devin
Requested by: @ninondev
🟢 Devin fixed all 5 findings · Follow Devin's work