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
What is the underlying problem you're trying to solve?
in #6750, OPA added the capability of setting http headers inside decision logs. Unfortunately they're tied to the info log level, if you run an error log level they won't appear in the decision logs.
Decouple the http header visualization from the log level so they can always appear in the decision logs regardless of the log level so it can be used in production environments where error log level is usually set by default
The text was updated successfully, but these errors were encountered:
Previously the HTTP request context was included in the
request context at the info access log level. This means
if the access log level was set to error for instance,
the context would not include the http request context and
hence it would not be surfaced via decision logs.
This change always add the http request context to the request
context so that HTTP info like headers will be surfaced via decision
logs irrespective of the access log level.
Fixes: open-policy-agent#6951
Signed-off-by: Ashutosh Narkar <[email protected]>
What is the underlying problem you're trying to solve?
in #6750, OPA added the capability of setting http headers inside decision logs. Unfortunately they're tied to the info log level, if you run an error log level they won't appear in the decision logs.
https://github.com/open-policy-agent/opa/blob/main/runtime/logging.go#L67-L72
Describe the ideal solution
Decouple the http header visualization from the log level so they can always appear in the decision logs regardless of the log level so it can be used in production environments where error log level is usually set by default
The text was updated successfully, but these errors were encountered: