*** I want to use regular expressions in strip_path
my oathkeeper rules:
[
{
"id": " deployment-agent",
"upstream": {
"url": "http://ip:port",
"preserve_host": false,
"strip_path": "/deployment-agent/<read|write|modify>"
},
"match": {
"url": "http://ip:port/deployment-agent/<read|write|modify>/<.*>",
"methods": [
"POST",
"PATCH",
"GET",
"PUT",
"DELETE"
]
},
"authenticators": [
{
"handler": "oauth2_introspection"
}
],
"authorizer": {
"handler": "keto_engine_acp_ory",
"config": {
"required_action": "$1",
"required_resource": "deployment-agent",
"subject": "{{ print .Extra.client_id }}",
"flavor": "exact"
}
},
"mutators": [
{
"handler": "noop",
}
]
}
]
It didn’t work.
What should I do