Repository navigation
Conversation
Activating a service account with OIDC reported only the generic guidance, and the underlying IdP response was logged at error level but only reachable with --verbosity debug, so the cause was hidden in the default output (issue stackitcloud#1691). ActivateServiceAccountError now carries the underlying error, like RequestFailedError already does, and the four sites that discarded the cause set it. The message keeps the existing text and appends the cause, so a failed activation prints the reason without enabling debug output. Successful commands are unchanged: the best-effort label lookups that log at error level are still debug-only, which is why the logging core is untouched.
Contributor
|
Hello @paoValle, thank you for opening this PR. I have created an internal tracking issue and we will look at your contribution in the near future. Best regards, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
relates to #1691
A failed service account activation only reported the generic guidance, while the underlying reason was logged at error level and reachable only with
--verbosity debug.ActivateServiceAccountErrornow carries the cause, the same wayRequestFailedErroralready does, and the four places that discarded it set it. The existing message is kept and the cause is appended, so the failure prints its reason at the default verbosity.The logging core is untouched on purpose: of the 496
Debug(print.ErrorLevel, ...)call sites, 461 sit in best-effort lookups that continue on success (label resolution, for instance), so printing error records at the default verbosity would put anERRline on successful commands.Checklist
make fmt(gofmt on the changed packages;makestops on this checkout with a "multiple target patterns" parse error)make generate-docsmake test(go test ./...)make lint(golangci-lint runon the changed packages: 0 issues)