-
-
Notifications
You must be signed in to change notification settings - Fork 7
security: scope tokens to hosts to prevent credential exfiltration #844
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
BYK
wants to merge
23
commits into
main
Choose a base branch
from
byk/security/host-scoped-tokens
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
a5df350
security: scope tokens to hosts to prevent credential exfiltration
0cc8a5a
fix: surface CliError from .sentryclirc shim; clarify SaaS port test
eda92e8
fix: extend host-scoping trust class to include discovered regional s…
b27fcd6
fix: bypass rc URL guard for auth login/logout; fix bare-hostname sco…
0ecd19e
fix: robust argv parsing for auth login/logout detection
c53d54b
security: address subagent review findings (fail-closed, HostScopeErr…
a8d080a
fix: persist login URL only after login succeeds (not before re-auth …
2b54883
fix: allow IAP custom headers during 'auth login --url' onboarding
f7a5b46
security: tighten SaaS bypass + trust anchor registration (bot review)
0ac9480
security: refuse auth login when effective host is rc-sourced (CVE #4)
10126e3
security: migrate NULL host from boot snapshot + tighten SaaS checks
fdae715
fix: atomic stored-token-host lookup (no TOCTOU fallback)
1db4af1
security: parse sntrys_ token claim for fetch-layer DiD + env-token UX
ac1cac4
fix: normalize bare-hostname rc URL + evict trust state on clearAuth
06b125b
fix: claim check honors region URL extension (self-hosted multi-region)
e58ac95
fix(test): format compaction (CI biome stricter than local)
88acb82
fix: clearAuth preserves login trust anchor (re-auth + IAP)
d8673ed
refactor: consolidate trust-extension state + remove AI slop
55c4831
fix: refuseLoginToUntrustedHost checks anchor matches host (not just …
b79fd88
refactor: extract shared host-scoping test helpers + normalizeUserInp…
148897c
fix: only refuse --token login to untrusted host (drop OAuth-path fri…
7c59a51
remove: drop hasLoginTrustAnchor (footgun, no production callers)
1554a10
revert: re-enable refusal for OAuth login path (phishing defense)
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.