Skip to content

Instantly share code, notes, and snippets.

@shanesoh
Created August 2, 2020 10:10
Show Gist options
  • Save shanesoh/2c203fdf8157739f1cb58839d554828c to your computer and use it in GitHub Desktop.
Save shanesoh/2c203fdf8157739f1cb58839d554828c to your computer and use it in GitHub Desktop.
package istio.authz
import input.attributes.request.http as http_request
default allow = false
allow = response {
http_request.method == "GET"
response := {
"allowed": true,
"headers": {"X-Auth-User": "1234"}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment