Skip to content

Add external_access_enabled parameter to Metastore API (Fixes #1200) #1216

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Krishnan9074
Copy link

What changes are proposed in this pull request?

This PR adds support for the external_access_enabled parameter in the Databricks Metastore API to resolve issue #1200.

WHAT:

  • Added the ExternalAccessEnabled field to the UpdateMetastore struct in service/catalog/model.go
  • Updated the example test in service/catalog/metastores_usage_test.go to demonstrate usage of the new field
  • The field is properly tagged with json:"external_access_enabled,omitempty" for API compatibility

WHY:
This change is needed because the current implementation of the Databricks metastore Terraform resources does not support the option of external_access_enabled. This parameter is documented in the Databricks API reference and allows or prevents non-Databricks Runtime clients from directly accessing entities under the metastore.

Adding this field will enable Terraform users to control this important security setting through the Databricks Terraform provider, as requested in issue #1200.

How is this tested?

The change has been tested by:

  1. Building the code with go build -mod vendor ./... to verify compilation
  2. Updating the example test to include the new field in the UpdateMetastore call

The full end-to-end functionality would be tested when integrated with the Databricks Terraform Provider, but this PR only implements the necessary SDK changes to enable that integration.

Fixes #1200

Copy link

github-actions bot commented May 8, 2025

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

Trigger:
go/deco-tests-run/sdk-go

Inputs:

  • PR number: 1216
  • Commit SHA: 9fe0ad8c995f9b85c6af2c9b1e9028ad00c2fcb2

Checks will be approved automatically on success.

@UriSaShavit
Copy link

Hi there,
Apologies for dropping in uninvited — just wanted to kindly ask if there’s any update on this PR?
Thanks in advance!

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.

Enable external data access on the metastore by terraform
2 participants