You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TLS certificates page: Settings tab with ACME challenge type selection #8099
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.
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.
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.
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.
Activity
stephdl commentedon Aug 4, 2026
lucia private talk
TLS certificates page: ACME settings tab with challenge type selection (
stephdl commentedon Aug 28, 2026
QA — core 3.22.0-dev.9 — TLS certificates page, ACME settings tab (UI)
Scope: UI only. The PR merges the former
ACME serverspage into the TLS certificates page as a second tab, exposes the ACME challenge type, and makes the ACME tab survive the Traefik restart triggered byset-acme-server. No backend change:set-acme-serveralready validatedchallenge,get-acme-serveralready 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-certificates1. Preconditions
core:3.22.0-dev.9api-cli run module/traefik<N>/get-acme-serverOne node covers everything except the four checks marked 2 nodes.
Part A — Navigation
2. Tabs and redirect
/settings/tls-certificatesselects the Certificates tab?view=acme?view=nonsensefalls back to Certificates, no tab is left closed/settings/acme-serversredirects to/settings/tls-certificates?view=acmePart B — ACME settings table
3. Display
get-acme-servertask. Check withjournalctl _UID=$(id -u traefik1): nothing until you open the ACME tab, then oneget-acme-serverrunNode 1 (traefik1), with the columns Node, ACME directory URL, Challenge typeHTTP-01, purple forTLS-ALPN-01api-cli run module/traefik<N>/get-acme-serverget-acme-server4. Error handling — 2 nodes
Part C — Edit ACME settings
5. Modal
HTTP-01andTLS-ALPN-01,DNS-01is not offered, and the current value is preselectednot a urland save: the task is rejected and the error lands on the URL field6. Save and Traefik restart
This is the part the PR is really about, so run it carefully.
TLS-ALPN-01and saveapi-cli run module/traefik<N>/get-acme-serverreturns the new challenge7. Email preservation
The modal does not display the email, so it has to send back the stored one.
get-acme-serverstill reports the same email afterwards8. Node that does not report a challenge type
Only if a node still runs a Traefik whose
get-acme-serverreturns nochallenge. Skip otherwise.get-acme-serverreports no challenge afterwardsPart D — Certificates tab
Moved code, not rewritten. Needs a node with at least one certificate.
Known, not a failure
ftp://example.com/dirpasses the modal and the backend, whose schema only asks forformat: uri, and is stored. Pre-existing, not this PR.TLS certificates page: report offline nodes in ACME settings tab (#1311)
nrauso commentedon Sep 16, 2026
test cases VERIFIED
DavidePrincipi commentedon Sep 18, 2026
Released https://github.com/NethServer/ns8-core/releases/tag/3.22.0