Skip to content

TLS certificates page: Settings tab with ACME challenge type selection #8099

Closed

Description

@DavidePrincipi

The TLS certificates page currently has an ACME servers view where each node can be configured with a custom ACME server URL. The UI does not expose the ACME challenge type, which the backend supports; administrators who need TLS-ALPN-01 (e.g. when port 80 is unavailable or filtered) must configure it outside the UI. The page navigation and table layout also need a refresh for consistency and readability.

Proposed solution

Implement the Figma mockups from design issue #7973.

Image

Recap for the UI development:

  • Replace the current navigation button with two tabs: Certificates and ACME settings
  • Restructure the settings table with columns in this order: Node, ACME directory URL, Challenge type (this also fixes the current wrong column order, node must come first)
  • Add UI support for selecting the ACME challenge type: HTTP-01 or TLS-ALPN-01
  • Update the edit modal: add the Challenge type selection, improve terminology and labels, align naming with the new Settings section

Settings are per node, as in the current ACME servers view.

Alternative solutions

None: the design was discussed and agreed in #7973 and the linked Mattermost threads.

Additional context

  • DNS-01 challenge type is intentionally out of scope for this iteration; it will be added later, when backend support and the additional configuration fields it requires are available. The challenge type selector should be easy to extend with a third option.
  • Trusted proxy settings (trusted proxy IPv4/v6 addresses + trust depth) are not part of this issue: they will be exposed under the HTTP routes page and tracked separately. Mockups for that section are still in progress.

See also

Activity

  1. added this to the NethServer 8.10 milestone on Jul 9, 2026
  2. added
    UX
    on Jul 9, 2026
  3. moved this from ToDo to In Progress in NethServeron Jul 30, 2026
  4. stephdl commented on Aug 4, 2026

    @stephdl
  5. stephdl commented on Aug 28, 2026

    @stephdl

    QA — core 3.22.0-dev.9 — TLS certificates page, ACME settings tab (UI)

    Scope: UI only. The PR merges the former ACME servers page into the TLS certificates page as a second tab, exposes the ACME challenge type, and makes the ACME tab survive the Traefik restart triggered by set-acme-server. No backend change: set-acme-server already validated challenge, get-acme-server already returned it. A rejected task therefore points at the backend, everything else at the frontend.

    The certificate table was moved to another component without being rewritten, so part D stays short. TLS-ALPN-01 issuance itself is not covered: acme.sh and Traefik are untouched by this PR, and what the UI writes is verified through get-acme-server.

    PR: NethServer/ns8-core#1257 — issue #8099

    Page under test: Settings › TLS certificates, /settings/tls-certificates

    1. Preconditions

    • Cluster running core:3.22.0-dev.9
    • Note the current settings of each node: api-cli run module/traefik<N>/get-acme-server
    • Browser console open during the whole session

    One node covers everything except the four checks marked 2 nodes.


    Part A — Navigation

    2. Tabs and redirect

    • Opening /settings/tls-certificates selects the Certificates tab
    • Clicking ACME settings switches the tab and the URL becomes ?view=acme
    • Reloading the page on either tab reopens the same tab
    • ?view=nonsense falls back to Certificates, no tab is left closed
    • /settings/acme-servers redirects to /settings/tls-certificates?view=acme
    • The old ACME servers button is gone from the Certificates tab, and no entry pointing to the removed page is left in the Settings page

    Part B — ACME settings table

    3. Display

    • The tab is only loaded when opened: staying on the Certificates tab runs no get-acme-server task. Check with journalctl _UID=$(id -u traefik1): nothing until you open the ACME tab, then one get-acme-server run
    • One row per node, labelled with its Traefik instance id, for example Node 1 (traefik1), with the columns Node, ACME directory URL, Challenge type
    • The challenge type is shown as a tag: blue for HTTP-01, purple for TLS-ALPN-01
    • The values match api-cli run module/traefik<N>/get-acme-server
    • Going back to the Certificates tab and returning duplicates no row and runs no second get-acme-server

    4. Error handling — 2 nodes

    • Stop one node, then reload the tab: the rows of the nodes that answered are still listed, with an error notification above the table
    • Bring the node back and reload: no stale error remains

    Part C — Edit ACME settings

    5. Modal

    • Click Edit on a row: the modal is titled Edit ACME settings and its first line names the node
    • A Challenge type radio group offers HTTP-01 and TLS-ALPN-01, DNS-01 is not offered, and the current value is preselected
    • A warning states that HTTP clients on that node will be briefly disconnected
    • 2 nodes — the warning appears for every node, not only the leader
    • The primary button reads Save, and Cancel closes the modal without changing anything
    • Clear the URL and save: Required, and the field gets the focus
    • Enter not a url and save: the task is rejected and the error lands on the URL field

    6. Save and Traefik restart

    This is the part the PR is really about, so run it carefully.

    • Change the challenge type to TLS-ALPN-01 and save
    • While the task runs, the radio buttons and the primary button are disabled
    • Traefik restarts and the websocket drops
    • Once the connection is back, the modal stops loading and shows Traefik restarted before the result was known. Check the ACME settings of the node and try again if needed. This is the expected outcome, not a failure: the restart cuts the request off before any task event arrives, so the UI cannot claim success. What must not happen is the modal staying stuck in loading
    • The table behind reloads by itself and shows the new challenge type as a purple tag, without a manual page reload
    • Close the modal and confirm from the shell: api-cli run module/traefik<N>/get-acme-server returns the new challenge
    • Reopen the modal: it shows the saved values, not the previous ones
    • 2 nodes — repeat on the leader and on a non-leader node: same behaviour
    • 2 nodes — the other rows keep their own challenge type, and changing the URL on one node leaves the others untouched

    7. Email preservation

    The modal does not display the email, so it has to send back the stored one.

    • On a node whose ACME settings carry an email, save a change from the modal
    • get-acme-server still reports the same email afterwards

    8. Node that does not report a challenge type

    Only if a node still runs a Traefik whose get-acme-server returns no challenge. Skip otherwise.

    • The radio group is hidden for that node
    • Saving a URL change still works, and get-acme-server reports no challenge afterwards

    Part D — Certificates tab

    Moved code, not rewritten. Needs a node with at least one certificate.

    • The certificate list, its node filter and its pagination work as before
    • Revoke a certificate: Traefik restarts, and after reconnection the table reloads on its own, without a manual page reload

    Known, not a failure

    • The Traefik restarted before the result was known message of section 6.
    • The ACME directory URL accepts any scheme: ftp://example.com/dir passes the modal and the backend, whose schema only asks for format: uri, and is stored. Pre-existing, not this PR.
    • The challenge type cannot be left empty from the UI, so its Required error is unreachable by hand.
    • Uploading a test certificate to populate part D needs a chain trusted by the node, and the chain must be inside the certificate file — the separate Chain file field does not satisfy the check.
  6. moved this from In Progress to Testing in NethServeron Aug 28, 2026
  7. removed their assignment
    on Aug 28, 2026
  8. added
    testing
    on Aug 28, 2026
  9. self-assigned this
    on Sep 15, 2026
  10. added
    verified
    on Sep 16, 2026
  11. removed
    testing
    on Sep 16, 2026
  12. nrauso commented on Sep 16, 2026

    @nrauso

    test cases VERIFIED

  13. moved this from Testing to Verified in NethServeron Sep 16, 2026
  14. DavidePrincipi commented on Sep 18, 2026

    @DavidePrincipi
    MemberAuthor
  15. moved this from Verified to Done in NethServeron Sep 18, 2026
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

    UXverified

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions