Skip to content

Notifications using MQTT with certificate authentication #21624

@rajanramesh04

Description

@rajanramesh04

We are trying to test Minio notifications using MQTT and with only certificates
Our configuration looks like below

export MINIO_NOTIFY_MQTT_BROKER_mqtt1="tls://<MQTT_host>:<MQTT_Port>"
export MINIO_NOTIFY_MQTT_TOPIC_mqtt1="<topic_name>"
export MINIO_NOTIFY_MQTT_QOS_mqtt1="1"
export MINIO_NOTIFY_MQTT_PUBLIC_CERT_mqtt1="app_user.crt"
export MINIO_NOTIFY_MQTT_PRIVATE_KEY_mqtt1="app_userkey"

But when we test, Minio is throwing below error

API: SYSTEM.notify
Time: 08:10:22 UTC 10/06/2025
DeploymentID: bee27b2f-91da-426e-81b2-73be7af5afe2
Error: bad user name or password (*errors.errorString)
targetID="mqtt1:mqtt"
3: internal/logger/logonce.go:118:logger.(*logOnceType).logOnceIf()
2: internal/logger/logonce.go:149:logger.LogOnceIf()
1: internal/event/targetlist.go:291:event.(*TargetList).sendSync.func1()

Can you please provide correct notify parameters for MQTT to achieve this?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions