Skip to content

Log level set to debug changes behavior in 0.16.11 #3159

Description

@julianhille

Preflight checklist

  • I agree to follow this project's Code of Conduct.
  • I have read and am following this repository's Contribution Guidelines."
  • I could not find a solution in the existing issues, docs, nor discussions.

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

log:
  level: debug

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions