Open
Description
Nomad version
1.9.7
Operating system and Environment details
Clients & Servers: Debian 12
User OS: Ubuntu 24.04
User Browser. Firefox 139.0.1
Issue
Revert button in Web UI shows "You don’t have permission to revert" even though the token can revert job versions via the CLI.
Reproduction steps
- Run a job in a non default namespace, e.g.
testspace
- Make a small change, run the job again
- Create a policy with the following permissions.
namespace "testspace" {
policy = "write"
}
plugin {
policy = "read"
}
node {
policy = "read"
}
agent {
policy = "read"
}
- Generate a token with the above policy.
- Try to revert the job to the previous version from the Web UI
Expected Result
Permissions should match between CLI and Web UI. It should be possible to revert a job with write
access to the namespace.
Actual Result
Reverting a job through the Web UI is not possible without a management token. Very likely, the Web UI simply doesn't correctly check the permissions of the token, since it seems no requests are actually sent if the UI button is simply disabled.

Metadata
Metadata
Assignees
Type
Projects
Status
Needs Triage