Skip to content

Commit

Permalink
remove caseSensitivityKey
Browse files Browse the repository at this point in the history
  • Loading branch information
akshya96 committed Jun 7, 2023
1 parent 0d14718 commit 9d467ef
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 15 deletions.
2 changes: 1 addition & 1 deletion changelog/20965.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
```release-note:bug
identity: Remove invalidation for caseSensitivityKey to prevent errors while loading groups which could result in missing groups in memDB when duplicates are found.
identity: Remove caseSensitivityKey to prevent errors while loading groups which could result in missing groups in memDB when duplicates are found.
```
11 changes: 1 addition & 10 deletions vault/identity_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ const (
)

var (
caseSensitivityKey = "casesensitivity"
parseExtraEntityFromBucket = func(context.Context, *IdentityStore, *identity.Entity) (bool, error) { return false, nil }
addExtraEntityDataToResponse = func(*identity.Entity, map[string]interface{}) {}
)
Expand Down Expand Up @@ -645,15 +644,7 @@ func (i *IdentityStore) initialize(ctx context.Context, req *logical.Initializat
if err := i.storeOIDCDefaultResources(ctx, req.Storage); err != nil {
return err
}

entry, err := logical.StorageEntryJSON(caseSensitivityKey, &casesensitivity{
DisableLowerCasedNames: i.disableLowerCasedNames,
})
if err != nil {
return err
}

return i.view.Put(ctx, entry)
return nil
}

// Invalidate is a callback wherein the backend is informed that the value at
Expand Down
4 changes: 0 additions & 4 deletions vault/identity_store_structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,6 @@ type groupDiff struct {
Unmodified []*identity.Group
}

type casesensitivity struct {
DisableLowerCasedNames bool `json:"disable_lower_cased_names"`
}

type LocalNode interface {
ReplicationState() consts.ReplicationState
HAState() consts.HAState
Expand Down

0 comments on commit 9d467ef

Please sign in to comment.