Skip to content

A scenario for a forward deployed engineer · Senior and up

Card numbers in the chat

Vault · Security
Monday, 13:30

Shoppers paste card numbers into a customer's support assistant on Databricks. The numbers go to an external model through a model service in Unity Gateway and into its logs. The customer's security team wants it stopped this week.

What do you do?

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

Show the best call

Attach the built-in sensitive data guardrail to the model service, set to mask matches on the way in.

The external model gets the message with the number masked, so its logs do too. The shopper still gets an answer.

Why

Unity Gateway has built-in guardrails (Beta) that are attached to a model service as service policies. Sensitive data detection finds structured data such as card numbers by pattern, on input, output or both, and either denies the request or masks the matched values. On the service it covers every app that calls that service.

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

The other two

Works, at a price. Add a pattern in the app that strips anything that looks like a card number.
It works for this app. The next app on the same model service sends card numbers again.
A poor call. Add a line to the prompt telling the model never to repeat card numbers.
The model does not repeat them. It still received them, and so did the logs.

The words in this scenario

Column mask.
A function attached to a column that decides, for each reader, whether they see the real value or a hidden 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.