bindle icon indicating copy to clipboard operation
bindle copied to clipboard

Error: "failed signature check invoice"

Open bacongobbler opened this issue 2 years ago • 5 comments

When I receive this error, how can I fix it?

><> hippofactory --server ***** --hippo-url ***** --hippo-username ***** --hippo-password ***** .
Error: Invalid request (status code 400): Some("failed signature check invoice")

bacongobbler avatar Jul 24 '21 19:07 bacongobbler

Here's my config:

$ cat /usr/local/etc/bindle/bindle.toml 
address = "0.0.0.0:8080"
bindle-directory = "/usr/local/lib/bindle"
keyring = "/usr/local/etc/bindle/keyring.toml"
signing-keys = "/usr/local/etc/bindle/signing_keys.toml"

keyring.toml does not exist, resulting with this log message which I assume is fine?

WARN bindle_server: No keyring.toml found. Using default keyring.

And here's the content of signing_keys.toml:

version = "1.0"
  
[[key]]
label = "Matt Fisher <[email protected]>"
keypair = "********"
roles = ["creator"]

bacongobbler avatar Jul 24 '21 19:07 bacongobbler

Ok, this is due to your signing keys only having a creator key. There should be at least one key with a host role that the bindle server can use to sign things. Let me create an issue to make sure the full issue reason (or at least more detailed reason) gets printed in the client response

thomastaylor312 avatar Jul 26 '21 17:07 thomastaylor312

Thanks @thomastaylor312, that fixed things!

Fixed by switching the default role to a host role.

bacongobbler avatar Jul 26 '21 18:07 bacongobbler

Thinking about this more, should the default output of bindle create-key be a host role, or should we provide the end user documentation on how to set up bindle-server with bindle create-key?

bacongobbler avatar Jul 26 '21 18:07 bacongobbler

Probably documentation. As bindle create-key is a client command, I'd want the default to be for a client (which would be a creator key to sign with). But I think documenting would be a good idea

thomastaylor312 avatar Jul 26 '21 18:07 thomastaylor312