serve: proxy: port: 8888 cors: enabled: true allowed_origins: - http://127.0.0.1:4455 allowed_methods: - POST allowed_headers: - Authorization - Content-Type exposed_headers: - Content-Type allow_credentials: true debug: true errors: fallback: - json handlers: redirect: enabled: true config: to: http://127.0.0.1:4455/auth/login when: - error: - unauthorized - forbidden request: header: accept: - text/html json: enabled: true config: verbose: true access_rules: repositories: - file:///etc/config/oathkeeper/access-rules.yml authenticators: cookie_session: enabled: true config: check_session_url: http://kratos:4433/sessions/whoami preserve_path: true extra_from: "@this" subject_from: "identity.id" only: - ory_kratos_session noop: enabled: true authorizers: allow: enabled: true mutators: noop: enabled: true header: enabled: true config: headers: X-Postgres-Role: '{{ print .Subject }}'