Gateway CRD accepts both credentialName and tlsCertificates in server TLS settings
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Estancado
- Stack tecnológico
- go, kubernetes
- Área
- api, networking
Línea de trabajo
The issue names the ServerTLSSettings validation rule and kubernetes/customresourcedefinitions.gen.yaml; it also says the same expression appears in Gateway and Sidecar CRDs for v1alpha3, v1beta1, and v1. Start by checking the rule against the field documentation and the matching istiod webhook validation. Done means the API server rejects a server setting both credentialName and tlsCertificates, with the expected message.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Bug description
The ServerTLSSettings CEL rule with the message only one of credentialName or tlsCertificates can be set checks the wrong field:
// +kubebuilder:validation:XValidation:message="only one of credentialName or tlsCertificates can be set",rule="oneof(self.credentialNames, self.tlsCertificates)"
It checks credentialNames (plural), which duplicates the first rule (credentialNames or tlsCertificates). The generated CRDs for Gateway and Sidecar (v1alpha3, v1beta1, v1) carry the same expression.
The CRD schema accepts a server that sets both credentialName and tlsCertificates.
Affected product area (please put an X in all that apply)
[ ] Configuration Infrastructure
[ ] Docs
[ ] Installation
[x] Networking
[ ] Performance and Scalability
[ ] Policies and Telemetry
[ ] Security
[ ] Test and Release
[x] User Experience
Expected behavior
The API server rejects the object with only one of credentialName or tlsCertificates can be set, matching the field documentation and the istiod webhook (only one of credential_name, credential_names, server_certificate/private_key, tls_certificates should be specified).
Steps to reproduce the bug
Apply this Gateway to a cluster with the Istio CRDs and without the istiod validation webhook (or validate it against kubernetes/customresourcedefinitions.gen.yaml):
apiVersion: networking.istio.io/v1
kind: Gateway
metadata:
name: credential-name-and-tls-certificates
spec:
servers:
- port:
number: 443
name: https
protocol: HTTPS
hosts:
- "*"
tls:
mode: SIMPLE
credentialName: foo
tlsCertificates:
- serverCertificate: /etc/certs/cert.pem
privateKey: /etc/certs/key.pem
Version (include the output of istioctl version --remote and kubectl version)
istio/api master (350fa9c). Introduced with tlsCertificates in istio/api#3466 and present on master.
How was Istio installed?
Not applicable. The rule lives in kubernetes/customresourcedefinitions.gen.yaml.
Environment where bug was observed (cloud vendor, OS, etc)
Not applicable.
- Lenguaje dominante
- Go
- Estrellas
- 523
- Forks
- 623
- Merge medio
- 5 d 20 h
- PR fusionados (30 d)
- 4
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de istio/api
-
area/user experience kind/docs kind/enhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 40/100
Los mantenedores suelen responder en 1 día
-
area/networking area/user experience kind/docs kind/enhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 45/100
Los mantenedores suelen responder en 1 día
-
[release-1.29] change default of statsCompression to trueQuizá libre de nuevo @keithmattix la tomó hace 304 días y no hay ningún pull request abierto. Abierto
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
istio/api#3638 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 25/100
istio/api#3603 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Issues similares
-
bug raised-by:verifier to:worker
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
medici-finance/assay#7835 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
golang-malawi/qatarina#496 ·
Los mantenedores suelen responder en 2 días
-
hive size:simple
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
janitor: 2026-11-27 hygieneAbiertodocumentation stage:review
Dificultad 1/5 1-3 horas Aptitud para principiantes 70/100
Los mantenedores suelen responder en 1 día
-
Type/Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
wso2/identity-customer-data-service#430 ·
Los mantenedores suelen responder en 1 día