linkerd2/policy-controller
Alex Leong f04edae759
policy: Add HTTPRoute indexing (#8795)
linkerd2-proxy-api v0.6.0 adds support for inbound proxies to discover
route configurations based on the Gateway API HTTPRoute types. This
change updates the policy controller to index
`gateway.networking.k8s.io/v1beta` `HTTPRoute` types to discover these
policies from the Kubernetes API.

`HTTPRoute` resources may target `Server` resources (as a `parentRef`)
to attach policies to an inbound proxy. When no routes are configured,
a default route is synthesized to allow traffic; but when at least one
route attaches to a server, only requests that match a route are
permitted (other requests are failed with a 404).

Only the *core* subset of the `HTTPRoute` filters are supported:
`RequestRedirect` and `RequestHeaderModifier`. Backends may *not* be
configured on these routes (since they may only apply to inbound/server-
side proxies). No `status` updates are currently performed on these
`HTTPRoute` resources.

This change does not yet allow `AuthorizationPolicy` resources to target
`HTTPRoute` resources. This will be added in a follow-up change.

Signed-off-by: Alex Leong <alex@buoyant.io>
Co-authored-by: Oliver Gould <ver@buoyant.io>
2022-07-14 09:04:48 -07:00
..
core policy: Add HTTPRoute indexing (#8795) 2022-07-14 09:04:48 -07:00
grpc policy: Add HTTPRoute indexing (#8795) 2022-07-14 09:04:48 -07:00
k8s policy: Add HTTPRoute indexing (#8795) 2022-07-14 09:04:48 -07:00
src policy: Add HTTPRoute indexing (#8795) 2022-07-14 09:04:48 -07:00
.dockerignore Import the linkerd-policy-controller (#6485) 2021-08-11 12:56:12 -07:00
Cargo.toml policy: Add HTTPRoute indexing (#8795) 2022-07-14 09:04:48 -07:00
amd64.dockerfile dev: Update build tooling (#8883) 2022-07-14 08:27:44 -07:00
arm.dockerfile dev: Update build tooling (#8883) 2022-07-14 08:27:44 -07:00
arm64.dockerfile dev: Update build tooling (#8883) 2022-07-14 08:27:44 -07:00