Skip to content

GCP WLIF script improvements

Andrew Evans requested to merge 440835-gcp-wlif-improvements into master

What does this MR do and why?

Related to #440835

Per the reference issue, this change should:

  • remove gcloud config set project , since this has side effects beyond the script
  • add project path to the issuer url, so token sources can be quickly tied to project and group ids
  • add an attribute mapping for the provider to include custom claims data when issuing tokens for fine-grained matching

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

  1. Enable the feature flag on the Rails console: Feature.enable :google_cloud_integration_onboarding
  2. curl "<your local gdk>/api/v4/projects/7/scripts/google_cloud/create_wlif?google_cloud_project_id=abc123" \
      -H 'Authorization: Bearer <your-access-token-here>' \
      -H 'Accept: *'

Merge request reports