-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Support operating on entities and groups by their names #5355
Conversation
9774316
to
039db30
Compare
379b6ae
to
50a9c28
Compare
vault/identity_store_groups.go
Outdated
return nil, err | ||
} | ||
if group.NamespaceID != ns.ID { | ||
return nil, logical.ErrUnsupportedPath |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should return nil, nil
here so it matches the case where there is no group
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
vault/identity_store_entities.go
Outdated
ns, err := namespace.FromContext(ctx) | ||
if err != nil { | ||
return nil, err | ||
} | ||
if entity.NamespaceID != ns.ID { | ||
return nil, logical.ErrUnsupportedPath |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same we should return nil, nil
here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
No description provided.