1
0
mirror of https://github.com/minio/docs.git synced 2025-07-28 19:42:10 +03:00

Add section for supported KMS actions (#1448)

Adds section to the policy based access control page for supported KMS
action keys.
Refers two existing kms related keys to the preferred `kms:` keys.

Closes #1283
This commit is contained in:
Daryl White
2025-04-04 15:37:52 -04:00
committed by GitHub
parent 71405b0d5b
commit 01c32ace46

View File

@ -754,11 +754,15 @@ services:
.. policy-action:: admin:KMSCreateKey
Allows creating a new KMS master key
While this option is still supported, :policy-action:`kms:CreateKey` is preferred.
.. policy-action:: admin:KMSKeyStatus
Allows getting KMS key status
While this option is still supported, :policy-action:`kms:KeyStatus` is preferred.
.. policy-action:: admin:ServerInfo
Allows listing server info
@ -922,6 +926,71 @@ services:
Allows access to start, query, or stop a rebalancing of objects across pools with varying free storage space.
KMS policy action keys
----------------------
MinIO supports restricting key management service (KMS) actions by policy.
You can restrict KMS activities in a policy with any of the following KMS actions:
.. policy-action:: kms:Status
Check the status of KMS.
.. policy-action:: kms:Metrics
Obtain Prometheus-formatted metrics.
.. policy-action:: kms:API
List supported API endpoints.
.. policy-action:: kms:Version
Retrieve the KMS version.
.. policy-action:: kms:CreateKey
Create a new KMS key.
.. policy-action:: kms:ListKeys
Retrieve a list of existing KMS keys.
.. policy-action:: kms:KeyStatus
Retrieve the status of a specified KMS key.
To select all of the available kms policy actions, use ``kms:*``.
.. versionchanged:: RELEASE.2024-07-16T23-46-41Z
KMS actions can be restricted by resource or a resource prefix.
The wildcard character ``*`` can be used to apply the KMS action policy to all resources that match the prefix.
For example, the following policy document allows a user to list keys, create new keys, and check the status of keys for any resource that begins with ``keys-abc-`` or ``myuser-``.
.. codeblock:: shell
:class: copyable
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"kms:CreateKey",
"kms:KeyStatus",
"kms:ListKeys"
],
"Resource": [
"arn:minio:kms:::keys-abc-*",
"arn:minio:kms:::myuser-*"
]
}
]
}
``mc admin`` Policy Condition Keys
----------------------------------