Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expired / missing tokens in the UI should fall back to anonymous permissions #23938

Open
thetoothpick opened this issue Sep 9, 2024 · 1 comment

Comments

@thetoothpick
Copy link

thetoothpick commented Sep 9, 2024

Nomad version

Nomad 1.8.3

Operating system and Environment details

Linux (server), Mac OS/Chrome (client)

Issue

When using the UI, after a token expires, all permission-checking requests return a 403 Forbidden error due to an expired or missing token, and cannot use the UI until they log in again. When the anonymous ACL policy grants at least read access, this means that a user with an expired token in their browser cookies has fewer permissions than a user with no token.

This leads to general annoyance, since a user must log in again to see anything in the UI after their token expires. It also can cause deeper issues, as someone who has their login access removed cannot get a new token, but is instead stuck with a token that blocks all access (and there's no way to clear the bad token from the UI, it has to be deleted from browser settings).

Ideally, a user with an expired token would have the same permissions as a user with no token (i.e. the anonymous ACL policy), or their token would be automatically cleared from the browser after expiration.

Screenshots

Screenshot 2024-09-09 at 8 17 05 AM
Screenshot 2024-09-09 at 8 17 15 AM

@FelipeLopes-systematica

This indeed creates issues and anyone monitoring for errors in the Nomad Client(s) logs will see/alert on those, which is my case. The errors are also not very clear as you need to enable DEBUG log level to see what caused the "Permission Denied" error. Is there any workaround for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

No branches or pull requests

3 participants