mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-30 04:06:34 +09:00
A port such as "80-90" fell through to the named-port check and was refused because it "must contain at least one letter", which says nothing about the actual limit: a SecurityGroup port carries one port, and Cilium's endPort is not exposed. FQDN selectors were only checked for being non-empty. A malformed matchName or matchPattern passed validation and was then refused by the CiliumNetworkPolicy CRD on the backing write, so the tenant got a schema error about an object they never wrote. Apply the CRD's own rules instead: its two patterns, its 255-character limit, and its oneOf between matchName and matchPattern. Fixes #5130 Assisted-by: LLM Signed-off-by: Mattia Eleuteri <mattia@hidora.io>