Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: certificate-changed event handler #409

Merged
merged 4 commits into from
Mar 28, 2025
Merged

feat: certificate-changed event handler #409

merged 4 commits into from
Mar 28, 2025

Conversation

DavidePrincipi
Copy link
Member

  • Remove the dh.pem generation: it seems not used.
  • Upgrade to Core 3.6.0: use get-certificate helper to obtain TLS certificates.
  • Define get-certificate.service unit to run obtain/generate the TLS certificate at boot.

References:

See also https://github.com/NethServer/ns8-core/blob/feat-7004/docs/modules/certificates.md#tls-for-other-applications

- Obtain or generate TLS certificate with the core helper
  "get-certificate".
- Run the helper as a .service unit that start once when the session
  boots.
- The unit starts before app services.
Replace the obsolete certificate-updated event handler with the new Core
3.6.0 event handler.

systemctl --user -T try-reload-or-restart phonebook

systemctl --user -T try-reload-or-restart nethcti-server
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: nethcti-server is a web application that shouldn't use NETHVOICE_HOST name.

@DavidePrincipi DavidePrincipi marked this pull request as ready for review March 20, 2025 16:04
@DavidePrincipi DavidePrincipi requested review from Amygos and Stell0 March 20, 2025 16:09
Code review

Co-authored-by: Matteo Valentini <[email protected]>
Copy link
Member

@Amygos Amygos Mar 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will the files in this directory and the directory itself be deleted during the upgrade procedure?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a very good question. It depends on how many module updates were applied after the core bug fix of NethServer/dev#7058 was received by each cluster.

@Amygos Amygos merged commit 75fc7db into main Mar 28, 2025
4 checks passed
@Amygos Amygos deleted the feat-7350 branch March 28, 2025 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants