Failed Azure Credential errors not displayed to user without Debug Logging
Maintainer thường phản hồi trong vòng 4 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 45/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- azure, go
- Lĩnh vực
- authentication, cloud
Hướng nghiên cứu
Bắt đầu bằng cách lần theo quá trình MAPT lấy thông tin xác thực Azure và đường dẫn ghi log được sử dụng khi DefaultAzureCredential thất bại. Tái hiện lỗi do thông tin xác thực hết hạn với tính năng ghi log gỡ lỗi bị tắt; hoàn tất khi các lỗi xác thực liên quan, không nhạy cảm được hiển thị trên đầu ra chuẩn hoặc đầu ra lỗi mà không bật tính năng ghi log gỡ lỗi.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- Go
- Star
- 25
- Fork
- 41
- Merge trung bình
- 5 ngày 3 giờ
- Pull request đã merge (30 ngày)
- 16
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của redhat-developer/mapt
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
redhat-developer/mapt#972 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
Host/username secret values contain trailing newlines, sanitization fix breaks SSH keyCó thể làm lại được @abdulazeem-tk4vr đã nhận 153 ngày trước và không có pull request nào đang mở. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
redhat-developer/mapt#817 · 12 bình luận ·
Maintainer thường phản hồi trong vòng 4 ngày
-
openshift-snc: align cluster ingress domain with the nip.io access domain (crc.testing split-brain)Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
redhat-developer/mapt#968 · 1 reaction ·
Maintainer thường phản hồi trong vòng 4 ngày
-
[enhancement] github runner: support just-in-time (JIT) runner configurationCó thể đã có người làm @atishay-kasliwal đã nhận 1 ngày trước. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
redhat-developer/mapt#957 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 4 ngày
-
enhancement provider/IBMCLOUD
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
redhat-developer/mapt#955 ·
Maintainer thường phản hồi trong vòng 4 ngày
Tất cả issue của redhat-developer/mapt
Issue tương tự
-
Add iterate GmbH domains to a dedicated list and include it in company and developer categoriesĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
v2fly/domain-list-community#4307 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
notify: voice_queue rows are deleted only at startup, so a hub that stays up grows it without boundĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
mattabate/life-distributable#232 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
projectdiscovery/cdncheck#554 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
openbao/openbao-plugins#170 ·
Maintainer thường phản hồi trong vòng 1 ngày