Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VAULT-15840: Allow updates of only entity-alias custom-metadata #20368

Merged

Conversation

miagilepner
Copy link
Contributor

@miagilepner miagilepner commented Apr 26, 2023

With these changes, the following works. Previously, the final call would return an empty map:

$ vault auth enable userpass 
$ MA1=$(vault auth list -format=json | jq -r '."userpass/" | .accessor')
$ EID=$(vault write -field=id identity/entity name=max-winslow policies=entity-policy)
$ AID=$(vault write -field=id identity/entity-alias name=max1 canonical_id=$EID mount_accessor=$MA1)
$ vault write identity/entity-alias/id/$AID \
   - <<<'{"custom_metadata":{"foo":"bar"}}'
$ vault read -field=custom_metadata identity/entity-alias/id/$AID
map[foo:bar]

Closes #19434

@miagilepner miagilepner added this to the 1.14 milestone Apr 26, 2023
@miagilepner miagilepner marked this pull request as ready for review April 26, 2023 15:49
@miagilepner miagilepner requested a review from a team April 26, 2023 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

custom_metadata not updated on entity-alias when it's the only given parameter
2 participants