Repository navigation
fix(credentials): offer keyless Google delegation only for services that can be delegated - #9992
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
[Low impact] This PR appears safe to merge; the changed advice preserves the existing refusal checks. SummaryUpdates keyless Google credential errors so reconnect advice appears only for services that support delegation.
No actionable issues found. Tests were inspected, not run. Reviews (2) · Last reviewed commit: "fix(credentials): send unsupported Googl..." · Reviewed by Greptile |
There was a problem hiding this comment.
1 issue found across 2 files
Confidence score: 4/5
- In
google-workload-identity.server.ts, clearing the Impersonated Account won’t make unsupported services likegoogle-adswork. Reserve that advice for supported Google Cloud services and direct unsupported services to a JSON key.
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="apps/sim/lib/credentials/google-workload-identity.server.ts">
<violation number="1" location="apps/sim/lib/credentials/google-workload-identity.server.ts:956">
P3: For unsupported services such as `google-ads`, clearing `Impersonated Account` still leaves the service unsupported. Reserve that remedy for supported Google Cloud services and direct unsupported services to a JSON key.</violation>
</file>
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
…hat can be delegated
5d659bf to
96868f8
Compare
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
Summary
googleDelegationServiceForcheck the function already uses for delegation.google_keyless_delegation,google_keyless_service).google_keyless_delegation_unavailableandgoogle_keyless_service_unsupported.Type of Change
Testing
google-workload-identity.server.test.ts: delegable services, including a service named by its OAuth provider id, keep the reconnect steps. Ads, BigQuery/Vertex impersonation and an unknown service get the non-delegable steps. The four non-delegable cases fail on the previous code.lib/credentials(Google),lib/oauthandlib/credentials/applicationpass.bun run lint,check:test-patterns,check:comment-hygiene,check:explicit-any,check:boundariesandcheck:test-typespass.Checklist
test-auditauthoring gate)