millions-smartphone-96713
04/20/2023, 6:19 AMerrors
field in https://github.com/ory/oathkeeper-maester/blob/master/api/v1alpha1/rule_types.go#L47 and I wonder there is any workaround or ongoing work for it.kind-receptionist-82950
04/20/2023, 2:11 PMkind-receptionist-82950
04/20/2023, 2:18 PMtype AuthenticationSession struct {
Subject string
Extra map[string]interface{}
Header http.Header
MatchContext MatchContext
}
In particular, how to discover the contents of Extra
?microscopic-forest-58980
04/21/2023, 4:31 PMtall-angle-41306
04/25/2023, 9:34 AMid_token
mutator, what would cause the hydration endpoint to only include 2 parts of the JWT, rather than all 3?kind-receptionist-82950
04/25/2023, 12:58 PMcreamy-horse-34159
04/26/2023, 11:48 AMicy-stone-85106
04/26/2023, 5:05 PMswift-chef-97535
04/26/2023, 6:30 PMsteep-lamp-91158
04/27/2023, 11:37 AMred-machine-69654
04/27/2023, 12:59 PM$? > 0
and can be used in CI?kind-receptionist-82950
05/02/2023, 8:57 AMcareful-musician-37298
05/03/2023, 9:58 AMid_token
vs. cookie
mutatorcreamy-horse-34159
05/03/2023, 10:23 AMmysterious-balloon-83741
05/08/2023, 10:24 AMbroad-artist-45921
05/09/2023, 9:40 AMquaint-exabyte-70991
05/10/2023, 5:56 AM2023-05-10 11:20:53 time=2023-05-10T05:50:53Z level=error msg=The provided configuration is invalid and could not be loaded. Check the output below to understand why. audience=application config_file=/etc/oathkeeper/config.yaml service_name=oathkeeper service_version=
2023-05-10 11:20:53
2023-05-10 11:20:53 authorizers.allow: map[enabled:true handler:map[name:allow]]
2023-05-10 11:20:53 ^-- additionalProperties "handler" not allowed
2023-05-10 11:20:53
2023-05-10 11:20:53 serve: map[api:map[cors:map[allow_credentials:false allowed_headers:[Authorization Content-Type] allowed_methods:[GET POST PUT PATCH DELETE] allowed_origins:[] debug:false enabled:false exposed_headers:[Content-Type] max_age:0] host: port:4456 timeout:map[idle:120s read:5s write:120s]] listen:map[address::4455] prometheus:map[collapse_request_paths:true host: metrics_path:/metrics port:9000] proxy:map[cors:map[allow_credentials:false allowed_headers:[Authorization Content-Type] allowed_methods:[GET POST PUT PATCH DELETE] allowed_origins:[] debug:false enabled:false exposed_headers:[Content-Type] max_age:0] host: port:4455 timeout:map[idle:120s read:5s write:120s]]]
2023-05-10 11:20:53 ^-- additionalProperties "listen" not allowed
2023-05-10 11:20:53
2023-05-10 11:20:53 authenticators.jwt: map[] enabled:true jwks_cache_duration:3600 jwks_urls:[] leeway:60]
2023-05-10 11:20:53 ^-- oneOf failed
2023-05-10 11:20:53
2023-05-10 11:20:53 authenticators.jwt.config: map[scope_strategy:none]
2023-05-10 11:20:53 ^-- doesn't validate with "#/definitions/configAuthenticatorsJwt"
2023-05-10 11:20:53
2023-05-10 11:20:53 authenticators.jwt.config.jwks_urls: <nil>
2023-05-10 11:20:53 ^-- one or more required properties are missing
2023-05-10 11:20:53
2023-05-10 11:20:53 authenticators.jwt.enabled: true
2023-05-10 11:20:53 ^-- value must be false
2023-05-10 11:20:53
2023-05-10 11:20:53 access_rules: map[interval:5s matching_strategy:regexp path:file:///etc/oathkeeper/rules.yml]
2023-05-10 11:20:53 ^-- additionalProperties "path", "interval" not allowed
2023-05-10 11:20:53
2023-05-10 11:20:53 (root)
2023-05-10 11:20:53 ^-- additionalProperties "upstream", "config", "rules" not allowed
2023-05-10 11:20:53
2023-05-10 11:20:53 time=2023-05-10T05:50:53Z level=fatal msg=The services failed to start because the configuration is invalid. Check the output above for more details. audience=application service_name=oathkeeper service_version=
boundless-state-65031
05/11/2023, 9:19 AMmicroscopic-forest-58980
05/12/2023, 9:57 AMdocker build -t ory-oathkeeper-demo . && docker run --rm --name ory-oathkeeper-demo --network host ory-oathkeeper-demo --config /config.yaml serve
(Config looks like this:)
% cat 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:///rules.json
errors:
fallback:
- json
handlers:
json:
enabled: true
config:
verbose: true
redirect:
enabled: true
config:
to: <https://www.ory.sh/docs>
mutators:
header:
enabled: true
config:
headers:
X-User: "{{ print .Subject }}"
# You could add some other headers, for example with data from the
# session.
# X-Some-Arbitrary-Data: "{{ print .Extra.some.arbitrary.data }}"
noop:
enabled: true
id_token:
enabled: true
config:
issuer_url: <http://localhost:4455/>
jwks_url: file:///jwks.json
authorizers:
allow:
enabled: true
deny:
enabled: true
authenticators:
anonymous:
enabled: true
config:
subject: guest
And the logs show it registering on 4455:
<snip>
time=2023-05-12T09:56:35Z level=info msg=No tracer configured - skipping tracing setup audience=application service_name=ORY Oathkeeper service_version=v0.40.3
time=2023-05-12T09:56:35Z level=info msg=Detected access rule repository change, processing updates. audience=application repos=[file:///rules.json] service_name=ORY Oathkeeper service_version=v0.40.3
time=2023-05-12T09:56:35Z level=info msg=Detected file change for access rules. Triggering a reload. audience=application event=fsnotify file=/rules.json service_name=ORY Oathkeeper service_version=v0.40.3
time=2023-05-12T09:56:35Z level=info msg=Software quality assurance features are enabled. Learn more at: <https://www.ory.sh/docs/ecosystem/sqa> audience=application service_name=ORY Oathkeeper service_version=v0.40.3
time=2023-05-12T09:56:35Z level=info msg=Listening on http://:9000 audience=application service_name=ORY Oathkeeper service_version=v0.40.3
time=2023-05-12T09:56:35Z level=info msg=TLS has not been configured for api, skipping audience=application service_name=ORY Oathkeeper service_version=v0.40.3
time=2023-05-12T09:56:35Z level=info msg=TLS has not been configured for proxy, skipping audience=application service_name=ORY Oathkeeper service_version=v0.40.3
time=2023-05-12T09:56:35Z level=info msg=Listening on http://:4455 audience=application service_name=ORY Oathkeeper service_version=v0.40.3
time=2023-05-12T09:56:35Z level=info msg=Listening on http://:4456 audience=application service_name=ORY Oathkeeper service_version=v0.40.3
And yet:numerous-umbrella-61726
05/12/2023, 2:49 PMquaint-exabyte-70991
05/15/2023, 12:49 PMoathkeeper.yml
and access-rules.yml
. We are getting few issues when are trying to host it. This would really help us 🙏careful-musician-37298
05/22/2023, 7:16 AMread_only
flag for the oathkeeper service without affecting functionality?
• Is it advisable to drop all capabilities by default for oathkeeper?
• What are the recommended settings for mem_limit
, cpus
, pids_limit
cgroup options for oathkeeper?acoustic-father-92306
05/22/2023, 10:58 AMquaint-pager-64027
05/22/2023, 2:49 PMprehistoric-knife-48976
05/26/2023, 2:57 AMlemon-apartment-14887
05/26/2023, 9:49 AMdelightful-microphone-63906
05/26/2023, 3:25 PMfast-lunch-54279
05/26/2023, 8:18 PMfast-lunch-54279
05/26/2023, 8:19 PMcuddly-city-78540
05/28/2023, 11:30 AMremote_json
authoriser when I last asked. Does anyone have an example config for how to use remote_json
with Casbin Server? Or at least any advice on how to integrate the two? I find Casbin a lot easier to understand than Keto and would at least like to experiment before we have to get any real work done 🙂