You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 24, 2020. It is now read-only.
Providing an Authorization header containing invalid credentials to the meta API endpoint can't be distinguished from a successful request at the HTTP layer:
We're finding that this makes troubleshooting the consumption of log-cache by our adapter (https://github.com/alphagov/paas-log-cache-adapter, which provides a /metrics endpoint for prometheus) interesting.
Specifically, if a platform tenant misconfigures their credentials, then unless we assume that an empty meta response == "invalid creds", then we can't provide them with a hint that they should check their credentials.
Is it possible to more clearly indicate the authentication failure, perhaps via an HTTP 4XX response?
Providing an
Authorizationheader containing invalid credentials to the meta API endpoint can't be distinguished from a successful request at the HTTP layer:We're finding that this makes troubleshooting the consumption of log-cache by our adapter (https://github.com/alphagov/paas-log-cache-adapter, which provides a
/metricsendpoint for prometheus) interesting.Specifically, if a platform tenant misconfigures their credentials, then unless we assume that an empty
metaresponse == "invalid creds", then we can't provide them with a hint that they should check their credentials.Is it possible to more clearly indicate the authentication failure, perhaps via an HTTP 4XX response?