When deleting policy any tokens with that policy can't exec in Nomad UI
- Dominant language
- Go
- Stars
- 17k
- Forks
- 2.1k
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 105
Description
When deleting policy any tokens with that policy can't exec in Nomad UI
### Nomad version
Nomad v1.7.3
BuildDate 2024-01-15T16:55:40Z
Revision 60ee328f97d19d2d2d9761251b895b06d82eb1a1
### Operating system and Environment details
Ubuntu 22.04
### Issue
### Reproduction steps
Create policy A
Then create token with that policy and some another policies
Test if you could exec jobs
Delete policy A
Test token what you created in Nomad UI - you can't use exec even if there is namespace\job what not related to policy A and what related to another available for now policy.
#### Expected Result
Warning when deleting policy that i should before remove it from all other tokens or complete fix - When i deleting policy i just wanna remove some piece of functionality from tokens (don’t break any tokens associated with deleted policy like now)
#### Actual Result
When deleting policy any tokens with that policy can't exec in Nomad UI even if there is namespace\job what not related to deleted policy
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the policy and token sequence in Nomad v1.7.3, then verify the deleted policy's effect on Nomad UI exec access for jobs covered by another policy. Done means either deletion warns about affected tokens or tokens retain access granted by their remaining policies, with the reported scenario covered by verification.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- authorization
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100