The MinIO Access Management Plugin provides a REST interface for offloading authorization through a webhook service.
Once enabled, MinIO sends the request and credential details for every API call to the configured external HTTP(S) endpoint and looks for a response of ALLOW or DENY. MinIO can therefore delegate the access management to the external system instead of relying on S3 policy based access control.
Configuration Settings
You can configure the MinIO External Access Management Plugin using the following environment variables or configuration settings.
MINIO_POLICY_PLUGIN_URL="https://external-authz.example.net:8080/authz"# All other envvars are optionalMINIO_POLICY_PLUGIN_AUTH_TOKEN="Bearer TOKEN"MINIO_POLICY_PLUGIN_ENABLE_HTTP2="OFF"MINIO_POLICY_PLUGIN_COMMENT="External Access Management using PROVIDER"
Configuration Settings
Set the following configuration settings using the mc admin config set command:
mc admin config set policy_plugin \
url="https://external-authz.example.net:8080/authz"\
# All other config settings are optionalauth_token="Bearer TOKEN"\
enable_http2="off"\
comment="External Access Management using PROVIDER"
Authentication and Authorization Flow
The login flow for an application is as follows:
The client includes authentication information as part of performing the API call
The configured Identity Manager authenticates the client
MinIO makes a POST call to the configured access management plugin URL which includes the context of the API call and authentication data
On successful authorization, the access manager returns a 200 OK response with a JSON body of either result true or "result" : { "allow" : true }:
If the access manager rejects the authorization request, MinIO automatically blocks and denies the API call.
Request Body Example
The following JSON resembles the request body sent as part of the POST to the configured access manager webhook.