Plugin Version Update (#3275)

* Bump plugin version requirement

* Register time.Duration with gob
This commit is contained in:
Brian Kassouf
2017-09-01 00:01:14 -07:00
committed by GitHub
parent 3b8b68097d
commit 4b80f4b58e
2 changed files with 3 additions and 1 deletions

View File

@@ -5,6 +5,7 @@ import (
"crypto/rsa"
"encoding/gob"
"fmt"
"time"
"sync"
@@ -19,6 +20,7 @@ import (
func init() {
gob.Register(rsa.PublicKey{})
gob.Register(ecdsa.PublicKey{})
gob.Register(time.Duration(0))
}
// BackendPluginClient is a wrapper around backendPluginClient

View File

@@ -50,7 +50,7 @@ func Serve(opts *ServeOpts) error {
// This prevents users from executing bad plugins or executing a plugin
// directory. It is a UX feature, not a security feature.
var handshakeConfig = plugin.HandshakeConfig{
ProtocolVersion: 1,
ProtocolVersion: 2,
MagicCookieKey: "VAULT_BACKEND_PLUGIN",
MagicCookieValue: "6669da05-b1c8-4f49-97d9-c8e5bed98e20",
}