minio/buildscripts
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
..
cicd-corpus attempt to real resolve when there is a quorum failure on reads (#14613) 2022-04-20 12:49:05 -07:00
upgrade-tests fix: support dropping privileges with arbitrary users (#18386) 2023-11-03 14:18:18 -07:00
checkdeps.sh cleanup scripts and apply shfmt (#17284) 2023-05-25 22:07:25 -07:00
cross-compile.sh Enable cross compile for openbsd/amd64 (#18666) 2023-12-18 17:08:22 -08:00
disable-root.sh reduce all major allocations in replication path (#18032) 2023-09-16 02:28:06 -07:00
gen-ldflags.go update '-v' flag behavior to include copyRight and license (#15097) 2022-06-16 16:10:48 -07:00
heal-inconsistent-versions.sh cleanup scripts and apply shfmt (#17284) 2023-05-25 22:07:25 -07:00
heal-manual.go remove unnecessary 'recreate' code (#19136) 2024-02-27 01:47:58 -08:00
minio-iam-ldap-upgrade-import-test.sh fix: IAM import for LDAP should replace mappings (#19607) 2024-04-25 08:49:53 -07:00
minio-upgrade.sh remove frivolous log about abort-multipart failure in replication (#19413) 2024-04-05 04:39:55 -07:00
race.sh cleanup scripts and apply shfmt (#17284) 2023-05-25 22:07:25 -07:00
resolve-right-versions.sh Revert "Include SuccessorModTime for FileInfo quorum (#17732)" (#17860) 2023-08-16 07:51:33 -07:00
rewrite-old-new.sh make renameData() more defensive during overwrites (#19548) 2024-04-23 10:15:52 -07:00
verify-build.sh cleanup scripts and apply shfmt (#17284) 2023-05-25 22:07:25 -07:00
verify-healing-with-root-disks.sh cleanup scripts and apply shfmt (#17284) 2023-05-25 22:07:25 -07:00
verify-healing.sh initialize the disk healer early on (#19143) 2024-02-27 23:02:14 -08:00