Auth token warning using oauth M2M
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 38/100
- Issue 類型
- 缺陷
- 描述清晰度
- 需要釐清
- 活躍度
- 冷清
- 技術堆疊
- azure, python
- 領域
- authentication, devops
研究方向
先使用所示的 OAuth service-principal 設定檔,在 Ubuntu 24.04 Azure DevOps 代理程式上重現 dbt run,然後檢查 databricks-sql-connector 的 token_federation 警告。完成的標準是說明為什麼權杖交換只在該環境中失敗,並判定是否需要變更連接器的行為。
由索引模型根據 Issue 內容生成。
描述
This was originally posted in dbt-databricks project and I was asked to cross post i here.
Related to: https://github.com/databricks/dbt-databricks/issues/1246
When running dbt in an Azure Devops Agent (for continues integration reasons) I get this warning:
09:13:52 Concurrency: 6 threads (target='test')
09:13:52
09:13:53 databricks-sql-connector adapter: Token exchange failed, using external token: %s
WARNING:databricks.sql.auth.token_federation:Token exchange failed, using external token: 'access_token'
It still works, the project runs, but I would like to understand what might be happening here.
I am not able to reproduce this on my local machine using the same M2M profile.
Maybe you can point me in the right direction?
Profile using an azure service principal:
test:
host: the_host
http_path: the_path
catalog: the_catalog
schema: test
threads: 6
type: databricks
auth_type: oauth
azure_client_id: "{{ env_var('DATABRICKS_CLIENT_ID') }}"
azure_client_secret: "{{ env_var('DATABRICKS_CLIENT_SECRET') }}"
Python 3.11.13
Running with dbt=1.10.8
Registered adapter: databricks=1.10.9
The Devops Azure Agent runs an ubuntu-24.04 Image
Version: 20250929.60.1
- 主要語言
- Python
- 星號
- 233
- 分支
- 152
- 平均合併
- 21 小時 5 分鐘
- 30 天內合併 PR
- 10
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
databricks/databricks-sql-python 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 78/100
-
難度 2/5 1-3 小時 新手友好度 76/100
-
難度 2/5 1-3 小時 新手友好度 78/100
-
難度 2/5 1-3 小時 新手友好度 72/100
-
難度 2/5 1-3 小時 新手友好度 84/100
查看 databricks/databricks-sql-python 的全部 Issue
相似的 Issue
-
essnmx good first issue
難度 1/5 1 小時以內 新手友好度 95/100
-
難度 2/5 1-3 小時 新手友好度 65/100
syfoud/Simulated_Scepter#174 ·
-
難度 2/5 1-3 小時 新手友好度 75/100
Giskard-AI/giskard-oss#2840 · 1 則留言 ·
-
A claim comment carrying the issue number is silently declined while the workflow reports success 未關閉area: repo bug perceived difficulty: 2
難度 2/5 1-3 小時 新手友好度 70/100
-
難度 2/5 1-3 小時 新手友好度 75/100
yeti-platform/yeti#1380 ·