Skip to content

Kubernetes provider reconciliation loop exits prematurely, preventing rule set updates #2444

@dadrus

Description

@dadrus

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

A bug was identified in the startup logic of heimdall's kubernetes provider reconciliation loop. The loop exits prematurely - 15 seconds after the heimdall process starts - which prevents any new rule sets from being loaded after that point.

How can the bug be reproduced

  1. Install one of the existing kubernetes based examples
  2. Delete the demo- app rule located in the quickstarts namespace
  3. Wait for 20 seconds
  4. Try to load the rule by making use of kubectl apply
  5. Take the look at the RuleSet status with e.g. kubectl describe - it won't contain any information and show that it was not loaded

Relevant log output

... "Reconciliation loop exited"

Relevant configuration

Version

0.15.0

On which operating system are you observing this issue?

Linux

In which environment are you deploying?

Kubernetes

Additional Context

The bug rippled in with 0.15.0 version of heimdall and is present in all following versions including 0.16.1

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