Fix startup failures when aliases from a pre-1.9 vault version exist (#13169)

* Add AllowMissing to local_bucket_key schema, preventing startup failures in post-unseal when aliases from an older version exist.
This commit is contained in:
Nick Cabatoff 2021-11-16 14:56:34 -05:00 committed by GitHub
parent 9e27ccbae1
commit c2d9215d1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

3
changelog/13169.txt Normal file
View File

@ -0,0 +1,3 @@
```release-note:bug
identity: Fix regression preventing startup when aliases were created pre-1.9.
```

View File

@ -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",
},