1
0
Fork 0
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:
postmannen 2022-02-09 11:15:00 +01:00
parent 3f48002a23
commit 56014a7efd
2 changed files with 6 additions and 0 deletions

1
central_auth.go Normal file
View file

@ -0,0 +1 @@
package steward

View file

@ -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)