Repository navigation
Conversation
3 tasks done
Contributor
|
The four Clerk failures in the audit-engine job come from stale synthetic keys in |
Signed-off-by: Ching-Wei Kang <[email protected]> (cherry picked from commit 705be87)
Signed-off-by: Ching-Wei Kang <[email protected]> (cherry picked from commit 2b756c1)
…t hosts, add base64url, unpadded and malformed-body cases #1478 Signed-off-by: Nik Cubrilovic <[email protected]> (cherry picked from commit 85156fd)
nc9
force-pushed
the
fix/clerk-publishable-key-1478
branch
from
November 1, 2026 03:02
85156fd to
2114e50
Compare
This was referenced Nov 1, 2026
Closed
Merged
Merged
Contributor
Author
|
Landed in v0.0.155 as nik |
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.
Adopts #1481 (William, #1478: a Stripe publishable key was mistaken for Clerk) by cherry-pick with authorship preserved, plus two maintainer commits. Refs #1478 (the issue is checked against its acceptance criteria after release); #1481 and the overlapping draft #1479 are closed with the new SHAs after the release.
Commits
fix(tech-detect): validate Clerk publishable keys (#1478)(705be87c)clerk.host ending in$); teststest(tech-detect): update Clerk bundle fixtures (#1478)(2b756c14)tech-bundle-real-build-1254) and the secret-scan allowlist comments; without it 4 tests in that file fail under the stricter checkfix(tech-detect): clerk keys: build test keys at run time, allow short hosts, add base64url, unpadded and malformed-body cases #1478a.clerk.x.com$still match (the test fails with 20); new negatives (no$, bytes after$, a host withoutclerk., Stripe bodies that contain base64 of "erk"/"cler"); docs sentenceComparison with #1479
#1479 only checks that a short base64 fragment of
clerkappears somewhere in the body, so it still matches a Stripe-shaped body containing such a fragment, a decoded host with no$, and trailing bytes. #1481 decodes and validates. Both stay linear on 1 MB hostile inputs (3 to 20 ms, no per-candidate allocation beyond 200 characters).Checks
tsgo clean in tech-detect; cli
format:checkand lint clean; detect-secrets clean; docsmake validate; all 17 tech-detect test files by path, 0 fail (clerk 5, bundle-content-1254 54, pattern-bounds 5, klaviyo 11) and audit-enginetech-bundle-real-build-125411; CHANGELOG guard clean. No skill, workflow, rule-id or package.json change. No version bump: draft for the v0.0.154 batch.