Add GCP Service-Account Auth UI for Vertex AI Endpoints - #1409
Add GCP Service-Account Auth UI for Vertex AI Endpoints#1409hisanhunais wants to merge 2 commits into
Conversation
|
Warning Review limit reached
Next review available in: 29 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe PR adds GCP Vertex AI service-account authentication to provider and endpoint forms. It supports JSON key upload, validation, persistence, existing-key restoration, explanatory text, and warnings for endpoints without required security settings. ChangesGCP Vertex AI authentication
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant PublisherForm
participant FileReader
participant ActiveEnvironment
participant EndpointCard
PublisherForm->>FileReader: Read selected JSON service-account key
FileReader-->>PublisherForm: Return key content or read error
PublisherForm->>ActiveEnvironment: Save valid key to endpoint security
EndpointCard->>ActiveEnvironment: Check endpoint security settings
ActiveEnvironment-->>EndpointCard: Return security configuration
EndpointCard-->>PublisherForm: Link to endpoint configuration when settings are missing
Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In
`@portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/Endpoints/AIEndpoints/AddEditAIEndpoint.jsx`:
- Around line 817-835: The upload validation in the AI endpoint file must verify
the parsed JSON is a standard GCP service-account key, not merely syntactically
valid JSON. Update the validation before setServiceAccountKey and
saveEndpointSecurityConfig to require type, project_id, private_key, and
client_email; reject missing fields through the existing invalid-key Alert path.
In
`@portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/Endpoints/AIEndpoints/EndpointCard.jsx`:
- Around line 174-176: Update the GCP warning condition in EndpointCard to
inspect the endpoint’s security configuration rather than only endpointSecurity
presence: show the warning unless the security type is GCP and serviceAccountKey
is non-null. Preserve an empty-string serviceAccountKey as a configured value
when determining whether to suppress the warning.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 3c0a32fb-4a1a-44a7-a601-93461259d14b
📒 Files selected for processing (3)
portals/admin/src/main/webapp/source/src/app/components/AiServiceProviders/AddEditAiServiceProvider.jsxportals/publisher/src/main/webapp/source/src/app/components/Apis/Details/Endpoints/AIEndpoints/AddEditAIEndpoint.jsxportals/publisher/src/main/webapp/source/src/app/components/Apis/Details/Endpoints/AIEndpoints/EndpointCard.jsx
|


Purpose