Skip to content

cmd/k8s-operator: warn if unsupported Ingress Exact path type is used. - #10865

Merged
irbekrm merged 1 commit into
mainfrom
irbekrm/ingress_exact
Jan 16, 2024
Merged

irbekrm merged 1 commit into
mainfrom
irbekrm/ingress_exact

Conversation

@irbekrm

@irbekrm irbekrm commented Jan 16, 2024

Copy link
Copy Markdown
Contributor

Kubernetes Ingress spec defines three path types, where path type Exact is meant to have strict request path matching where, for example, if the defined path is /foo a request for /foo/bar would be rejected (in the ingress controller as I understand).

We do not currently check path types and route as per the definition of Prefix path type. I am not sure if we need to implement Exact, but if a use case arises in the future, it would be good if users didn't depend on the current behaviour for Exact- ideally they should use Prefix now and let us know if they have a use case for the strict matching of Exact.

This PR adds a warning if a path with Exact path type is found.

Updates #10730

To reduce the likelihood of breaking users,
if we implement stricter Exact path type matching in the future.

Updates #10730

Signed-off-by: Irbe Krumina <[email protected]>
@irbekrm
irbekrm requested a review from maisem January 16, 2024 16:59
@irbekrm
irbekrm merged commit 1c3c3d6 into main Jan 16, 2024
@irbekrm
irbekrm deleted the irbekrm/ingress_exact branch January 16, 2024 17:02
Asutorufa pushed a commit to Asutorufa/tailscale that referenced this pull request Jan 19, 2024
tailscale#10865)

To reduce the likelihood of breaking users,
if we implement stricter Exact path type matching in the future.

Updates tailscale#10730

Signed-off-by: Irbe Krumina <[email protected]>
chen8945 pushed a commit to Ckid-Home/tailscale that referenced this pull request Jul 31, 2024
tailscale#10865)

To reduce the likelihood of breaking users,
if we implement stricter Exact path type matching in the future.

Updates tailscale#10730

Signed-off-by: Irbe Krumina <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants