Refract Guides · Connect a target

Databricks Foundation Model Targets in Refract

Databricks foundation-model endpoints can be tested through an OpenAI-compatible facade, keeping the guardrail evaluation aligned with your data-plane serving stack.

Target string

Databricks Model Serving speaks the OpenAI protocol: put the serving-endpoint name after openai_compat: and your workspace's /serving-endpoints URL in --base-url.

openai_compat:<endpoint-name> --base-url https://<workspace>.cloud.databricks.com/serving-endpoints

Configure credentials

# A personal-access or service-principal token, sent as a bearer token:
export OPENAI_API_KEY="$DATABRICKS_TOKEN"

Run a scan

refract scan --target openai_compat:<endpoint-name> --base-url https://<workspace>.cloud.databricks.com/serving-endpoints --pack ./packs/finance-canaries.jsonl --db ./runs.sqlite --sarif refract-databricks.sarif

Keep secrets out of evidence

Refract sends the Databricks token as a bearer header and never includes it in the record chain, SARIF output, or matrix tables.

Verify and gate

refract gate --scan scan-a1b2c3d4 --db ./runs.sqlite --max-fn 0 --max-fp-rate 0.05 --min-mcc 0.70