Skip to content

Server error when MINIO_KMS_SECRET_KEY set on Encryption page #3192

@cesnietor

Description

@cesnietor

In Web UI, when configuring minio setting only the MINIO_KMS_SECRET_KEY, the Encryption section tries to perform /metrics, /apis and /version API requests but since the static key has no version nor metrics nor list apis, they return 500 error.

Expected Behavior

No error

Current Behavior

Screenshot 2024-01-16 at 2 54 48 PM

Possible Solution

In server add api to validate if MINIO_KMS_SECRET_KEY is set, if so don't enable the APIs and Metrics section and not perform the /metrics, /apis nor /version requests.

Steps to Reproduce (for bugs)

  1. export MINIO_KMS_SECRET_KEY=my-minio-key:OSMM+vkKUTCvQs9YL/CVMIMt43HFhkUpqJxTmGl6rYw=

  2. Run MinIO like

MINIO_STS_DURATION=17m ./minio server ~/Data
  1. Go to Monitoring/Encryption (Error happens here.)

Context

#3189

Regression

Your Environment

  • MinIO version used (minio --version): RELEASE.2024-01-16T16-07-38Z

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions