Preflight checklist
Describe the bug
If the log level is set to debug the apps behavior for loading rule sets changes.
How can the bug be reproduced
Have 0.16.11 installed
Have log level set to debug
Have two conflicting rule sets.
Set A:
apiVersion: heimdall.dadrus.github.com/v1alpha4
kind: RuleSet
metadata:
name: access-rule-A
spec:
rules:
- id: restrict-A
match:
routes:
- path: /**
execute:
- authenticator: app_jwt
- authorizer: allow_preflight
- finalizer: noop
Set B:
apiVersion: heimdall.dadrus.github.com/v1alpha4
kind: RuleSet
metadata:
name: access-rule-B
spec:
rules:
- id: restrict-B
match:
routes:
- path: /**
execute:
- authenticator: other_app_jwt
- authorizer: allow_preflight
- finalizer: noop
of course you need the authenticators configured to be working otherwise this would be pointless :>
If the debug log level is set:
- i see logs about
- loading /merging rulesets
- conflicting rules, as expected
- the secured endpoint does work as expected (403 if no auth, 200 if auth is valid)
if the debug log level is not set:
My guess: order of loading rules / merging rules somehow differs, but just a gut feeling and a bit of assumptions
Relevant log output
Relevant configuration
Version
0.16.11
On which operating system are you observing this issue?
None
In which environment are you deploying?
None
Additional Context
Even though 0.16.11 is already out of date i post this as this is very unexpected that the outcome of merging rulesets works differently. And maybe there is somehow any underlying bug.
Tested version:
- 0.16.11
- 0.16.2
- 0.16.8
- 0.16.10
None showed that behaviour
Preflight checklist
Describe the bug
If the log level is set to debug the apps behavior for loading rule sets changes.
How can the bug be reproduced
Have 0.16.11 installed
Have log level set to debug
Have two conflicting rule sets.
Set A:
Set B:
of course you need the authenticators configured to be working otherwise this would be pointless :>
If the debug log level is set:
if the debug log level is not set:
My guess: order of loading rules / merging rules somehow differs, but just a gut feeling and a bit of assumptions
Relevant log output
Relevant configuration
Version
0.16.11
On which operating system are you observing this issue?
None
In which environment are you deploying?
None
Additional Context
Even though 0.16.11 is already out of date i post this as this is very unexpected that the outcome of merging rulesets works differently. And maybe there is somehow any underlying bug.
Tested version:
None showed that behaviour