Skip to content

Instantly share code, notes, and snippets.

@adam-sandor
Created July 8, 2021 16:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adam-sandor/e24a56bad9505f97cd2b375484afe026 to your computer and use it in GitHub Desktop.
Save adam-sandor/e24a56bad9505f97cd2b375484afe026 to your computer and use it in GitHub Desktop.
Envoy ext_auth request to OPA
{
"attributes": {
"destination": {
"address": {
"socketAddress": {
"address": "10.36.4.39",
"portValue": 8080
}
},
"principal": "spiffe://cluster.local/ns/employees/sa/default"
},
"metadataContext": {},
"request": {
"http": {
"headers": {
"authorization": "Bearer {JWT}"
},
"host": "employee-manager",
"method": "POST",
"path": "/employees",
"protocol": "HTTP/1.1",
"scheme": "http"
}
},
"source": {
"address": {
"socketAddress": {
"address": "10.36.4.41",
"portValue": 47848
}
},
"principal": "spiffe://cluster.local/ns/payroll/sa/default"
}
},
"parsed_body": {
"firstName": "John",
"lastName": "Doe",
"role": "intern",
"userGroup": "hr"
},
"parsed_path": [
"employees"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment