mirror of
https://github.com/postmannen/ctrl.git
synced 2024-12-14 12:37:31 +00:00
added only signature checking for REQCliCommand
This commit is contained in:
parent
3f48002a23
commit
56014a7efd
2 changed files with 6 additions and 0 deletions
1
central_auth.go
Normal file
1
central_auth.go
Normal file
|
@ -0,0 +1 @@
|
|||
package steward
|
|
@ -217,6 +217,11 @@ func (s *signatures) verifySignature(m Message) bool {
|
|||
return true
|
||||
}
|
||||
|
||||
if m.Method != REQCliCommand {
|
||||
fmt.Printf(" * DEBUG: verifySignature: WAS OTHER THAN CLI COMMAND\n")
|
||||
return true
|
||||
}
|
||||
|
||||
// Verify if the signature matches.
|
||||
argsStringified := argsToString(m.MethodArgs)
|
||||
ok := ed25519.Verify(s.SignPublicKey, []byte(argsStringified), m.ArgSignature)
|
||||
|
|
Loading…
Reference in a new issue