-
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
Provide ACL token on client requests #3416
Provide ACL token on client requests #3416
Conversation
|
||
secret: computed.reads('token.secret'), | ||
|
||
tokenIsValid: false, | ||
tokenIsInvalid: false, | ||
tokenRecord: null, | ||
|
||
resetStore() { | ||
this.get('store').unloadAll(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dang that is a big 🔨 (but I get why it's necessary) - are models unique across tokens or is there also a risk of id collisions here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No risk of collisions. Also no risk of leaking anything the user didn't at least have prior access to. It's just a Do The Right Thing™ change. If the token doesn't give access then it shouldn't be shown.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
d55f989
to
30806f9
Compare
I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions. |
Rebased off of #3413This adds the
X-Nomad-Token
header to requests for allocation stats. However, adding a custom header to a cross-origin request invokes an OPTIONS preflight, which Nomad doesn't handle until #3414 merges.