You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Observe that the number of entity aliases on newParentID is incorrect. It should be 1 but it is 2. - vault read -format=json identity/entity/id/$newParentID | jq '.data.aliases | length'
Expected behavior
If from_entity_ids contains duplicates when merging two entities, they should be de-duplicated.
Environment:
Vault Server Version (retrieve with vault status): 1.5.4
Vault CLI Version (retrieve with vault version): 1.5.4
The text was updated successfully, but these errors were encountered:
Describe the bug
When two entities are being merged, duplicate
from_entity_ids
results in duplicate entity aliases in the "to" entity.To Reproduce
Steps to reproduce the behavior:
vault auth enable -path=userpass1 userpass
mount1accessor=$(vault auth list -format=json | jq -r '.["userpass1/"].accessor')
originalParentID=$(vault write -field=id -force identity/entity)
vault write -field=id identity/entity-alias name=foobar canonical_id=$originalParentID mount_accessor=$mount1accessor
newParentID=$(vault write -field=id identity/entity name=foobar)
originalParentID
s intonewParentID
-vault write identity/entity/merge to_entity_id=$newParentID from_entity_ids=$originalParentID,$originalParentID
newParentID
is incorrect. It should be 1 but it is 2. -vault read -format=json identity/entity/id/$newParentID | jq '.data.aliases | length'
Expected behavior
If
from_entity_ids
contains duplicates when merging two entities, they should be de-duplicated.Environment:
vault status
): 1.5.4vault version
): 1.5.4The text was updated successfully, but these errors were encountered: