hashicorp / hashicorp/nomad

Update error message: Your ACL token does not grant permission to ...

Open
#26,918 1 comment 13 reactions 0 assignees View on GitHub
hcc/jira stage/accepted stage/needs-investigation theme/acl theme/ui type/enhancement
Dominant language
Go
Stars
17k
Forks
2.1k
Avg merge
1d 9h
Merged PRs (30d)
105

Description

### Proposal
Update https://github.com/hashicorp/nomad/blob/b65be2df61e0f30e50e808831fe8760a95a52ec5/ui/app/utils/message-from-adapter-error.js#L11 to ``return `Your ACL token does not grant permission to ${actionMessage}. Please ensure you are signed in.`; ``

### Use-cases
I got this error which confused me as I should have these permissions. I was not logged in. I thought make the error more actionable by including a potential solution which is signing in.
Image

Contributor guide

No contributing guide indexed for this repository

Research direction

Open ui/app/utils/message-from-adapter-error.js at line 11 and inspect the current ACL error message. Update the message to mention signing in as a possible solution, then verify that the resulting wording includes the requested permission action and sign-in guidance.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.