diff --git a/go.mod b/go.mod index d5c20adc..f802c0e1 100644 --- a/go.mod +++ b/go.mod @@ -17,7 +17,7 @@ require ( github.com/sirupsen/logrus v1.9.3 github.com/tg123/go-htpasswd v1.2.2 github.com/tg123/jobobject v0.1.0 - github.com/tg123/remotesigner v0.0.1 + github.com/tg123/remotesigner v0.0.3 github.com/urfave/cli/v2 v2.27.1 golang.org/x/crypto v0.18.0 google.golang.org/grpc v1.62.0 diff --git a/go.sum b/go.sum index cfd7de6d..c05f3643 100644 --- a/go.sum +++ b/go.sum @@ -175,8 +175,8 @@ github.com/tg123/go-htpasswd v1.2.2 h1:tmNccDsQ+wYsoRfiONzIhDm5OkVHQzN3w4FOBAlN6 github.com/tg123/go-htpasswd v1.2.2/go.mod h1:FcIrK0J+6zptgVwK1JDlqyajW/1B4PtuJ/FLWl7nx8A= github.com/tg123/jobobject v0.1.0 h1:deOWVH+SvsnFtT/M+HFhtZ7t9GMYPzYMvvF25IIMRRE= github.com/tg123/jobobject v0.1.0/go.mod h1:TtbMLKdmTPY6eMo4aqDXiQWv0yTfAgDt1mxv6J9pM8o= -github.com/tg123/remotesigner v0.0.1 h1:fFCKgpBOv0nfpWOuuWMke9vECKQu6PTrm4iktDwwMMM= -github.com/tg123/remotesigner v0.0.1/go.mod h1:leliuGRH9ayYYwRo6JO8yg+KyWcltK69XJdLv1x7slM= +github.com/tg123/remotesigner v0.0.3 h1:OA+yzMtlUFwkFpawyu0adG0Jq2NJzw8X7mP/+Z4OxuQ= +github.com/tg123/remotesigner v0.0.3/go.mod h1:vborNv1HjfGLNCFJhUSmcAqqwks4AE1pE8ind6YDuII= github.com/urfave/cli/v2 v2.27.1 h1:8xSQ6szndafKVRmfyeUMxkNUJQMjL1F2zmsZ+qHpfho= github.com/urfave/cli/v2 v2.27.1/go.mod h1:8qnjx1vcq5s2/wpsqoZFndg2CE5tNFyrTvS6SinrnYQ= github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 h1:bAn7/zixMGCfxrRTfdpNzjtPYqr8smhKouy9mxVdGPU= diff --git a/plugin/testplugin/main.go b/plugin/testplugin/main.go index 804e3737..8bd1c407 100644 --- a/plugin/testplugin/main.go +++ b/plugin/testplugin/main.go @@ -83,12 +83,12 @@ func main() { IgnoreHostKey: true, }, nil }, - GrpcRemoteSignerFactory: func(metadata string) crypto.Signer { + GrpcRemoteSignerFactory: func(metadata string) (crypto.Signer, error) { if metadata != "testplugin" { - panic("metadata mismatch") + return nil, fmt.Errorf("metadata mismatch") } - return key.(crypto.Signer) + return key.(crypto.Signer), nil }, }, nil },