mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-08 13:49:15 -05:00
[GH-ISSUE #1360] Inconsistent Subdomain Validation: Some Domains Accept Hyphens, Others Reject Them #1874
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 @diazhernawan on GitHub (Aug 27, 2025).
Original GitHub issue: https://github.com/fosrl/pangolin/issues/1360
I run into some inconsistent Subdomain Validation: Some Domains Accept Hyphens, Others Reject Them
Problem Description
Pangolin's subdomain validation behaves inconsistently across different configured domains. Some domains accept hyphenated subdomains while others reject them, despite identical configuration.
Expected Behavior
All domains configured with identical settings should have consistent subdomain validation rules.
Actual Behavior
katawarna.org,daging.co.idarkterra.id,bbfmeatshop.co.id,politekniktempo.comSteps to Reproduce
test-new-hyphen) for each domainTest Results
Working Examples (Accepted)
nextcloud.katawarna.org✓onlyoffice.katawarna.org✓test-new-tes-ts-test-tes-test.katawarna.org✓test-new-tes-ts-test-tes-test.daging.co.id✓Failing Examples (Rejected)
dev01-web-bbf.arkterra.id✗ (reverts to base domain)dev02-web.arkterra.id✗ (reverts to base domain)test-hyphen.bbfmeatshop.co.id✗ (reverts to base domain)Validation Inconsistency
Previously working subdomain
dev01-web-bbf.arkterra.idwas accepted, then later rejected when attempting to recreate it, suggesting validation rules changed during runtime.Configuration
All domains use identical DNS configuration (Cloudflare DNS-only mode, wildcard A records) and identical SSL settings.
Impact
Additional Notes
@Pallavikumarimdb commented on GitHub (Aug 29, 2025):
Hi @diazhernawan , I tested this scenario with only a wildcard domain using the patch from #1375 and was able to save all of the following without issues using dashboard:
nextcloud.katawarna.orgonlyoffice.katawarna.orgtest-new-tes-ts-test-tes-test.katawarna.orgtest-new-tes-ts-test-tes-test.daging.co.iddev01-web-bbf.arkterra.iddev02-web.arkterra.idtest-hyphen.bbfmeatshop.co.idCould you please try this patch on your setup and let me know if it resolves the issue? Also, just to clarify, are you using only wildcard A records for your DNS setup, or do you also have NS/CNAME records in place? This detail would make debugging much clearer, as I can see different domain types (ns, wildcard, cname) have slightly different validation logic in the codebase. Wildcard domains have an extra validation step that NS domains don't have.
@github-actions[bot] commented on GitHub (Sep 13, 2025):
This issue has been automatically marked as stale due to 14 days of inactivity. It will be closed in 14 days if no further activity occurs.