Skip to content

Commit

Permalink
Merge branch 'release/1.10.x' into backport/update-release-channel/fa…
Browse files Browse the repository at this point in the history
…ctually-artistic-coral
  • Loading branch information
mladlow authored Aug 31, 2022
2 parents 7fb9633 + 94af518 commit b5460c4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions changelog/16956.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
core: Prevent two or more DR failovers from invalidating SSCT tokens generated on the previous primaries.
```
3 changes: 3 additions & 0 deletions vault/token_store_util_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ func (ts *TokenStore) loadSSCTokensGenerationCounter(ctx context.Context) error
}

func (ts *TokenStore) UpdateSSCTokensGenerationCounter(ctx context.Context) error {
if err := ts.loadSSCTokensGenerationCounter(ctx); err != nil {
return err
}
ts.sscTokensGenerationCounter.Counter += 1
if ts.sscTokensGenerationCounter.Counter <= 0 {
// Don't store the 0 value
Expand Down

0 comments on commit b5460c4

Please sign in to comment.