Skip to content

🐛 Kagenti self certificates expire after a few days #1009

Description

@yoavkatz

Describe the bug

I have a local Kagenti install on my Mac.  Every few days it seems that certificates expire.   Sometime I see it in the GUI as “Invalid token: Signature has expired.”  and sometime when I interact with an installed  agent.    So far, I used

‘for ns in $(kubectl get ns -o jsonpath=‘{.items[*].metadata.name}‘); do\n kubectl rollout restart deployment -n $ns\n kubectl rollout restart statefulset -n $ns\n kubectl rollout restart daemonset -n $ns\ndone’

Steps To Reproduce

Keep a Kagenti kind server up for a few days.

Expected Behavior

Kagenti could be up for days without such errors. Alternatively, it should require one to explictly login again.

Additional Context

No response

Activity

  1. added
    bug
    on Mar 17, 2026
  2. changed the title [-]:bug: Kagenti self cerfificate expire after a few days[/-] [+]:bug: Kagenti self certificates expire after a few days[/+] on Mar 17, 2026
  3. yoavkatz commented on Mar 18, 2026

    @yoavkatz
    ContributorAuthor

    Happened today again: Now this

    Image

    I was unable to reconnect. The above rollour restart did not work.
    This is the console output:

    Image

    Even :

    deployments/ansible/run-install.sh --env dev --preload -e '{"container_engine":"podman"}'

    Did not work.

  4. esnible commented on Mar 20, 2026

    @esnible
    Member

    I am seeing

    Error loading build
    Invalid token: Signature has expired.
    

    I installed Kagenti just five hours ago!

    oc -n kagenti-system logs deployment/kagenti-backend | grep -i expired shows

    2026-03-20 19:13:59,542 - app.core.auth - WARNING - JWT validation error: Signature has expired.
    

    It isn't clear to me if this is an Authorization header coming from the UI, or something in Kubernetes. More logging around this problem would help.

  5. yoavkatz commented on Mar 23, 2026

    @yoavkatz
    ContributorAuthor

    Happened today again: Now this

    Image I was unable to reconnect. The above rollour restart did not work. This is the console output: Image Even :

    deployments/ansible/run-install.sh --env dev --preload -e '{"container_engine":"podman"}'

    Did not work.

    This specific error was bypassed, by cleaning the browser cache. So it seems to be UI related.

  6. esnible commented on Mar 23, 2026

    @esnible
    Member

    Related: #826 . It should be possible to log out and back in to get a new certificate. But it is not.

  7. assigned and unassigned on Mar 24, 2026
  8. added a commit that references this issue on Mar 25, 2026
    793354b
  9. added a commit that references this issue on Mar 26, 2026
    d560d93
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

    bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions