From f71203c43956c0da92a772e51d7d09982b3ff91b Mon Sep 17 00:00:00 2001 From: Michel Vocks Date: Wed, 2 Dec 2020 18:21:14 +0100 Subject: [PATCH] Fix license caching issue (#10424) * Fix license caching issue * Add changelog entry --- changelog/10424.txt | 3 +++ sdk/physical/cache.go | 1 + vendor/github.com/hashicorp/vault/sdk/physical/cache.go | 1 + 3 files changed, 5 insertions(+) create mode 100644 changelog/10424.txt diff --git a/changelog/10424.txt b/changelog/10424.txt new file mode 100644 index 000000000..df4d9cfdc --- /dev/null +++ b/changelog/10424.txt @@ -0,0 +1,3 @@ +```release-note:bug +license: Fix license caching issue that prevents new licenses to get picked up by the license manager +``` diff --git a/sdk/physical/cache.go b/sdk/physical/cache.go index 6afd6088e..f48985844 100644 --- a/sdk/physical/cache.go +++ b/sdk/physical/cache.go @@ -29,6 +29,7 @@ var cacheExceptionsPaths = []string{ "sys/expire/", "core/poison-pill", "core/raft/tls", + "core/license", } // CacheRefreshContext returns a context with an added value denoting if the diff --git a/vendor/github.com/hashicorp/vault/sdk/physical/cache.go b/vendor/github.com/hashicorp/vault/sdk/physical/cache.go index 6afd6088e..f48985844 100644 --- a/vendor/github.com/hashicorp/vault/sdk/physical/cache.go +++ b/vendor/github.com/hashicorp/vault/sdk/physical/cache.go @@ -29,6 +29,7 @@ var cacheExceptionsPaths = []string{ "sys/expire/", "core/poison-pill", "core/raft/tls", + "core/license", } // CacheRefreshContext returns a context with an added value denoting if the