mirror of
https://github.com/postmannen/ctrl.git
synced 2025-03-05 23:06:47 +00:00
todo update
This commit is contained in:
parent
242335c3bc
commit
ef4d921772
1 changed files with 10 additions and 0 deletions
|
@ -66,6 +66,16 @@ func newCentralAuth(configuration *Configuration, errorKernel *errorKernel) *cen
|
||||||
func (c *centralAuth) addPublicKey(proc process, msg Message) {
|
func (c *centralAuth) addPublicKey(proc process, msg Message) {
|
||||||
c.nodePublicKeys.mu.Lock()
|
c.nodePublicKeys.mu.Lock()
|
||||||
|
|
||||||
|
// TODO: When receiviving a new or different keys for a node we should
|
||||||
|
// have a service with it's own storage for these keys, and an operator
|
||||||
|
// should have to acknowledge the new keys.
|
||||||
|
// For this we need:
|
||||||
|
// - A service that keeps the state of all the new keys detected in the
|
||||||
|
// bytes.equal check below.
|
||||||
|
// - A Log message should be thrown so we know that there is a new key.
|
||||||
|
// - A Request method that can be used by operator to acknowledge a new
|
||||||
|
// key for a host.
|
||||||
|
|
||||||
// Check if a key for the current node already exists in the map.
|
// Check if a key for the current node already exists in the map.
|
||||||
existingKey, ok := c.nodePublicKeys.KeyMap[msg.FromNode]
|
existingKey, ok := c.nodePublicKeys.KeyMap[msg.FromNode]
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue