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

How to programmatically rotate encryption keys? #1368

Closed
rosenhouse opened this issue Oct 29, 2015 · 4 comments
Closed

How to programmatically rotate encryption keys? #1368

rosenhouse opened this issue Oct 29, 2015 · 4 comments
Assignees
Labels
type/enhancement Proposed improvement or new feature

Comments

@rosenhouse
Copy link

Hello,

We'd like to write some Go code that rotates the encryption keys used by our Consul cluster. We don't see a way to do this via the HTTP API or the Go api package and we'd like to avoid shelling out to the consul CLI keyring command. We've considered reaching into the RPCClient in the command package used by the CLI, but are concerned about taking a dependency on something that isn't supported for public consumption.

What is the recommended way to programmatically rotate encryption keys?

Thanks!

cc @zaksoup

@highlyunavailable
Copy link
Contributor

The RPC client is a public interface though:

https://consul.io/docs/agent/rpc.html

There's nothing explicitly "internal" about it other than the key ring commands aren't documented on that page.

@rosenhouse
Copy link
Author

Great, thank you.

@zaksoup
Copy link

zaksoup commented Nov 3, 2015

@highlyunavailable We're attempting to create fakes in order to unit test consumers of the agent.RPCClient. The problem we have now run into is that agent.RPCClient.InstallKey() returns a keyringResponse which is unexported. It seems like significant portions of the RPCClient (really, any of the various methods around keys) are actually unexported and therefor not necessarily suitable for 3rd party use.

@rosenhouse rosenhouse reopened this Nov 3, 2015
@slackpad slackpad added the type/enhancement Proposed improvement or new feature label Jan 8, 2016
@slackpad slackpad self-assigned this Jul 12, 2016
@rosenhouse
Copy link
Author

Appears to be addressed by #1867 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement Proposed improvement or new feature
Projects
None yet
Development

No branches or pull requests

4 participants