Failed Azure Credential errors not displayed to user without Debug Logging
维护者通常 4 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- azure, go
- 领域
- authentication, cloud
调研方向
首先跟踪 MAPT 获取 Azure 凭据的过程,以及 DefaultAzureCredential 失败时使用的日志记录路径。在禁用调试日志记录的情况下重现凭据过期失败;当相关的非敏感身份验证错误显示在标准输出或标准错误上,且无需启用调试日志记录时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
MAPT currently fails to display critical Azure authentication errors to the user unless debug logging is explicitly enabled.
The output shows a generic success-like message (DEBU context initialized for mapt...) followed by a silent failure of DefaultAzureCredential due to an expired client secret (AADSTS7000222: The provided client secret keys for app '***' are expired.).
Impact: Users cannot diagnose the root cause of an apparent application failure without manually enabling verbose logging, leading to poor user experience and increased troubleshooting time.
Required Fix: MAPT should be updated to surface relevant, non-sensitive errors from the underlying Azure (like expired credentials or authorization failures) to the standard output or error stream, regardless of the debug log setting.
Example Log (Requires Debug Mode)
The following log snippet shows the critical error, which was only visible after enabling debug mode:
DEBU context initialized for mapt298473c3 DefaultAzureCredential: failed to acquire a token. Attempted credentials: ClientSecretCredential authentication failed. POST https://login.microsoftonline.com/***/oauth2/v2.0/token -------------------------------------------------------------------------------- RESPONSE 401: 401 Unauthorized -------------------------------------------------------------------------------- { "error": "invalid_client", "error_description": "AADSTS7000222: The provided client secret keys for app '***' are expired. Visit the Azure portal to create new keys for your app: https://aka.ms/NewClientSecret, or consider using certificate credentials for added security: https://aka.ms/certCreds. Trace ID: 20d540d3-389e-4e97-aa72-42c53ac10700 Correlation ID: c704f263-d933-4b48-b46c-04a036f9d060 Timestamp: 2025-12-04 08:33:07Z", "error_codes": [ 7000222 ], "timestamp": "2025-12-04 08:33:07Z", "trace_id": "20d540d3-389e-4e97-aa72-42c53ac10700", "correlation_id": "c704f263-d933-4b48-b46c-04a036f9d060", "error_uri": "https://login.microsoftonline.com/error?code=7000222" } -------------------------------------------------------------------------------- To troubleshoot, visit https://aka.ms/azsdk/go/identity/troubleshoot#client-secret
- 主要语言
- Go
- 星标
- 25
- 派生
- 41
- 平均合并
- 5 天 3 小时
- 30 天内合并 PR
- 16
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
redhat-developer/mapt 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
redhat-developer/mapt#972 ·
维护者通常 4 天内回复
-
Host/username secret values contain trailing newlines, sanitization fix breaks SSH key可能重新可做 @abdulazeem-tk4vr 于 153 天前认领,目前没有进行中的 PR。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
redhat-developer/mapt#817 · 12 条评论 ·
维护者通常 4 天内回复
-
openshift-snc: align cluster ingress domain with the nip.io access domain (crc.testing split-brain)未关闭
难度 5/5 一周以上 新手友好度 25/100
redhat-developer/mapt#968 · 1 个 reaction ·
维护者通常 4 天内回复
-
[enhancement] github runner: support just-in-time (JIT) runner configuration可能已有人在做 @atishay-kasliwal 于 1 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 48/100
redhat-developer/mapt#957 · 1 条评论 ·
维护者通常 4 天内回复
-
enhancement provider/IBMCLOUD
难度 4/5 3-5 天 新手友好度 25/100
redhat-developer/mapt#955 ·
维护者通常 4 天内回复
查看 redhat-developer/mapt 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 66/100
v2fly/domain-list-community#4307 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 86/100
维护者通常 1 天内回复
-
chore needs-triage
难度 1/5 1 小时以内 新手友好度 88/100
seanb4t/codegraph-go#380 ·
维护者通常 1 天内回复
-
notify: voice_queue rows are deleted only at startup, so a hub that stays up grows it without bound未关闭
难度 2/5 1-3 小时 新手友好度 72/100
mattabate/life-distributable#232 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 86/100
维护者通常 1 天内回复