Skip to content

Commit

Permalink
Fix startup failures when aliases from a pre-1.9 vault version exist (#…
Browse files Browse the repository at this point in the history
…13169) (#13171)

* Add AllowMissing to local_bucket_key schema, preventing startup failures in post-unseal when aliases from an older version exist.
  • Loading branch information
ncabatoff committed Nov 16, 2021
1 parent 559197a commit abe5416
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelog/13169.txt
@@ -0,0 +1,3 @@
```release-note:bug
identity: Fix regression preventing startup when aliases were created pre-1.9.
```
3 changes: 2 additions & 1 deletion vault/identity_store_schema.go
Expand Up @@ -71,7 +71,8 @@ func aliasesTableSchema(lowerCaseName bool) *memdb.TableSchema {
},
},
"local_bucket_key": {
Name: "local_bucket_key",
Name: "local_bucket_key",
AllowMissing: true,
Indexer: &memdb.StringFieldIndex{
Field: "LocalBucketKey",
},
Expand Down

0 comments on commit abe5416

Please sign in to comment.