1

We have created secrets and scopes in datababricks and we are using dbUtils to access those secrets and scopes.

dbUtils.getSecret(SCOPE,KEY)

Unfortunately, this dbUtils function is not working on development environment, so I need advice on how to access this and what are the best possible alternative to get rid of this ?

Alex Ott
  • 80,552
  • 8
  • 87
  • 132
ConfusedDeveloper
  • 6,389
  • 4
  • 21
  • 36

1 Answers1

0

If you use Databricks Connect, then secrets API is disabled by default, but it could be enabled on request. It's described in the documentation:

Because of security restrictions, the ability to call dbutils.secrets.get is disabled by default. Contact Databricks support to enable this feature for your workspace.

But really, for tests it should be mocked, and it should be only really used when you're debugging something.

Alex Ott
  • 80,552
  • 8
  • 87
  • 132