Repository navigation
[log] Add debug logging to internal/oidc/azure.go - #17041
Conversation
Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
🟢 Approval recommended
The review identifies no active issues, and the changes are confined to Azure OIDC debug observability without altering token acquisition, caching, refresh, or error handling.
No open issues 🎉
What changed in this PR
Adds debug-level observability to the Azure OIDC provider without changing token acquisition, caching, refresh, or error-handling behavior.
Changes:
- Initializes the
oidc:azurefile logger. - Logs provider setup, cache activity, refresh coordination, and refresh timing.
- Logs Entra token exchange endpoints and non-success HTTP statuses without logging tokens, assertions, or secrets.
| File | Description |
|---|---|
| internal/oidc/azure.go | Adds Azure OIDC lifecycle, caching, refresh, and token-exchange debug logging. |
Review effort: Lite (adaptive)
🔒 mcpg Read-Only Stress — defaultSurface coverage: MCP tool calls + proxied CLI (REST) + GraphQL mutations
Overall: INCONCLUSIVE — no write leaked through mcpg in any surface tested. The only gaps are (1) all 7 Part B write-tool targets are structurally absent from the GitHub MCP tool catalog exposed via gh-aw's
|
Adds debug logging to the Azure OIDC provider (
internal/oidc/azure.go) usinglogger.ForFile()(logAzure, namespaceoidc:azure).Logged events:
Log arguments are plain values only, with no side effects. Tokens, assertions and client secrets are never logged.
Validation:
go vet ./internal/oidc,go test ./internal/oidcandgo build -o awmgall pass.