vault icon indicating copy to clipboard operation
vault copied to clipboard

feat(entity-alias): return metadata when listing entity-aliases

Open pree opened this issue 1 year ago • 0 comments

Returns not only the custom_metadata but also the metadata which might be set by an OIDC provider on entity aliases. This helps especially when you need to search for a user using the metadata on an entity-alias, as the alias-id should be a unique identifier, that might not be an email address etc.

$ vault list -detailed identity/entity-alias/id

Keys                                    canonical_id                            custom_metadata         local    metadata                 mount_accessor            mount_path        mount_type    name
----                                    ------------                            ---------------         -----    --------                 --------------            ----------        ----------    ----
bd991d20-5934-278a-edd2-272857fb8776    a3b0505d-75cb-bb87-c1b0-8cc4bcb169f1    <nil>                   false    map[username:pree]       auth_oidc_a44c8eff        auth/oidc/        oidc          165fc151-fbff-42a2-890f-a7b2014f8f28

pree avatar Mar 21 '24 13:03 pree