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

Fix the coordinate update endpoint not passing the ACL token #3892

Merged
merged 1 commit into from
Feb 15, 2018

Conversation

kyhavlov
Copy link
Contributor

@kyhavlov kyhavlov commented Feb 15, 2018

The coordinate update HTTP endpoint was leaving the token empty on its RPC call - the agents internally hit the RPC endpoint directly for coordinate updates so this was only affecting external tools that called it.

@@ -168,6 +168,7 @@ func (s *HTTPServer) CoordinateUpdate(resp http.ResponseWriter, req *http.Reques
return nil, nil
}
s.parseDC(req, &args.Datacenter)
s.parseToken(req, &args.Token)
Copy link
Contributor

Choose a reason for hiding this comment

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

this looks good but don't you also need it right before the other RPCS in this method?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

what other RPC calls are there?

Copy link
Contributor

@preetapan preetapan left a comment

Choose a reason for hiding this comment

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

Noted that the other methods do correctly parse the token already, LGTM

@kyhavlov kyhavlov merged commit 12da568 into master Feb 15, 2018
@kyhavlov kyhavlov deleted the coordinate-acl-fix branch February 15, 2018 21:47
@pearkes pearkes added this to the 1.0.7 milestone Mar 13, 2018
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.

3 participants