Skip to content

A scenario for a forward deployed engineer · Junior and up

The demo app runs as you

Vault · Security
Thursday, 16:45

You built a customer's chat app on Databricks Apps in a hurry. It calls the model and reads tables with your personal access token, pasted into the app's settings. The pilot opens to 200 users on Monday.

What do you do?

Tap the one you would do. The answer opens below.

Show the best call

Remove the token, and grant the app's own service principal access to just the tables and the model it needs.

The app runs as itself with the access it needs and no more, and keeps running when you leave the project.

Why

Every Databricks app gets a dedicated service principal as its identity, and Databricks puts its credentials into the app's environment. Grant that service principal the specific resources the app uses. A personal token makes the app act as one person, with all of that person's access and that person's last day.

Read it in the Databricks docs (opens in a new tab)

The other two

Works, at a price. Move your token into a secret and read it from there.
The token is out of sight. The app is still you, with everything you can reach, until the token expires.
A poor call. Leave it. A pilot is not production.
Pilots become production without a meeting. Your token expires on a Sunday.

The words in this scenario

Service principal.
An identity made for automation, not for a person. Jobs and tools sign in as one. In the docs (opens in a new tab)

Go deeper on brickster.ai

More scenarios

Had one like this at work? Send it to us: the best tickets come from real incidents.

Added on . Checked against the Databricks documentation on . brickster.ai is independent and is not affiliated with Databricks.