Summary
When a custom hostname is added to an HTTPProxy, a certificate resource is created for it (e.g. proxy-www-kev1n-org-https-hostname-0). If the custom hostname is later removed, the certificate resource is not cleaned up. This leaves the proxy stuck with a pending cert, which blocks TrafficProtectionPolicy from reaching Accepted: True.
Steps to Reproduce
- Create an HTTPProxy with a custom hostname (e.g.
www.kev1n.org)
- Attach a
TrafficProtectionPolicy to the gateway
- Remove the custom hostname from the proxy
- Observe the policy status remains
Accepted: False with message:
Waiting for TLS certificates to become ready: <proxy-name>-https-hostname-0
Expected Behavior
Removing a custom hostname from an HTTPProxy should garbage-collect the associated certificate resource. The policy should re-evaluate and reach Accepted: True once the hostname (and its cert dependency) is gone.
Actual Behavior
The orphaned certificate resource keeps the proxy stuck in a certificate-waiting state indefinitely. The TrafficProtectionPolicy never becomes accepted, so WAF rules are never applied even though the proxy is otherwise functional.
Workaround
Create a new proxy without the custom hostname. The policy will be accepted immediately.
Summary
When a custom hostname is added to an HTTPProxy, a certificate resource is created for it (e.g.
proxy-www-kev1n-org-https-hostname-0). If the custom hostname is later removed, the certificate resource is not cleaned up. This leaves the proxy stuck with a pending cert, which blocksTrafficProtectionPolicyfrom reachingAccepted: True.Steps to Reproduce
www.kev1n.org)TrafficProtectionPolicyto the gatewayAccepted: Falsewith message:Expected Behavior
Removing a custom hostname from an HTTPProxy should garbage-collect the associated certificate resource. The policy should re-evaluate and reach
Accepted: Trueonce the hostname (and its cert dependency) is gone.Actual Behavior
The orphaned certificate resource keeps the proxy stuck in a certificate-waiting state indefinitely. The
TrafficProtectionPolicynever becomes accepted, so WAF rules are never applied even though the proxy is otherwise functional.Workaround
Create a new proxy without the custom hostname. The policy will be accepted immediately.