From 4b0296b50bb0290b3bd51e056cbe760d13649681 Mon Sep 17 00:00:00 2001 From: hc-github-team-secure-vault-core <82990506+hc-github-team-secure-vault-core@users.noreply.github.com> Date: Wed, 5 Apr 2023 14:50:16 -0400 Subject: [PATCH] backport of commit de2bb8ce70d1153756b67609e4af3cab9f05d7eb (#19996) Co-authored-by: Jason O'Donnell <2160810+jasonodonnell@users.noreply.github.com> --- vault/token_store_util_common.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vault/token_store_util_common.go b/vault/token_store_util_common.go index a10bb83a854f..019c2b7e8401 100644 --- a/vault/token_store_util_common.go +++ b/vault/token_store_util_common.go @@ -33,6 +33,8 @@ func (ts *TokenStore) loadSSCTokensGenerationCounter(ctx context.Context) error if err != nil { return fmt.Errorf("malformed token generation counter found in storage: err %w", err) } + + ts.logger.Debug("loaded ssct generation counter", "generation", sscTokensGenerationCounter.Counter) ts.sscTokensGenerationCounter = sscTokensGenerationCounter return nil } @@ -58,5 +60,7 @@ func (ts *TokenStore) UpdateSSCTokensGenerationCounter(ctx context.Context) erro if err != nil { return err } + + ts.logger.Debug("updated ssct generation counter", "generation", ts.sscTokensGenerationCounter.Counter) return nil }