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:
parent
e98cf0f6bc
commit
8ac14720cc
2 changed files with 7 additions and 3 deletions
|
@ -143,7 +143,9 @@ func (p *processes) Start(proc process) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if proc.configuration.StartProcesses.IsCentralKey {
|
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 {
|
if proc.configuration.StartProcesses.IsCentralAcl {
|
||||||
|
|
|
@ -124,9 +124,11 @@ const (
|
||||||
|
|
||||||
// REQPublicKey will get the public ed25519 key from a node.
|
// REQPublicKey will get the public ed25519 key from a node.
|
||||||
PublicKey Method = "publicKey"
|
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"
|
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"
|
KeysDeliverUpdate Method = "keysDeliverUpdate"
|
||||||
// REQKeysAllow
|
// REQKeysAllow
|
||||||
KeysAllow Method = "keysAllow"
|
KeysAllow Method = "keysAllow"
|
||||||
|
|
Loading…
Add table
Reference in a new issue