What is the expected behavior for implementations that do not support BackendTLSPolicy? #3269
Replies: 3 comments 4 replies
-
Maybe a Policy could have a status reflecting that it is unimplemented? https://github.com/kubernetes-sigs/gateway-api/blob/main/apis/v1alpha2/policy_types.go#L130-L141 shows that we don't currently have a Policy status condition that reflects "Unimplemented", or even "Unknown". Hopefully the "Accepted" status is not the default, and perhaps a Policy should begin in the "Unimplemented" or "Unknown" state. cc: @arkodg @skriss @sunjayBhatia @kate-osborn as contacts for implementations that support BackendTLSPolicy. I'm against the Default Handling option, and I think if we have the Status reporting we wouldn't need to do Request Rejection. |
Beta Was this translation helpful? Give feedback.
-
One challenge is any solution that requires an implementation to watch it can only really apply to a v1 resource |
Beta Was this translation helpful? Give feedback.
-
Thanks for raising this @whitneygriffith! I think we should follow the guidance here and reject requests to a Service if a BackendTLSPolicy is attached but the Gateway can't support it: gateway-api/apis/v1/httproute_types.go Lines 257 to 261 in 6446fac As @howardjohn mentions above, we can only require this behavior when the policy graduates to v1, but ideally we can add the test before and make it opt-in to start (via a supported feature). |
Beta Was this translation helpful? Give feedback.
-
Following up on Rob's comment in slack to inform the conformance tests for BackendTLSPolicy #3138
What are your thoughts on what should happen when an implementation does not support BackendTLSPolicy yet a request is sent to a service that has a BackendTLSPolicy attached to it? What should conformant implementations do if they choose to not implement BackendTLSPolicy?
I agree with Rob that there's no way to ignore BackendTLSPolicy in this world, you need to at least watch it, and then you can either implement it or reject services it's attached to.
Some food for thought are:
cc: @robscott @candita @youngnick @mikemorris
Beta Was this translation helpful? Give feedback.
All reactions