-
Notifications
You must be signed in to change notification settings - Fork 556
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
mc admin accesskey: --expiry-duration accepts only time units (up to hours) #5100
Comments
You specify 720hr, 30d is not a time.Duration supported format - thats why the flag says |
where is it documented? |
@harshavardhana https://min.io/docs/minio/linux/reference/minio-mc-admin/mc-admin-accesskey-create.html#command-mc.admin.accesskey.create:~:text=expiry%2Dduration.-,%2D%2Dexpiry%2Dduration,-Optional This might be an expected behavior, but I'm not sure it's correct to close the issue while documentation is providing an incorrect example. |
@ravindk89 we need to fix this, valid time units for duration are always
|
Expected behavior
As per documentation, --expiry-duration should accept also days (--expiry-duration)
Actual behavior
When passing 30d, the parameter is ignored:
Though it works well with hours, for example:
Steps to reproduce the behavior
Run
mc admin accesskey create myminio/ minio_user --expiry-duration 30d
mc --version
Runtime: go1.22.8 linux/amd64
Copyright (c) 2015-2024 MinIO, Inc.
License GNU AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html
System information
The text was updated successfully, but these errors were encountered: