Repository navigation
Conversation
…y must hold the base64 of clerk #1478 Signed-off-by: Nik Cubrilovic <[email protected]>
Contributor
Author
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.
Closes #1478 (first two criteria; the corpus re-detect is a run on the box).
The Clerk bundle pattern took any
publishableKey: "pk_live_..."orpk_test_with a 20 to 200 character body. Stripe publishable keys share the prefix and the property name, sostripe:{publishableKey:"pk_live_..."}in an app config read as Clerk.A Clerk key's body is the base64 of its Frontend API host (
clerk.<domain>$,<name>.clerk.accounts.dev$), so it contains the base64 ofclerkat one of its three alignments:Y2xlcm,ZXJrorbGVy. The twoinBundlepatterns (pk_test_,pk_live_) now need one of those inside the key (a bounded split of the body around it, no lookahead). Stripe's opaque body has none (a chance hit of a 4-character run in a 99-character body is about 1 in 160,000).bundle-content-1254.test.ts, 57 pass; the Stripe test fails on main): a Stripe live and a test key, quoted and with the||fallback shape, detect no Clerk; real-shaped keys (base64 ofclerk.example.com$,foo-bar-12.clerk.accounts.dev$and four more hosts) still detect, with test and live prefixes; a bundle holding both detects Clerk once. Two existing fixtures used"a".repeat(30)bodies and now use the base64 ofclerk.example.com$. Key-shaped test strings are built at run time or marked for the secret scanner.docs/cloud/technologies.mdx, CHANGELOG under Unreleased / Fixed.Skill: no change needed.
nik