Skip to content

Ejabberd support to Traefik's certificate-changed event #7408

@stephdl

Description

@stephdl

Description

Use traefik to generate the default self signed certificate, like the LE certificate

Proposed solution

Introduce a certificate-changed event in ejabberd, triggered when a new certificate is deployed via get-certificate or a similar mechanism. This event should:

Allow custom hooks or modules to subscribe and act upon it (e.g., reload listeners, log, or notify admins).

Optionally trigger TLS context reloads for affected listeners without requiring a full restart.

This aligns with changes made in NethServer when upgrading to Core 3.6.0, where an event handler was added for certificate-changed to facilitate automated service updates.

Alternative solutions

Do nothing and continue to use the selfsigned certificate created by ejabberd

Additional context

This feature is already being used in production in NethServer-based systems with custom logic, and integrating it upstream would benefit a broader community.

Metadata

Metadata

Assignees

Labels

verifiedAll test cases were verified successfully

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions