chore: tag internal callers with X-Client-Type: service - #94
Merged
Conversation
|
✅ CI - Verify PASSED Commit:
|
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.
Internal synthetic callers that hit PUBLIC agentage endpoints now send
X-Client-Type: service, so the Vector edge classifier tags themuser_type=serviceinstead ofuser/bot.Changed
.github/workflows/deploy.yml"Wait + live smoke" - onesvc_hdr=(...)array for the step, applied to the three public curls:https://${SITE_FQDN}/health(commit assert),/(hero grep),/robots.txt.packages/landing/src/lib/auth.ts- exported module-levelSERVICE_CLIENT_HEADERS, applied centrally to the two AS hops that cross the public edge:GET auth.<domain>/api/auth/tokenand the remote JWKS fetch.packages/landing/src/app/api/session/sign-out/route.ts- server-sidePOST auth.<domain>/api/auth/sign-outnow sends the same shared constant (imported, not redeclared).n/a
http://localhost:3100/container smokes indeploy.yml(in-container, never crosses the edge).newsletter-form,unsubscribe-form,account-menu,doc-markdown-actions) - real browser traffic, must stayuser.Verified
YAML parse of
deploy.yml,npm run type-check(landing + shared), eslint + prettier on touched files,vitest packages/landing/src/lib/auth(5 passed). No e2e.