minio/internal
Aditya Manthramurthy ae46ce9937
ldap: Normalize DNs when importing (#19528)
This is a change to IAM export/import functionality. For LDAP enabled
setups, it performs additional validations:

- for policy mappings on LDAP users and groups, it ensures that the
corresponding user or group DN exists and if so uses a normalized form
of these DNs for storage

- for access keys (service accounts), it updates (i.e. validates
existence and normalizes) the internally stored parent user DN and group
DNs.

This allows for a migration path for setups in which LDAP mappings have
been stored in previous versions of the server, where the name of the
mapping file stored on drives is not in a normalized form.

An administrator needs to execute:

`mc admin iam export ALIAS`

followed by

`mc admin iam import ALIAS /path/to/export/file`

The validations are more strict and returns errors when multiple
mappings are found for the same user/group DN. This is to ensure the
mappings stored by the server are unambiguous and to reduce the
potential for confusion.

Bonus **bug fix**: IAM export of access keys (service accounts) did not
export key name, description and expiration. This is fixed in this
change too.
2024-04-18 08:15:02 -07:00
..
amztime add codespell action (#18818) 2024-01-17 23:03:17 -08:00
arn Add more tests for ARN and its format (#19408) 2024-04-04 01:31:34 -07:00
auth automatically generate root credentials with KMS (#19025) 2024-03-01 13:09:42 -08:00
bpool Add cgroup v2 support for memory limit (#18905) 2024-01-30 11:13:27 -08:00
bucket logging: Add subsystem to log API (#19002) 2024-04-04 05:04:40 -07:00
cachevalue debug: introduce support for configuring client connect WRITE deadline (#19170) 2024-03-01 08:00:42 -08:00
color log: Do not interpret verbs in object names in console output (#16233) 2022-12-13 08:27:40 -08:00
config ldap: Normalize DNs when importing (#19528) 2024-04-18 08:15:02 -07:00
crypto Enable replication of SSE-C objects (#19107) 2024-03-28 10:44:56 -07:00
deadlineconn add deadlineConnections on remoteTransport (#16010) 2022-11-05 11:09:21 -07:00
disk Read drive IO stats from sysfs instead of procfs (#19131) 2024-02-26 11:34:50 -08:00
dsync use typos instead of codespell (#19088) 2024-02-21 22:26:06 -08:00
etag fix: some flyby typos in the code (#19212) 2024-03-10 14:09:36 -07:00
event Add a warning when the total size of an object versions exceeds 1 TiB (#19435) 2024-04-08 10:45:03 -07:00
fips disable builds for go1.18 (#16332) 2022-12-30 11:37:07 -08:00
grid logging: Add subsystem to log API (#19002) 2024-04-04 05:04:40 -07:00
handlers send proper IPv6 names avoid bracketing notation (#18699) 2023-12-21 16:56:55 -08:00
hash logging: Add subsystem to log API (#19002) 2024-04-04 05:04:40 -07:00
http Enable replication of SSE-C objects (#19107) 2024-03-28 10:44:56 -07:00
init force all internal MinIO operations to be under UTC (#16009) 2022-11-04 16:44:38 -07:00
ioutil fix: increase the tiering part size to 128MiB (#19424) 2024-04-08 02:22:27 -07:00
jwt allow JWT parsing on large session policy based tokens (#17167) 2023-05-09 00:53:08 -07:00
kms Use GetDuration() helper for MINIO_KMS_KEY_CACHE_INTERVAL as time.Duration (#19512) 2024-04-16 08:43:39 -07:00
lock fix: linter errors in Windows specific code (#18276) 2023-10-18 11:08:15 -07:00
logger logging: Add subsystem to log API (#19002) 2024-04-04 05:04:40 -07:00
lsync cleanup Go linter settings (#16736) 2023-03-04 20:57:35 -08:00
mcontext Add X-Amz-Request-Id to internode calls (#16146) 2022-12-06 09:27:26 -08:00
mountinfo add codespell action (#18818) 2024-01-17 23:03:17 -08:00
net fix: return error when requested interface has no stats available (#17666) 2023-07-17 01:14:01 -07:00
once Support persistent queue store for loggers (#17121) 2023-05-08 21:20:31 -07:00
pubsub Fix tracing send on closed channel (#18982) 2024-02-06 08:57:30 -08:00
rest logging: Add subsystem to log API (#19002) 2024-04-04 05:04:40 -07:00
s3select use typos instead of codespell (#19088) 2024-02-21 22:26:06 -08:00
store Webhook targets refactor and bug fixes (#19275) 2024-03-25 09:44:20 -07:00