Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] Skip Read after Create in databricks_secret_acl to avoid errors #4548

Merged
merged 4 commits into from
Mar 11, 2025

Conversation

alexott
Copy link
Contributor

@alexott alexott commented Mar 4, 2025

Changes

It's very common situation when the Secret Scope ACL assignment fails when it happens right after a principal assignment to a workspace. Technically we don't need to perform Read after resource creation as no additional data is returned by GET Secret Scope ACL API.

Hopefully it will resolve #2423

Tests

  • make test run locally
  • relevant change in docs/ folder
  • covered with integration tests in internal/acceptance
  • using Go SDK
  • using TF Plugin Framework

It's very common situation when the Secret Scope ACL assignment fails when it happens
right after a principal assignment to a workspace.  Technically we don't need to perform
`Read` after resource creation as no additional data is returned by GET Secret Scope ACL API.

Hopefully it will resolve #2423
@alexott alexott requested review from a team as code owners March 4, 2025 12:51
@alexott alexott requested review from parthban-db and removed request for a team March 4, 2025 12:51
@alexott alexott temporarily deployed to test-trigger-is March 4, 2025 12:51 — with GitHub Actions Inactive
@alexott alexott temporarily deployed to test-trigger-is March 4, 2025 12:51 — with GitHub Actions Inactive
@alexott alexott temporarily deployed to test-trigger-is March 4, 2025 14:31 — with GitHub Actions Inactive
@alexott alexott temporarily deployed to test-trigger-is March 4, 2025 14:31 — with GitHub Actions Inactive
@tanmay-db tanmay-db temporarily deployed to test-trigger-is March 7, 2025 10:51 — with GitHub Actions Inactive
@tanmay-db tanmay-db temporarily deployed to test-trigger-is March 7, 2025 10:51 — with GitHub Actions Inactive
Copy link

If integration tests don't run automatically, an authorized user can run them manually by following the instructions below:

Trigger:
go/deco-tests-run/terraform

Inputs:

  • PR number: 4548
  • Commit SHA: da2a8bb080e813b01ef4d2a464f42ef99fd0a627

Checks will be approved automatically on success.

@parthban-db parthban-db enabled auto-merge March 11, 2025 15:24
@parthban-db parthban-db added this pull request to the merge queue Mar 11, 2025
Merged via the queue into main with commit 9c03787 Mar 11, 2025
13 checks passed
@parthban-db parthban-db deleted the fix/issue-2423 branch March 11, 2025 17:54
deco-sdk-tagging bot added a commit that referenced this pull request Mar 12, 2025
## Release v1.70.0

### Bug Fixes

 * Fix creation of `databricks_storage_credential` and `databricks_credential` resources on GCP with isolation mode ([#4563](#4563))
 * Handle auto-enabled errors with `databricks_system_schema` [#4547](#4547)
 * Skip Read after Create in `databricks_secret_acl` to avoid errors([#4548](#4548)).

### Documentation

 * Document `amazon_bedrock_config.instance_profile_arn` in `databricks_model_serving` ([#4549](#4549))
 * Document management of permissions of `databricks_budget_policy` resource ([#4561](#4561))
 * Document `budget_policy_id` in `databricks_app` resource and data sources ([#4557](#4557))
 * Add a note on how `databricks_grants` work with `MANAGE` permission [#4546](#4546)
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.

[ISSUE] Issue with databricks_secret_acl resource
4 participants