-
Notifications
You must be signed in to change notification settings - Fork 2k
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
ACL tokens of type 'client' are unable to use the nomad logs command? #5754
Comments
Hi @henrikjohansen , I was able to reproduce this. Looking at the logs, it seems that the 403 is coming from inspection of the node; adding the following to your policy should allow the viewing of logs to proceed:
Update: This isn't a bug, it is a result of the CLI looking up the allocation Node info in order to stream directly from the node. A direct call for the logs using the client API does not have this problem: |
I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues. |
Nomad version
Output from
nomad version
Nomad v0.9.1+ent
Issue
An ACL token with
write
access to a namespace can executenomad fs
against an allocation running in that namespace butnomad logs
fails with a 403 error.Reproduction steps
Create ACL policy :
Create ACL token :
Export ENV vars for the CLI :
Run nomad commands
... even with
capabilities = ["read-logs"]
explicitly set in the ACL policy the above still fails ...When changing to a 'management' token
nomad logs
works as expected.The text was updated successfully, but these errors were encountered: