You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
@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.
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 CLIkeyring
command. We've considered reaching into theRPCClient
in thecommand
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
The text was updated successfully, but these errors were encountered: