Skip to content

Commit

Permalink
Plugin Version Update (#3275)
Browse files Browse the repository at this point in the history
* Bump plugin version requirement

* Register time.Duration with gob
  • Loading branch information
briankassouf authored Sep 1, 2017
1 parent 3b8b680 commit 4b80f4b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions logical/plugin/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"crypto/rsa"
"encoding/gob"
"fmt"
"time"

"sync"

Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion logical/plugin/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
}

0 comments on commit 4b80f4b

Please sign in to comment.