Update remotesigner version (#338)
* Update remotesigner version to v0.0.2 * Update remotesigner version to v0.0.3
This commit is contained in:
parent
d2097eff2b
commit
450ed385b9
3 changed files with 6 additions and 6 deletions
2
go.mod
2
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
|
||||
|
|
|
|||
4
go.sum
4
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=
|
||||
|
|
|
|||
|
|
@ -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
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue