Commit 0f8086c
fix: accept private_dns_zone_id from the Bleu national partner cloud (#758)
* fix: accept private_dns_zone_id from the Bleu national partner cloud
* fix: use RFC-compliant DNS label pattern for private_dns_zone_id validation
Replace the broad [a-z0-9.\-]+ suffix pattern from PR #748 with a stricter
RFC 952/1123 DNS label pattern that correctly rejects:
- trailing dots (e.g. privatelink.eastus.azmk8s.io.)
- consecutive dots (e.g. privatelink.eastus.azmk8s..io)
- leading/trailing hyphens in labels (e.g. -foo, foo-)
- single-hyphen labels (e.g. -)
The new pattern [a-z0-9](?:[a-z0-9-]*[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)+
enforces that each DNS label starts and ends with alphanumeric characters,
while still accepting all valid cloud suffixes (azmk8s.io, cx.prod-aks.sovcloud-api.fr, etc.).
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: benmille <benmille@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 008c2f5 commit 0f8086c
2 files changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
730 | 730 | | |
731 | 731 | | |
732 | 732 | | |
733 | | - | |
| 733 | + | |
734 | 734 | | |
735 | 735 | | |
736 | 736 | | |
| |||
0 commit comments