1
0
Fork 0
mirror of https://github.com/postmannen/ctrl.git synced 2025-03-31 01:24:31 +00:00

added startup of central key processes

This commit is contained in:
postmannen 2024-12-28 07:04:48 +01:00
parent e98cf0f6bc
commit 8ac14720cc
2 changed files with 7 additions and 3 deletions

View file

@ -143,7 +143,9 @@ func (p *processes) Start(proc process) {
}
if proc.configuration.StartProcesses.IsCentralKey {
proc.startup.startProcess(proc, KeysRequestUpdate, nil)
proc.startup.startProcess(proc, KeysAllow, nil)
proc.startup.startProcess(proc, KeysDelete, nil)
}
if proc.configuration.StartProcesses.IsCentralAcl {

View file

@ -124,9 +124,11 @@ const (
// REQPublicKey will get the public ed25519 key from a node.
PublicKey Method = "publicKey"
// REQKeysRequestUpdate will get all the public keys from central if an update is available.
// REQKeysRequestUpdate will receive all the messages of the current hash of all public keys
// a node have stored, and send out an update if needed..
KeysRequestUpdate Method = "keysRequestUpdate"
// REQKeysDeliverUpdate will deliver the public from central to a node.
// REQKeysRequestUpdatePublisher send the current hash of the locally stored public keys to
// the central key server, and get an update from central if needed.
KeysDeliverUpdate Method = "keysDeliverUpdate"
// REQKeysAllow
KeysAllow Method = "keysAllow"