Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

vertexai: add auth_config to google_vertex_ai_model_development_cluster_xmanager (beta) - #20585

Draft
NA2047 wants to merge 3 commits into
GoogleCloudPlatform:mainfrom
NA2047:mm-b-582339842-xmanager-auth
Draft

NA2047 wants to merge 3 commits into
GoogleCloudPlatform:mainfrom
NA2047:mm-b-582339842-xmanager-auth

Conversation

@NA2047

@NA2047 NA2047 commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Stacked on #20584, so only the auth change is new here: diff from #20584. I'll keep this as a draft until #20584 merges. This replaces #20354.

Adds auth_config to google_vertex_ai_model_development_cluster_xmanager (beta). With it set, people have to sign in with their own account, and only the listed domains and emails can use the XManager instance.

Things worth a look:

  • auth_config isn't returned by the API either, so it's ignore_read, and like everything else on this resource, changing it replaces the instance. The two lists are sets, so reordering them doesn't.
  • at_least_one_of on allowed_domains and allowed_emails turns an empty auth_config into a plan error, instead of an API error after the cluster is already up.
  • XManager copies the OAuth client secret when it's enabled, so pointing secret_version at a new version replaces the instance. The field docs call that out.
  • The OAuth client ID in the examples is a placeholder. It has to be a Web application OAuth client, which Terraform can't create (google_iam_oauth_client is for Workforce Identity Federation), and the API doesn't check the client when XManager is enabled.
  • auth_config is still rolling out on the API side, so projects that aren't allowlisted get FAILED_PRECONDITION. The CI test projects are allowlisted.

full now also sets allowed_domains, and the new auth sample sets allowed_emails. The exhaustive check wants each list left out while auth_config is still set, so that takes one more cluster (three total, about 65 minutes each). auth is test-only so the docs page doesn't get a third copy of the cluster setup. All three pass against a real project.

b/582339842, b/581399661

vertexai: added `auth_config` field to `google_vertex_ai_model_development_cluster_xmanager` resource (beta)

…ource (beta)

XManager is turned on and off with the cluster's :enableXmanager and
:disableXmanager methods, and there's no update or get call, so this is an
immutable resource keyed by the cluster. Read uses the cluster's
runtime.xmanager, and since the API doesn't return the inputs they're
ignore_read.
…er_xmanager (beta)

The full sample now sets allowed_domains and the new auth sample sets
allowed_emails, so each list is covered both set and unset.
@modular-magician

modular-magician commented Dec 4, 2026 •

Copy link
Copy Markdown
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes for commit 00ce389:

Diff report

Your PR generated the following diffs in downstream repositories:

Repository Diff Link Changes
google provider View Diff 1 file changed, 493 insertions(+)
google-beta provider View Diff 4 files changed, 1983 insertions(+)
terraform-google-conversion View Diff 1 file changed, 263 insertions(+)

Exhaustive test report

✅ Click here to see exhaustive test results

All newly added resource fields have exhaustive lifecycle test coverage (SET, MODIFY, UNSET). See the exhaustive acceptance testing guide for details.

Legend: ✅ Covered (no action needed) · ➖ Exempt (no action needed) · ❌ MISSING (action needed)

google_vertex_ai_model_development_cluster_xmanager

Status Field Path Kind SET MODIFY UNSET
✅ auth_config NestedBlock ✅ Covered
TestAccVertexAIModelDevelopmentClusterXmanager_vertexAiModelDevelopmentClusterXmanagerAuthExample (step 1)
➖ Exempt
resource_not_updatable
✅ Covered
TestAccVertexAIModelDevelopmentClusterXmanager_vertexAiModelDevelopmentClusterXmanagerBasicExample (step 1), omitted
✅ auth_config.allowed_domains Leaf ✅ Covered
TestAccVertexAIModelDevelopmentClusterXmanager_vertexAiModelDevelopmentClusterXmanagerFullExample (step 1)
➖ Exempt
resource_not_updatable
✅ Covered
TestAccVertexAIModelDevelopmentClusterXmanager_vertexAiModelDevelopmentClusterXmanagerAuthExample (step 1), omitted
✅ auth_config.allowed_emails Leaf ✅ Covered
TestAccVertexAIModelDevelopmentClusterXmanager_vertexAiModelDevelopmentClusterXmanagerAuthExample (step 1)
➖ Exempt
resource_not_updatable
✅ Covered
TestAccVertexAIModelDevelopmentClusterXmanager_vertexAiModelDevelopmentClusterXmanagerFullExample (step 1), omitted
✅ auth_config.oauth_client NestedBlock ✅ Covered
TestAccVertexAIModelDevelopmentClusterXmanager_vertexAiModelDevelopmentClusterXmanagerAuthExample (step 1)
➖ Exempt
resource_not_updatable
➖ Exempt
required_in_parent
✅ auth_config.oauth_client.id Leaf ✅ Covered
TestAccVertexAIModelDevelopmentClusterXmanager_vertexAiModelDevelopmentClusterXmanagerAuthExample (step 1)
➖ Exempt
resource_not_updatable
➖ Exempt
required_in_parent
✅ auth_config.oauth_client.secret_version Leaf ✅ Covered
TestAccVertexAIModelDevelopmentClusterXmanager_vertexAiModelDevelopmentClusterXmanagerAuthExample (step 1)
➖ Exempt
resource_not_updatable
➖ Exempt
required_in_parent
✅ model_development_cluster Leaf ✅ Covered
TestAccVertexAIModelDevelopmentClusterXmanager_vertexAiModelDevelopmentClusterXmanagerAuthExample (step 1)
➖ Exempt
resource_not_updatable
➖ Exempt
required
✅ network Leaf ✅ Covered
TestAccVertexAIModelDevelopmentClusterXmanager_vertexAiModelDevelopmentClusterXmanagerAuthExample (step 1)
➖ Exempt
resource_not_updatable
➖ Exempt
required
✅ region Leaf ✅ Covered
TestAccVertexAIModelDevelopmentClusterXmanager_vertexAiModelDevelopmentClusterXmanagerAuthExample (step 1)
➖ Exempt
resource_not_updatable
➖ Exempt
required
✅ subnetwork Leaf ✅ Covered
TestAccVertexAIModelDevelopmentClusterXmanager_vertexAiModelDevelopmentClusterXmanagerAuthExample (step 1)
➖ Exempt
resource_not_updatable
➖ Exempt
required
✅ xprof_config NestedBlock ✅ Covered
TestAccVertexAIModelDevelopmentClusterXmanager_vertexAiModelDevelopmentClusterXmanagerFullExample (step 1)
➖ Exempt
resource_not_updatable
✅ Covered
TestAccVertexAIModelDevelopmentClusterXmanager_vertexAiModelDevelopmentClusterXmanagerAuthExample (step 1), omitted
✅ xprof_config.gcs_bucket_uri Leaf ✅ Covered
TestAccVertexAIModelDevelopmentClusterXmanager_vertexAiModelDevelopmentClusterXmanagerFullExample (step 1)
➖ Exempt
resource_not_updatable
➖ Exempt
required_in_parent

Test report

Analytics

Total Tests Passed Skipped Affected
177 163 11 3
Affected Service Packages
  • vertexai

Learn how VCR tests work


Step 1: Replaying Mode

Action taken

Found 3 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit.

Click here to see the affected tests
  • TestAccVertexAIModelDevelopmentClusterXmanager_vertexAiModelDevelopmentClusterXmanagerAuthExample
  • TestAccVertexAIModelDevelopmentClusterXmanager_vertexAiModelDevelopmentClusterXmanagerBasicExample
  • TestAccVertexAIModelDevelopmentClusterXmanager_vertexAiModelDevelopmentClusterXmanagerFullExample

View the replaying VCR build log


Step 2: Recording Mode

Recording Mode Findings Test Name
✅ Log - TestAccVertexAIModelDevelopmentClusterXmanager_vertexAiModelDevelopmentClusterXmanagerAuthExample
✅ Log - TestAccVertexAIModelDevelopmentClusterXmanager_vertexAiModelDevelopmentClusterXmanagerBasicExample
✅ Log - TestAccVertexAIModelDevelopmentClusterXmanager_vertexAiModelDevelopmentClusterXmanagerFullExample

🟢 All tests passed!

View the recording VCR build log or the debug logs folder for detailed results.

@NA2047 VCR tests complete for 00ce389!

unused-template-check only finds sample templates through steps, so the
0-step shorthand made it report the sample templates as unused. The
generated tests and docs don't change.
@modular-magician

modular-magician commented Dec 5, 2026 •

Copy link
Copy Markdown
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes for commit 74b9e42:

Diff report

Your PR generated the following diffs in downstream repositories:

Repository Diff Link Changes
google provider View Diff 1 file changed, 493 insertions(+)
google-beta provider View Diff 4 files changed, 1983 insertions(+)
terraform-google-conversion View Diff 1 file changed, 263 insertions(+)

Exhaustive test report

✅ Click here to see exhaustive test results

All newly added resource fields have exhaustive lifecycle test coverage (SET, MODIFY, UNSET). See the exhaustive acceptance testing guide for details.

Legend: ✅ Covered (no action needed) · ➖ Exempt (no action needed) · ❌ MISSING (action needed)

google_vertex_ai_model_development_cluster_xmanager

Status Field Path Kind SET MODIFY UNSET
✅ auth_config NestedBlock ✅ Covered
TestAccVertexAIModelDevelopmentClusterXmanager_vertexAiModelDevelopmentClusterXmanagerAuthExample (step 1)
➖ Exempt
resource_not_updatable
✅ Covered
TestAccVertexAIModelDevelopmentClusterXmanager_vertexAiModelDevelopmentClusterXmanagerBasicExample (step 1), omitted
✅ auth_config.allowed_domains Leaf ✅ Covered
TestAccVertexAIModelDevelopmentClusterXmanager_vertexAiModelDevelopmentClusterXmanagerFullExample (step 1)
➖ Exempt
resource_not_updatable
✅ Covered
TestAccVertexAIModelDevelopmentClusterXmanager_vertexAiModelDevelopmentClusterXmanagerAuthExample (step 1), omitted
✅ auth_config.allowed_emails Leaf ✅ Covered
TestAccVertexAIModelDevelopmentClusterXmanager_vertexAiModelDevelopmentClusterXmanagerAuthExample (step 1)
➖ Exempt
resource_not_updatable
✅ Covered
TestAccVertexAIModelDevelopmentClusterXmanager_vertexAiModelDevelopmentClusterXmanagerFullExample (step 1), omitted
✅ auth_config.oauth_client NestedBlock ✅ Covered
TestAccVertexAIModelDevelopmentClusterXmanager_vertexAiModelDevelopmentClusterXmanagerAuthExample (step 1)
➖ Exempt
resource_not_updatable
➖ Exempt
required_in_parent
✅ auth_config.oauth_client.id Leaf ✅ Covered
TestAccVertexAIModelDevelopmentClusterXmanager_vertexAiModelDevelopmentClusterXmanagerAuthExample (step 1)
➖ Exempt
resource_not_updatable
➖ Exempt
required_in_parent
✅ auth_config.oauth_client.secret_version Leaf ✅ Covered
TestAccVertexAIModelDevelopmentClusterXmanager_vertexAiModelDevelopmentClusterXmanagerAuthExample (step 1)
➖ Exempt
resource_not_updatable
➖ Exempt
required_in_parent
✅ model_development_cluster Leaf ✅ Covered
TestAccVertexAIModelDevelopmentClusterXmanager_vertexAiModelDevelopmentClusterXmanagerAuthExample (step 1)
➖ Exempt
resource_not_updatable
➖ Exempt
required
✅ network Leaf ✅ Covered
TestAccVertexAIModelDevelopmentClusterXmanager_vertexAiModelDevelopmentClusterXmanagerAuthExample (step 1)
➖ Exempt
resource_not_updatable
➖ Exempt
required
✅ region Leaf ✅ Covered
TestAccVertexAIModelDevelopmentClusterXmanager_vertexAiModelDevelopmentClusterXmanagerAuthExample (step 1)
➖ Exempt
resource_not_updatable
➖ Exempt
required
✅ subnetwork Leaf ✅ Covered
TestAccVertexAIModelDevelopmentClusterXmanager_vertexAiModelDevelopmentClusterXmanagerAuthExample (step 1)
➖ Exempt
resource_not_updatable
➖ Exempt
required
✅ xprof_config NestedBlock ✅ Covered
TestAccVertexAIModelDevelopmentClusterXmanager_vertexAiModelDevelopmentClusterXmanagerFullExample (step 1)
➖ Exempt
resource_not_updatable
✅ Covered
TestAccVertexAIModelDevelopmentClusterXmanager_vertexAiModelDevelopmentClusterXmanagerAuthExample (step 1), omitted
✅ xprof_config.gcs_bucket_uri Leaf ✅ Covered
TestAccVertexAIModelDevelopmentClusterXmanager_vertexAiModelDevelopmentClusterXmanagerFullExample (step 1)
➖ Exempt
resource_not_updatable
➖ Exempt
required_in_parent

Test report

Analytics

Total Tests Passed Skipped Affected
177 166 11 0
Affected Service Packages
  • vertexai

Learn how VCR tests work


Step 1: Replaying Mode

🟢 All tests passed in Replaying mode! No Recording was needed.

View the replaying VCR build log

@NA2047 VCR tests complete for 74b9e42!

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-impact/high category/coverage size/s type/new-field Adds new fields, properties, or arguments to an existing resource or data source

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants