this is config.yaml:
serve:
proxy:
port: 4455 # run the proxy at port 4455
api:
port: 4456 # run the api at port 4456
access_rules:
repositories:
- file:///app/config/rules/rules.json
authenticators:
noop:
enabled: true
cookie_session:
enabled: true
config:
check_session_url: http://kratos-public.mysite.com/sessions/whoami
preserve_path: true
extra_from: "@this"
subject_from: "identity.id"
only:
- ory_kratos_session
authorizers:
allow:
enabled: true
deny:
enabled: true
mutators:
noop:
enabled: true
header:
enabled: true
config:
headers:
X-User: '{{ print .Subject }}'
errors:
fallback:
- json
handlers:
json:
enabled: true
config:
verbose: true
redirect:
enabled: true
config:
to: https://www.ory.sh/docs
this is rules.json:
[
{
"id": "rule-1",
"version": "",
"description": "",
"match": {
"methods": [
"POST",
"GET",
"DELETE",
"PUT",
"PATCH"
],
"url": "http://oathkeeper-proxy.mysite.com/kernel/<.*>"
},
"authenticators": [
{
"handler": "cookie_session",
"config": null
}
],
"authorizer": {
"handler": "allow",
"config": null
},
"mutators": [
{
"handler": "header",
"config": null
}
],
"errors": null,
"upstream": {
"preserve_host": false,
"strip_path": "/kernel",
"url": "http://business.mysite.com"
}
}
]
I use authenticator by cookie_session, I need to forward identify to the upstream url when I passed inspection from the kratos server.
How do I change the configuration?
Thanks.