nomad: add sso permission to read cluster status #29
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I created this to allow people to see the logs in full screen (very weird but the node:read permission is required for that), but also added so that you can see which clients and servers we have and some metadata about them as well as how full our cluster is of stuff (although this one seems to lie since it just hides allocations in namespaces you don't have access to, which is a bit meh).
I haven't tried to run the tofu file because I no longer have access to the state file, but have deployed this through the nomad cli. Not sure but maybe those should be removed before deploying this, which can be done through:
I think this permission should be given to everyone who has any access in nomad, which is why I made the selector as is. If you don't agree, you can merge only the first commit and give people, or at least me :), the "read-cluster" permission.