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

WIP: Add a no-op server endpoint for rotating keys, and make the client use it #529

Closed
wants to merge 5 commits into from

Conversation

cyli
Copy link
Contributor

@cyli cyli commented Feb 1, 2016

The PR for the full server rotation of keys was getting a bit big, so here are some cherry-picked parts.

Currently the endpoint always returns a 429 (rate limit).

Part of #347

err error
)
switch role {
switch s.role { // parseKeyParams ensures it's only timestamp or snapshot
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note - this logic goes away and GetOrCreateXKey gets unified in the next PR.

@riyazdf
Copy link
Contributor

riyazdf commented Feb 2, 2016

awesome tests, LGTM pending comments!

cyli added 4 commits February 1, 2016 22:51
This also changes GetKey and RotateKey to return a data.PublicKey, rather than bytes.

Signed-off-by: Ying Li <[email protected]>
@cyli cyli force-pushed the server-rotate-handler branch from 5b46db7 to c04f9a5 Compare February 2, 2016 07:13
@cyli
Copy link
Contributor Author

cyli commented Feb 2, 2016

@riyazdf @NathanMcCauley thanks for the quick review! I've just made a new function rotateRemoteKey instead of having the boolean. Ideally if we could cache the remote store on the client at some point, we can just remove those two functions. :) But for now this seems easier to read - thanks! :D

@cyli cyli changed the title Add a no-op server endpoint for rotating keys, and make the client use it WIP: Add a no-op server endpoint for rotating keys, and make the client use it Feb 2, 2016
@cyli
Copy link
Contributor Author

cyli commented Feb 2, 2016

Marking as WIP due to some discussion on #534 that may change how this works

@cyli cyli closed this Feb 8, 2016
@cyli
Copy link
Contributor Author

cyli commented Feb 8, 2016

Since so much has changed, opening new request #533 instead.

@cyli cyli deleted the server-rotate-handler branch May 11, 2016 23:47
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.

4 participants