Skip to content

Can we add additional fields to decision log from the policy rego #567

Discussion options

You must be logged in to vote

Do I have to set some configuration to change this decision log output format?

Yes.

  "result": true,

this indicates that you're not using the document response variant (above, (1.)).

You'll need to adapt your policy to be like

package envoy.authz # just an example, whatever you have is fine as long as it matches the config

result["allowed"] = allow # your previous rule
result["rule_action"] := ruleAction

and adjust your config to query, in this example, envoy/authz/result, not envoy/authz/allow.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@joelmathew003
Comment options

@srenatus
Comment options

Answer selected by joelmathew003
@joelmathew003
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants