mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-15 01:51:45 -05:00
[GH-ISSUE #1816] State of 'Prefer Wildcard Certificate' is not persistend between restarts #10775
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ghost on GitHub (Nov 5, 2025).
Original GitHub issue: https://github.com/fosrl/pangolin/issues/1816
Originally assigned to: @oschwartz10612 on GitHub.
Describe the Bug
Set up wildcards long time ago and now see there is in UI: Domains - Domain Settings the Certificate resolver and Prefer Wildcard Certificate.
By default its state is off I think.
When set up as on (and use Save settings) it remain in this state, but only until the server reboot (or docker compose down / up -d).
Like this:
after saving preference:

after reboot:

The Certificate resolver is loaded right (Custom and the name of resolver) as the one I'm using.
Environment
To Reproduce
As in description.
The router part of the dynamic_config.yml where the wildcard domain setting is:
Side note: there is the commented, second-level, subdomain.
Migrating on to *.app.sometestdo.main from *.sometestdo.main as cannot use first-level subdomain.
Because of PTR/rDNS validation.
But afaik this make no difference, it used to be like this even before, with no commented line, on first-level subdomain.
While doing it, noticed this behavior.
Expected Behavior
I believe it should stay as user choose.
@ghost commented on GitHub (Nov 5, 2025):
Also it's unclear to me:
*.sometestdo.main -- this one is displayed (altogether with second-level domain itself) in Record Name section
*.app.sometestdo.main -- but this addition is not
Is it also bug? Or just first-level wildcard does also mean any second and more level is included automatically.
So far can't change this from the dashboard and addition is necessary in the dynamic_config.yml - just it's not 1:1 with dashboard.
@ghost commented on GitHub (Nov 6, 2025):
The prefer_wildcard_cert is never created in the config.yml
@ghost commented on GitHub (Nov 12, 2025):
Installed fresh new 1.12.2 and now there is no menu at all (still have not yet updated instance 1.12.1 - here the menu is still present).
I mean this menu:
Wildcerts are not generated despite 1.12.2 have this info in corner of the domain page:
Do not understand if this is bug or intended state.
The UI is misleading for me. Because one would expect the wild certs will be prepared for start (after set up is done in traefik_config.yml/dynamic_config.yml and API key in compose).
The Pangolin UI state (that I would expect is ruled by config/config.yml) that Wildcerts are ready, yet they are not with the DNS-01.
Or maybe the there is Docs vs UI gap.
The docs state:
Wildcard certificates allow you to secure unlimited subdomains with a single SSL certificate, eliminating the need to generate individual certificates for each subdomain.
So the description from here for wild certs is making me think that should expect to see *domain.com and *sub.domain.com certificates only instantly with the UI Pangolin default info.
Only after
prefer_wildcard_certandcert_resolverare manually added and acme.json is deleted - these certs are actually created.@oschwartz10612 commented on GitHub (Nov 22, 2025):
Tracking in #1829
In 1.12.2 we removed the menu to not allow overriding the config for "config managed domains". We dont want to introduce drift from the configuration file to what is in the database so we do not allow it. This menu will show up for domains that are created from the UI.