-
Notifications
You must be signed in to change notification settings - Fork 1.2k
feat: Enable Bound Token for Agentic Identities #13873
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
macastelaz
wants to merge
25
commits into
googleapis:agentic-identities-bound-token
Choose a base branch
from
macastelaz:pr-13169-fixes
base: agentic-identities-bound-token
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
25 commits
Select commit
Hold shift + click to select a range
0af6032
Port Agent Identities feature for Cloud Run
vverman 9d5672f
Added support for:
vverman a591db4
Added logic to verify key and cert to ensure no mismatch along with r…
vverman 18afacb
Added documentation and addressed comments.
vverman 7a2ae21
lint fix.
vverman 2c1c298
Fix unaddressed comments from PR 13169
macastelaz 0e3d440
Fix incorrect fail-fast logic for custom certificate config paths
macastelaz c5fab1d
Fix AgentIdentityUtils token binding logic and TOCTOU vulnerabilities
macastelaz 0036d0c
Fix token binding 30s timeout on permission and absent config errors
macastelaz 4d99d25
fix: resolve lint/formatting issues in AgentIdentityUtils
macastelaz 727b596
fix: resolve checkstyle and format violations
macastelaz bd2f98b
test: add edge case coverage and refactor brittle resource loading
macastelaz e3d105e
style: fix checkstyle violations in auth utilities
macastelaz cb71972
Fix AgentIdentityUtilsTest compilation after checkstyle
macastelaz a4b6192
test: fix missing InputStream import in tests
macastelaz 71cd2c1
Restore EnableAutoValue.txt for AutoValue annotation processor
macastelaz ea07ce4
Restore accidentally deleted gradle-wrapper.jar
macastelaz 5b1c82b
style: fix formatting violations in oauth2_http
macastelaz 0649e49
docs(oauth2): Make AgentIdentityUtils Javadoc comments proper and ful…
macastelaz 6181f6a
fix(oauth2): address PR 13873 review findings for agent identity toke…
macastelaz a62afa4
fix(oauth2): address PR 13873 review feedback for agent identity toke…
macastelaz 7742a79
docs(oauth2): make AgentIdentityUtils class Javadoc runtime-agnostic
macastelaz 09da90a
docs(oauth2): clarify certificate-only fallback comment in AgentIdent…
macastelaz b95a5da
fix(oauth2): address PR 13873 review feedback on polling, caching, an…
macastelaz 5c444d1
fix(oauth2): strictly require key_path and verifyKeyPair for bound to…
macastelaz 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
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
1,036 changes: 1,036 additions & 0 deletions
1,036
google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/AgentIdentityUtils.java
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: The 13-line block building the
"certificate_chain"POST payload inrefreshAccessToken()is duplicated verbatim inidTokenWithAudience()at lines 508 to 523. Also, line 554 takes a nullablejsonContentparameter in a@NullMarkedclass without@Nullable, and lines 561 to 565 manually serialize JSON intoByteArrayContentinstead of usingJsonHttpContent(OAuth2Utils.JSON_FACTORY, payload)likeIamUtils.