-
Notifications
You must be signed in to change notification settings - Fork 63
Open
Description
A recent change to the Kubernetes auth method changed error logs to debug logs. These errors can be raised for a number of reasons:
- The Kubernetes API timed out
- The Kubernetes API is broken
- The CA certificate does not match
- There's an issue with the request
Vault does not differentiate between these separate and very different issues and just always returns HTTP 403 Permission Denied. This wasn't a big deal when context could be found in the logs, but now those logs are gone too. This makes debugging issues much harder by requiring the log level to be set to debug
constantly to catch these issues. Can we either:
- Change the log level back to error (easiest)
- Include the error response in what is sent back to the client
- Send the appropriate response code to the client (instead of just Permission Denied for any error)
- Both 2 and 3 (best)
I'm happy to open a PR and implement the solution, but it would be nice to have an idea of which option the maintainers prefer.
adammw, sidewinder12s, roy-work, denniskniep and frimer85
Metadata
Metadata
Assignees
Labels
No labels