From a977aeb482d65a01065422ced8b16a2023d6daae Mon Sep 17 00:00:00 2001 From: zhijian Date: Mon, 23 Sep 2024 17:30:28 +0800 Subject: [PATCH] doc: add note for gateway AssumeRole api (#5184) Co-authored-by: Caitin <34535727+CaitinChen@users.noreply.github.com> --- docs/en/guide/gateway.md | 4 ++++ docs/zh_cn/guide/gateway.md | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/docs/en/guide/gateway.md b/docs/en/guide/gateway.md index 560756b97944..1cc3a524a51e 100644 --- a/docs/en/guide/gateway.md +++ b/docs/en/guide/gateway.md @@ -380,6 +380,10 @@ http://minio:9000/?Action=AssumeRole&DurationSeconds=3600&Version=2011-06-15&Pol See the [MinIO official example program](https://github.com/minio/minio/blob/master/docs/sts/assume-role.go). +:::note +Superusers defined by environment variables cannot use AssumeRole APIs; only users added by `mc admin user add` can use AssumeRole APIs. +::: + #### Permission management By default, newly created users have no permissions and need to be granted permissions using `mc admin policy` before they can be used. This command supports adding, deleting, updating, and listing policies, as well as adding, deleting, and updating permissions for users. diff --git a/docs/zh_cn/guide/gateway.md b/docs/zh_cn/guide/gateway.md index fdbef41b1dc2..16e61a0ca0db 100644 --- a/docs/zh_cn/guide/gateway.md +++ b/docs/zh_cn/guide/gateway.md @@ -382,6 +382,10 @@ http://minio:9000/?Action=AssumeRole&DurationSeconds=3600&Version=2011-06-15&Pol 请参考 MinIO 官方[示例程序](https://github.com/minio/minio/blob/master/docs/sts/assume-role.go) +:::note 注意 +环境变量设置的超级用户无法使用 AssumeRole API,只有通过 `mc admin user add` 添加的用户才能使用 AssumeRole API。 +::: + #### 权限管理 默认新创建的用户是没有任何权限的,需要使用 `mc admin policy` 为其赋权后才可使用。该命令支持权限的增删改查以及为用户添加删除更新权限。