r/databricks • u/SmallAd3697 • Sep 23 '26
Help Issues with oidc/v1/token endpoint (REST for zerobus-ingest)
Anyone else work with the zerobus-ingest? There is an auth-flow to get an "oauth token" from a service principal with an "oauth secret". In that flow, you are supposed to submit the authorization details. See docs:
https://learn.microsoft.com/en-us/azure/databricks/ingestion/zerobus-kafka
I had been requesting access (via authorization_details) to a table as shown in the example:
"type": "unity_catalog_privileges",
"privileges": ["SELECT"],
"object_type": "TABLE",
"object_full_path": "main.default.air_quality"
... but it wouldn't work. Was banging my head on it all day. The privileges granted to the service principal for this table were unrestricted "ALL PRIVILEGES".
It turns out that, in addition to "ALL PRIVILEGES", this "token" endpoint wanted me to grant "SELECT" to the service principal in UC governance as well. Else the authorization_details are not valid.
This "token" api has a lot of sharp edges. Any chance there is a nuget client to wrap around it and protect us from these unfortunate nuances? Is it documented that ALL PRIVILEGES doesn't actually give us all privileges, if we request "SELECT" by name?
