You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(gcp): add oidc-storage-method flag for workload identity providers
Introduce a new --oidc-storage-method flag that allows users to choose
how OIDC JWK files are stored when provisioning GCP workload identity
providers. Two methods are now supported:
- "public-bucket" (default): Creates a public GCS bucket to host OIDC
configuration and JWK files
- "pool-jwk-file": Attaches the JWK directly to the workload identity
pool provider without creating a bucket
The pool-jwk-file method is useful for environments with strict bucket
policies or when a bucketless configuration is preferred. The
implementation includes create and update operations for identity
providers with embedded JWKs.
Assisted-by: Claude Sonnet 4.6, gemini-3.1-pro-preview
createAllCmd.PersistentFlags().StringVar(&CreateAllOpts.TargetDir, "output-dir", "", "Directory to place generated files (defaults to current directory)")
118
121
createAllCmd.PersistentFlags().BoolVar(&CreateAllOpts.EnableTechPreview, "enable-tech-preview", false, "Opt into processing CredentialsRequests marked as tech-preview")
119
122
createAllCmd.PersistentFlags().StringVar(&CreateAllOpts.PublicKeyPath, "public-key-file", "", "Path to public ServiceAccount signing key")
123
+
createAllCmd.PersistentFlags().StringVar(&CreateAllOpts.OidcStorageMethod, "oidc-storage-method", OidcStorageMethodPublicBucket, fmt.Sprintf("Method for storing OIDC JWK files. %q (default) creates a public GCS bucket; %q attaches the JWK directly to the workload identity pool provider without creating a bucket", OidcStorageMethodPublicBucket, OidcStorageMethodPoolJwkFile))
createWorkloadIdentityProviderCmd.PersistentFlags().StringVar(&CreateWorkloadIdentityProviderOpts.PublicKeyPath, "public-key-file", "", "Path to public ServiceAccount signing key")
319
417
createWorkloadIdentityProviderCmd.PersistentFlags().BoolVar(&CreateWorkloadIdentityProviderOpts.DryRun, "dry-run", false, "Skip creating objects, and just save what would have been created into files")
320
418
createWorkloadIdentityProviderCmd.PersistentFlags().StringVar(&CreateWorkloadIdentityProviderOpts.TargetDir, "output-dir", "", "Directory to place generated files (defaults to current directory)")
419
+
createWorkloadIdentityProviderCmd.PersistentFlags().StringVar(&CreateWorkloadIdentityProviderOpts.OidcStorageMethod, "oidc-storage-method", OidcStorageMethodPublicBucket, fmt.Sprintf("Method for storing OIDC JWK files. %q (default) creates a public GCS bucket; %q attaches the JWK directly to the workload identity pool provider without creating a bucket", OidcStorageMethodPublicBucket, OidcStorageMethodPoolJwkFile))
0 commit comments