Created
July 8, 2021 16:08
-
-
Save adam-sandor/e24a56bad9505f97cd2b375484afe026 to your computer and use it in GitHub Desktop.
Envoy ext_auth request to OPA
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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