-
Notifications
You must be signed in to change notification settings - Fork 200
fix(googlechat): supported keyless ADC and reliable send-once #1513
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
chaodu-obk
wants to merge
10
commits into
main
Choose a base branch
from
fix/pr-1512-review-f15-f28
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
10 commits
Select commit
Hold shift + click to select a range
4aa4d05
feat(googlechat): keyless ADC auth + send-once for the unified adapter
sebastian-hsu bd62ee4
fix(googlechat): address review findings F15-F28
chaodu-obk[bot] 904f626
fix(googlechat): make delete_message an explicit no-op
chaodu-obk[bot] fa9d58a
test(googlechat): lock token and edit boundaries
chaodu-obk[bot] 3a1ce86
fix(googlechat): use supported ADC impersonation and delivery acks
chaodu-obk[bot] 3b08312
fix(googlechat): harden ADC metadata client (no proxy, fail-loud build)
chaodu-agent 6fe3857
Merge main into fix/pr-1512-review-f15-f28
chaodu-agent 6115377
fix(googlechat): address ADC review findings
chaodu-obk[bot] 31cea79
fix(googlechat): complete reliable ADC delivery paths
chaodu-agent b298e0a
fix(googlechat): include queue wait in delivery deadline
chaodu-agent 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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,69 @@ | ||
| suite: gateway serviceAccountName support | ||
|
|
||
| templates: | ||
| - templates/gateway.yaml | ||
|
|
||
| set: | ||
| agents.kiro.gateway.enabled: true | ||
|
|
||
| tests: | ||
| - it: does not render a gateway serviceAccountName when no value is set | ||
| documentIndex: 0 | ||
| asserts: | ||
| - notExists: | ||
| path: spec.template.spec.serviceAccountName | ||
|
|
||
| - it: falls back to the chart-global serviceAccountName | ||
| set: | ||
| serviceAccountName: global-runtime | ||
| documentIndex: 0 | ||
| asserts: | ||
| - equal: | ||
| path: spec.template.spec.serviceAccountName | ||
| value: global-runtime | ||
|
|
||
| - it: falls back to the per-agent serviceAccountName before the global value | ||
| set: | ||
| serviceAccountName: global-runtime | ||
| agents.kiro.serviceAccountName: agent-runtime | ||
| documentIndex: 0 | ||
| asserts: | ||
| - equal: | ||
| path: spec.template.spec.serviceAccountName | ||
| value: agent-runtime | ||
|
|
||
| - it: gateway serviceAccountName overrides per-agent and global values | ||
| set: | ||
| serviceAccountName: global-runtime | ||
| agents.kiro.serviceAccountName: agent-runtime | ||
| agents.kiro.gateway.serviceAccountName: gateway-runtime | ||
| documentIndex: 0 | ||
| asserts: | ||
| - equal: | ||
| path: spec.template.spec.serviceAccountName | ||
| value: gateway-runtime | ||
|
|
||
| - it: renders ADC target and the dedicated gateway runtime service account together | ||
| set: | ||
| agents.kiro.gateway.serviceAccountName: googlechat-runtime | ||
| agents.kiro.gateway.googleChat.useAdc: true | ||
| agents.kiro.gateway.googleChat.adcTargetServiceAccount: openab-chat@project.iam.gserviceaccount.com | ||
| documentIndex: 0 | ||
| asserts: | ||
| - equal: | ||
| path: spec.template.spec.serviceAccountName | ||
| value: googlechat-runtime | ||
| - contains: | ||
| path: spec.template.spec.containers[0].env | ||
| content: | ||
| name: GOOGLE_CHAT_ADC_TARGET_SERVICE_ACCOUNT | ||
| value: openab-chat@project.iam.gserviceaccount.com | ||
|
|
||
| - it: quotes numeric-looking gateway serviceAccountName as a string | ||
| set: | ||
| agents.kiro.gateway.serviceAccountName: "123" | ||
| documentIndex: 0 | ||
| asserts: | ||
| - equal: | ||
| path: spec.template.spec.serviceAccountName | ||
| value: "123" |
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.
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.
🟡 F2 - Preserve gateway identity across Helm upgrades
Before this change the gateway omitted
serviceAccountNameand used Kubernetes' default ServiceAccount. An empty gateway value now inherits the agent/global account, so existing releases with either value set silently change the gateway's RBAC and cloud identity on upgrade. There is also no value that explicitly preserves the old default-account behavior.Requested change: make inheritance opt-in or add an explicit preserve-default mode, then cover and document the upgrade path. Explicit
gateway.serviceAccountNameshould continue to support Workload Identity.