Implement Primary Key Retrieval Command - #595
Conversation
|
@vladfau thank you very much for your contribution. When I read the headline I expected that the code would return the primary key of the local node, but it is asking every node for their primary keys. I am curious about the use case for such an operation, could you explain what you would want to do with this operation? |
|
@i0rek, thanks for replying to my PR! My idea here was simple – mimic the behavior of |
|
Hi @vladfau - you mentioned the motivation here was to obtain the current primary key in Consul - are you looking for something similar to the existing |
|
Hello @kyhavlov, I am no longer working with this project. I can say that if -list-primary returns the current primary key and it is always returns the active primary one without any permutations, this PR can be closed |
Hi guys,
Initially, I had a requirement for Consul to obtain the currently used primary encryption key, but it looks like I've gotta start from Serf first. Please let me know what do you think about this approach and do you find it useful at all? I can add tests for UI part later on if you consider it a right way to achieve my original task.