Skip to content

bucket notifications configuration inconsistency #2792

@kinikiti

Description

@kinikiti

For the bucket you can configure event collector with different events.
For example:
mc event add host/bucket arn:minio:sqs::ECK:elasticsearch --event put,get,delete,replica
Those events are inconsistent in CLI and WebUI.

Expected Behavior

If you configure events like replica they have to be visible in WebUI.
If some events are not supported they need to be blocked in CLI.

Current Behavior

replica event can be configured via CLI:

mc event list host/bucket arn:minio:sqs::ECK:elasticsearch
arn:minio:sqs::ECK:elasticsearch   s3:ObjectCreated:*,s3:ObjectAccessed:*,s3:ObjectRemoved:*,s3:Replication:*   Filter:

But not visible in WebUI:
image
If you try to delete this event in WebUI you got error message and even remains:
image
WebUI don't have any "replica" to select:
image

Possible Solution

Add all supported audit events to WebUI.

Steps to Reproduce (for bugs)

  1. Create bucket.
  2. Add replica event to the event listener.
  3. Try to delete this event from WebUI

Context

Audit logging configuration for MinIO buckets.

Regression

No.

Your Environment

  • Version used (minio --version): minio/minio:RELEASE.2023-04-20T17-56-55Z
  • Server setup and configuration: OpenShift 4.11
  • Operating System and version (uname -a): RedHat CoreOS and Fedora CoreOS under OKD 4.10 and OpenShift 4.11

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions