Skip to content

acceptance: fix vector_search_endpoint permissions config to use existing principal#5151

Open
shreyas-goenka wants to merge 1 commit intomainfrom
fix-vector-search-permissions-config
Open

acceptance: fix vector_search_endpoint permissions config to use existing principal#5151
shreyas-goenka wants to merge 1 commit intomainfrom
fix-vector-search-permissions-config

Conversation

@shreyas-goenka
Copy link
Copy Markdown
Contributor

Summary

The invariant test config used `user_name: viewer@example.com`, which doesn't exist in the cloud workspaces. The Permissions Set API silently drops the unknown user, so a Read after deploy returns an ACL without that entry — the no_drift invariant then sees a phantom update and the test fails on aws-prod-ucws.

Pre-existing bug from #4887, not caught earlier because deploy itself was failing on the 50-char endpoint name limit (#5108) before reaching the no_drift check.

Failure shape (before this fix)

```
"resources.vector_search_endpoints.bar.permissions": {
"action": "update",
"new_state": {
"value": {
"embed": [
{ "level": "CAN_USE", "user_name": "viewer@example.com" },
{ "level": "CAN_MANAGE", "service_principal_name": "[USERNAME]" }
]
}
},
"remote_state": {
"embed": [
{ "level": "CAN_MANAGE", "service_principal_name": "[USERNAME]" }
]
},
...
}
```

Change

Use `group_name: users` (always present in every workspace) to match the pattern used by the other `*_with_permissions` invariant configs (`job_with_permissions`, `model_with_permissions`, `secret_scope_with_permissions`).

Test plan

  • Local: `go test ./acceptance -run 'TestAccept/bundle/invariant/no_drift/DATABRICKS_BUNDLE_ENGINE=direct/INPUT_CONFIG=vector_search_endpoint'` passes
  • Cloud: same target passes on aws-prod-ucws

This pull request was AI-assisted by Isaac.

…ting principal

The invariant test config used "user_name: viewer@example.com", which
doesn't exist in the cloud workspaces. The Permissions Set API silently
drops the unknown user, so a Read after deploy returns an ACL without
that entry — the no_drift invariant then sees a phantom update and the
test fails on aws-prod-ucws.

Use "group_name: users" (the always-present users group) to match the
pattern in every other *_with_permissions invariant config (jobs, models,
secret scopes). Verified that the no_drift variant now passes on
aws-prod-ucws.

Co-authored-by: Isaac
@shreyas-goenka shreyas-goenka marked this pull request as ready for review May 1, 2026 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants