Skip to content

Let's Encrypt validation workflow for apps #7669

Closed

Description

@DavidePrincipi

Starting from version 4.1.0, the Traefik module extends the set-route action with Let's Encrypt certificate request validation and introduces a new set-certificate action implementation with lets_encrypt:true/false parameter.

The behavior of existing actions remains unchanged. However, applications must comply with the new UX requirements: they must inform the cluster-admin user of failures and display a Traefik restart warning, as illustrated in the UI mockup.

Proposed solution

Implement the UI mockup for the following applications (from the Default repository).

For set-certificate:

  • NethVoice Proxy
  • Mail
  • Ejabberd

For set-route:

  • NethVoice
  • Kickstart
  • NethSecurity-Controller
  • Webtop
  • Nextcloud
  • Mattermost
  • Minio
  • Piler
  • Roundcubemail

Summary of Backend changes:

  1. Call set-route with lets_encrypt_check:true to enable the validation error newcert_acme_error.
  2. Call set-route with lets_encrypt_cleanup:true to trigger a Traefik restart. The UI must display the restart warning.
  3. Call set-certificate set-default-certificate. No flag is required to enable the newcert_acme_error validation.

Note for automatic actions

The import-module, clone-module, and restore-module actions must generally act like the Let's Encrypt toggle is off, because the UI generally does not implement the certificate validation during the related workflows (migration, clone/move, restoration).

See also

Activity

  1. added this to the NethServer 8.7 milestone on Oct 2, 2025
  2. changed the title [-]App Let's Encrypt validation workflow[/-] [+]Let's Encrypt validation workflow for apps[/+] on Oct 2, 2025
  3. self-assigned this
    on Oct 2, 2025
  4. moved this from ToDo to In Progress in NethServeron Oct 2, 2025
  5. DavidePrincipi commented on Oct 6, 2025

    @DavidePrincipi
    MemberAuthor

    The Traefik fix for set-default-certificate permissions is VERIFIED. Released as Traefik 4.0.1
    https://github.com/NethServer/ns8-traefik/releases/tag/4.0.1

  6. DavidePrincipi commented on Oct 7, 2025

    @DavidePrincipi
    MemberAuthor
  7. added a commit that references this issue on Oct 8, 2025
  8. 19 remaining items

  9. mrmarkuz commented on Oct 24, 2025

    @mrmarkuz
    Member

    WebTop tests verified

    case 1 WebTop upgrade verified

    case 2 WebTop install verified

    case 3 WebTop clone to other node verified

    • The certificate is not set to obsolete on the TLS cert page but I think that's right because it was a clone and not a move
    • The cloned WebTop has Lets encrypt disabled
    • Requesting a cert for the cloned WebTop worked and it is shown correctly on the TLS cert page

    The cloned WebTop instance throws an error but it's working as expected:

    Oct 24 18:09:38 mrmarkuz-node2 certificate-exporter[70359]: Failed to parse JSON file acme/acme.json.acmejson-notify: [Errno 2] No such file or directory: 'acme/acme.json.acmejson-notify'
    

    case 3a WebTop move verified

    • On move the cert of the deleted instance is obsolete

    case 4 WebTop backup verified

    • The certificate is not set to obsolete on the TLS cert page but I think that's right because it was a restore and the original webtop instance is still there

    case 5 WebTop removal verified by Davide

    Note:

    "Delete obsolete certs" modal is shown forever due to traefik restart I guess:

    Image

    After page refresh everything is alright.

  10. mrmarkuz commented on Oct 24, 2025

    @mrmarkuz
    Member

    case 1 Ejabberd upgrade verified

    case 2 Ejabberd install verified by Davide

    case 3 Ejabberd clone to other node verified

    case 4 Ejabberd backup verified by Davide

    case 5 Ejabberd removal verified

    • Ejabberd has no traefik routes
  11. added
    verified
    on Oct 24, 2025
  12. removed their assignment
    on Oct 24, 2025
  13. removed
    testing
    on Oct 24, 2025
  14. moved this from Testing to Verified in NethServeron Oct 24, 2025
  15. removed their assignment
    on Oct 27, 2025
  16. moved this from Verified to Done in NethServeron Oct 28, 2025
  17. added a commit that references this issue on Dec 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    verified

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions