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

Creation of SecurityPolicy with targetSelectors fails #3901

Closed
sadovnikov opened this issue Jul 19, 2024 · 1 comment · Fixed by #3904
Closed

Creation of SecurityPolicy with targetSelectors fails #3901

sadovnikov opened this issue Jul 19, 2024 · 1 comment · Fixed by #3904
Assignees
Labels
kind/bug Something isn't working
Milestone

Comments

@sadovnikov
Copy link
Contributor

Description:

Creation of SecurityPolicy with targetSelectors only fails with the either targetRef or targetRefs must be used message

Repro steps:

Create SecurityPolicy below

apiVersion: gateway.envoyproxy.io/v1alpha1
kind: SecurityPolicy
metadata:
  labels:
    eg/namespace: reference-apps
  name: eg-fallback-oidc
  namespace: reference-apps
spec:
  oidc:
    clientID: xxxxxxxxxx
    clientSecret:
      name: oauth2-secret
    provider:
      issuer: >-
        https://login.microsoftonline.com/xxxxxxxxxx/v2.0
    scopes:
      - 'api://xxxxxxxxxx/oidc'
      - offline_access
  targetSelectors:
    - group: gateway.networking.k8s.io
      kind: HTTPRoute
      matchLabels:
        eg/namespace: reference-apps

Environment:

Version v1.1.0-rc.1, installed with the helm chart

dependencies:
- name: gateway-helm
  version: v1.1.0-rc.1
  repository: oci://docker.io/envoyproxy

It must be coming from the x-kubernetes-validation.

These CRDS are in the generated directory and I'm failing to find their source to fix the bug

@guydc guydc added kind/bug Something isn't working and removed triage labels Jul 19, 2024
@guydc guydc added this to the v1.1.0 milestone Jul 19, 2024
@guydc
Copy link
Contributor

guydc commented Jul 19, 2024

CC @liorokman

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
3 participants