Skip to content
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

Update force-leave ACL requirement to operator:write #7033

Merged
merged 3 commits into from
Jan 14, 2020
Merged

Conversation

freddygv
Copy link
Contributor

@freddygv freddygv commented Jan 13, 2020

Currently the ACL requirement for AgentForceLeave, is agent:write. This requirement doesn't really fit the endpoint given that the node that is being force left is a different node in the cluster. Whereas agent privileges are for actions an agent can take regarding its own status, such as joining or leaving the datacenter.

Rather than making things significantly more complex for users by making the requirement node:write on the node being force-left, this PR opts for using operator:write, since this endpoint can remove an arbitrary number of failed nodes from the cluster.

This is a breaking change and needs to go in 1.7.0, rather than a minor release.

@freddygv freddygv requested a review from a team January 13, 2020 19:10
Copy link
Member

@hanshasselberg hanshasselberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@freddygv freddygv merged commit e635b24 into master Jan 14, 2020
@freddygv freddygv deleted the force-leave-rule branch January 14, 2020 22:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants