allows emails@sign to be within the aws secrets engine path (#7553)

This commit is contained in:
will-quan-bird 2019-10-25 09:01:01 -07:00 committed by Jim Kalafut
parent 319fe8ea37
commit b16087cd14
2 changed files with 2 additions and 2 deletions

View file

@ -37,7 +37,7 @@ func pathListRoles(b *backend) *framework.Path {
func pathRoles(b *backend) *framework.Path {
return &framework.Path{
Pattern: "roles/" + framework.GenericNameRegex("name"),
Pattern: "roles/" + framework.GenericNameWithAtRegex("name"),
Fields: map[string]*framework.FieldSchema{
"name": &framework.FieldSchema{
Type: framework.TypeString,

View file

@ -18,7 +18,7 @@ import (
func pathUser(b *backend) *framework.Path {
return &framework.Path{
Pattern: "(creds|sts)/" + framework.GenericNameRegex("name"),
Pattern: "(creds|sts)/" + framework.GenericNameWithAtRegex("name"),
Fields: map[string]*framework.FieldSchema{
"name": &framework.FieldSchema{
Type: framework.TypeString,