silly-musician-15276
12/02/2025, 5:01 PM{
"id": "protected-resources",
"description": "Strictly protects all known API resources. Requires valid Cookie.",
"upstream": {
"url": "<http://backend:8393/>"
},
"match": {
"url": "<https://api.example.org/><(users|schools|teachers|students|classes|subjects|daily-schedules|lessons|buildings|floors|rooms|roles)(/.*)?>",
"methods": [
"GET",
"POST",
"PUT",
"PATCH",
"DELETE",
"OPTIONS"
]
},
"authenticators": [
{
"handler": "oauth2_introspection"
}
],
"authorizer": {
"handler": "allow"
},
"mutators": [
{
"handler": "header"
},
{
"handler": "id_token"
}
]
}
mutators:
header:
enabled: true
config:
headers:
X-Resource-Name: '{{ .MatchContext.RegexpCaptureGroups | join ", " }}'
Everything I try results in this error:
'error executing headers template "{{ .MatchContext.RegexpCaptureGroups | join ", " }}" in rule "protected-resources": template: protected-resources:X-Resource-Name:1:3: executing "protected-resources:X-Resource-Name" at <print>: wrong number of args for print: want 1 got 2'magnificent-energy-493