Skip to content

Removing custom hostname from HTTPProxy leaves orphaned certificate resource, blocking TrafficProtectionPolicy acceptance #142

@kevwilliams

Description

@kevwilliams

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

  1. Create an HTTPProxy with a custom hostname (e.g. www.kev1n.org)
  2. Attach a TrafficProtectionPolicy to the gateway
  3. Remove the custom hostname from the proxy
  4. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions