Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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