From 42d2ee04bdd953493ff7fd1a85492ee7136632fd Mon Sep 17 00:00:00 2001 From: Jeff Mitchell Date: Mon, 2 Apr 2018 20:51:35 -0400 Subject: [PATCH] Alias versioned kv as vkv when mounting (#4240) --- vault/logical_system.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/vault/logical_system.go b/vault/logical_system.go index 9d2772f80..e80d98963 100644 --- a/vault/logical_system.go +++ b/vault/logical_system.go @@ -1628,6 +1628,15 @@ func (b *SystemBackend) handleMount(ctx context.Context, req *logical.Request, d config.PassthroughRequestHeaders = apiConfig.PassthroughRequestHeaders } + // Alias versioned KV + if logicalType == "vkv" { + logicalType = "kv" + if options == nil { + options = map[string]string{} + } + options["versioned"] = "true" + } + // Create the mount entry me := &MountEntry{ Table: mountTableType,