mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 03:27:54 +00:00
Plugin Version Update (#3275)
* Bump plugin version requirement * Register time.Duration with gob
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user