minio/.github
Aditya Manthramurthy 3212d0c8cd
fix: IAM import for LDAP should replace mappings (#19607)
Existing IAM import logic for LDAP creates new mappings when the
normalized form of the mapping key differs from the existing mapping key
in storage. This change effectively replaces the existing mapping key by
first deleting it and then recreating with the normalized form of the
mapping key.

For e.g. if an older deployment had a policy mapped to a user DN -

`UID=alice1,OU=people,OU=hwengg,DC=min,DC=io`

instead of adding a mapping for the normalized form -

`uid=alice1,ou=people,ou=hwengg,dc=min,dc=io`

we should replace the existing mapping.

This ensures that duplicates mappings won't remain after the import.

Some additional cleanup cases are also covered. If there are multiple
mappings for the name normalized key such as:

`UID=alice1,OU=people,OU=hwengg,DC=min,DC=io`
`uid=alice1,ou=people,ou=hwengg,DC=min,DC=io`
`uid=alice1,ou=people,ou=hwengg,dc=min,dc=io`

we check if the list of policies mapped to all these keys are exactly
the same, and if so remove all of them and create a single mapping with
the normalized key. However, if the policies mapped to such keys differ,
the import operation returns an error as the server cannot automatically
pick the "right" list of policies to map.
2024-04-25 08:49:53 -07:00
..
ISSUE_TEMPLATE Add Subnet link in the issue template for urgency clause (#14131) 2022-01-20 09:37:40 -08:00
workflows fix: IAM import for LDAP should replace mappings (#19607) 2024-04-25 08:49:53 -07:00
ISSUE_TEMPLATE.md Slight tweaks to SUBNET portion of the template (#14205) 2022-01-28 16:04:16 -08:00
logo.svg Migrate config to KV data format (#8392) 2019-10-22 22:59:13 -07:00
PULL_REQUEST_TEMPLATE.md small fix for the PR template (#18443) 2023-11-14 09:29:11 -08:00
stale.yml change to do-not-close 2022-01-23 20:36:59 -08:00