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
-
enhancement
难度 2/5 1-3 小时 新手友好度 70/100
canonical/paas-charm#368 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
-
tech debt
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 1/5 1 小时以内 新手友好度 90/100
StevenBlack/hosts#3256 ·
-
难度 1/5 1 小时以内 新手友好度 90/100
qualcomm/qai-appbuilder#275 ·