Skip to content

Commit

Permalink
Change regexes for reading entity/group names (#7055)
Browse files Browse the repository at this point in the history
We don't restrict the name itself, so we shouldn't restrict lookup.

Fixes #7054
  • Loading branch information
jefferai committed Jul 3, 2019
1 parent 67a029a commit 73cd687
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vault/identity_store_entities.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func entityPaths(i *IdentityStore) []*framework.Path {
HelpDescription: strings.TrimSpace(entityHelp["entity"][1]),
},
{
Pattern: "entity/name/" + framework.GenericNameRegex("name"),
Pattern: "entity/name/(?P<name>.+)",
Fields: entityPathFields(),
Callbacks: map[logical.Operation]framework.OperationFunc{
logical.UpdateOperation: i.handleEntityUpdateCommon(),
Expand Down
2 changes: 1 addition & 1 deletion vault/identity_store_groups.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func groupPaths(i *IdentityStore) []*framework.Path {
HelpDescription: strings.TrimSpace(groupHelp["group-id-list"][1]),
},
{
Pattern: "group/name/" + framework.GenericNameRegex("name"),
Pattern: "group/name/(?P<name>.+)",
Fields: groupPathFields(),
Callbacks: map[logical.Operation]framework.OperationFunc{
logical.UpdateOperation: i.pathGroupNameUpdate(),
Expand Down

0 comments on commit 73cd687

Please sign in to comment.