From d249f587566108c6b6b751c92293c00875fac7ee Mon Sep 17 00:00:00 2001 From: postmannen Date: Wed, 11 May 2022 13:45:49 +0200 Subject: [PATCH] todo comments --- doc/concept/auth/~$REQPublicKeysGet.drawio.dtmp | 1 - processes.go | 4 ++++ requests.go | 11 ++++++++++- 3 files changed, 14 insertions(+), 2 deletions(-) delete mode 100644 doc/concept/auth/~$REQPublicKeysGet.drawio.dtmp diff --git a/doc/concept/auth/~$REQPublicKeysGet.drawio.dtmp b/doc/concept/auth/~$REQPublicKeysGet.drawio.dtmp deleted file mode 100644 index a29125e..0000000 --- a/doc/concept/auth/~$REQPublicKeysGet.drawio.dtmp +++ /dev/null @@ -1 +0,0 @@ -5Vjbcts2EP0aTZ/i4UWipEdbcZKOa9Wx2onzCJErESOQUEHQEv31XYDgFYyjTKzEbV44xAJ7wTmLxZIjf5Ec3wuyj295BGzkOdFx5L8ded5s4uBTCYpSELheKdgKGpUitxGs6BMYodHb5jSCrLNQcs4k3XeFIU9TCGVHRoTgh+6yDWddr3uyBUuwCgmzpZ9oJGMjdYN5M/EB6DY2rmfetJxYk3C3FTxPjb+Up1DOJKQyY/aYxSTih5bIvx75C8G5LN+S4wKYQrVCrNR794XZOmQBqTxF4Z+HK29zf/Px6fPD7O+CjWP3j82bmdngI2G5wcJEK4sKHL09UFackX91iKmE1Z6EavaA2YCyWCYMRy6+RiSL9Vo12PBUGrI9pWt8gZBw/OIu3BobzDbgCUhR4JJjlVlBqWIyzXOMiUPDmzczkMctysa+ERKTK9vadgMavhjcvgHDufMfw9CtMPtmDN35uTB0LQzv8jWjCIRQexM8hAydXo68gGE0V2sUB1v1dn/98QN64PZM4CgSAItGpPynEgTat9fZEgF7VtyCjHmkfTroRMcT3kBxl8tn+HW/zu9LUOj2KAwGKAwGKJye7RR4FoNLvCYspHDPsgtHJgXfwYIzLlCiKyimPWWsJyKMblMchqCYRIFCkGIRvzQTCY0i5WYQ/+4JPMOp8pxJlxLPpmSIkfPVJd9iZIF7EeoI/C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FXuMC8JRF75PW4Y0e4OVwb6FHgH+Vt3IvOd0oru2janK7tPUlgcLsxyFwEjOLvFdHnKgc/EPyko6/OcNFbE5y2bu0h8hViaCWPeCuBb6TzirHYfNYZo+13Yj7ZrciTtqW7dzCQW8/6L11mTdokUO+CYPT3CCVhhY5Sc/PQcp2siHO06eYoJEcuTGsTeNe8d3ljx3vIY8vf0ng+8c8fWLFkHOkM0O9X7rpJ4J0PcbeTHod4XyQqny0q2XI+6jrpJUaVmSZms1aHvDiciNR31jehzw0zzyGmexxsXT6Gc60lY2MmZWwNtpz+OnZSiBM4HadWLFm5R87aem+LBu+krOgTlAXN9mcKus/7rUf89Sc= \ No newline at end of file diff --git a/processes.go b/processes.go index cb2575b..42e6161 100644 --- a/processes.go +++ b/processes.go @@ -313,6 +313,10 @@ func (s startup) pubREQPublicKeysGet(p process) { ticker := time.NewTicker(time.Second * time.Duration(p.configuration.PublicKeysGetInterval)) for { + // TODO: We could send with the hash of the currently stored keys, + // so we would know on the subscriber at central if it should send + // and update with new keys back. + m := Message{ FileName: "publickeysget.log", Directory: "publickeysget", diff --git a/requests.go b/requests.go index ab8407f..f932420 100644 --- a/requests.go +++ b/requests.go @@ -2061,6 +2061,11 @@ func (m methodREQPublicKeysGet) handler(proc process, message Message, node stri // case out := <-outCh: case <-outCh: proc.centralAuth.keys.nodePublicKeys.mu.Lock() + // TODO: We should probably create a hash of the current map content, + // store it alongside the KeyMap, and send both the KeyMap and hash + // back. We can then later send that hash when asking for keys, compare + // it with the current one for the KeyMap, and know if we need to send + // and update back to the node who published the request to here. b, err := json.Marshal(proc.centralAuth.keys.nodePublicKeys.KeyMap) proc.centralAuth.keys.nodePublicKeys.mu.Unlock() if err != nil { @@ -2154,7 +2159,11 @@ func (m methodREQPublicKeysAllow) getKind() Event { return m.event } -// Handler to get all the public ed25519 keys from a central server. +// Handler to allow new public keys into the database on central auth. +// Nodes will send the public key in the REQHello messages. When they +// are recived on the central server they will be put into a temp key +// map, and we need to acknowledge them before they are moved into the +// main key map, and then allowed to be sent out to other nodes. func (m methodREQPublicKeysAllow) handler(proc process, message Message, node string) ([]byte, error) { // Get a context with the timeout specified in message.MethodTimeout. ctx, _ := getContextForMethodTimeout(proc.ctx, message)