Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate workload selectors? #302

Closed
alexsnaps opened this issue Nov 16, 2023 · 2 comments
Closed

Deprecate workload selectors? #302

alexsnaps opened this issue Nov 16, 2023 · 2 comments
Assignees
Labels
good first issue Good for newcomers kind/enhancement New feature or request
Milestone

Comments

@alexsnaps
Copy link
Member

alexsnaps commented Nov 16, 2023

I think with this being introduced in Istio 1.20

In this release, we have also added support for configuring Istio CRDs AuthorizationPolicy, RequestAuthentication, Telemetry and WasmPlugin for Kubernetes Gateway API via the targetRef field.

We might be able to leverage targetRef'ing the Gateway directly in our code just as well.

@alexsnaps alexsnaps added the kind/enhancement New feature or request label Nov 16, 2023
@alexsnaps alexsnaps moved this from To do to In Progress in Kuadrant Service Protection Nov 20, 2023
@alexsnaps alexsnaps assigned alexsnaps and eguzki and unassigned alexsnaps Nov 20, 2023
@alexsnaps alexsnaps added this to the v0.5.0 milestone Nov 20, 2023
@alexsnaps alexsnaps moved this to In Progress in Kuadrant Nov 20, 2023
@alexsnaps alexsnaps moved this from In Progress to Done in Kuadrant Nov 20, 2023
@alexsnaps alexsnaps moved this from Done to In Progress in Kuadrant Nov 20, 2023
@alexsnaps alexsnaps removed this from the v0.5.0 milestone Nov 22, 2023
@alexsnaps alexsnaps added this to the v0.6.0 milestone Dec 4, 2023
@alexsnaps alexsnaps moved this from In Progress to Todo in Kuadrant Dec 11, 2023
@eguzki
Copy link
Contributor

eguzki commented Dec 11, 2023

This would set Istio 1.20 as a clear minimum requirement for kuadrant. Meaning that kuadrant would not work as expected with any Istio release prior to 1.20 version.

@alexsnaps alexsnaps modified the milestones: v0.6.0, v0.7.0 Dec 12, 2023
@thomasmaas thomasmaas added the good first issue Good for newcomers label Feb 6, 2024
@KevFan
Copy link
Contributor

KevFan commented Jun 5, 2024

WasmPlugin has been updated to use targetRef as part of https://github.com/Kuadrant/kuadrant-operator/pull/612/files

Similar can be done to AuthorizationPolicy at:

iap := &istio.AuthorizationPolicy{
ObjectMeta: metav1.ObjectMeta{
Name: IstioAuthorizationPolicyName(gateway.Name, ap.GetTargetRef()),
Namespace: gateway.Namespace,
Labels: istioAuthorizationPolicyLabels(client.ObjectKeyFromObject(gateway), client.ObjectKeyFromObject(ap)),
},
Spec: istiosecurity.AuthorizationPolicy{
Action: istiosecurity.AuthorizationPolicy_CUSTOM,
Selector: kuadrantistioutils.WorkloadSelectorFromGateway(ctx, r.Client(), gateway),
ActionDetail: &istiosecurity.AuthorizationPolicy_Provider{
Provider: &istiosecurity.AuthorizationPolicy_ExtensionProvider{
Name: KuadrantExtAuthProviderName,
},
},
},
}

@KevFan KevFan moved this from Todo to In Progress in Kuadrant Jun 5, 2024
@dlaw4608 dlaw4608 mentioned this issue Jun 10, 2024
@KevFan KevFan closed this as completed Jun 17, 2024
@github-project-automation github-project-automation bot moved this from In Progress to Done in Kuadrant Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers kind/enhancement New feature or request
Projects
Status: Done
Status: In Progress
Development

No branches or pull requests

5 participants