Gateway CRD accepts both credentialName and tlsCertificates in server TLS settings
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Ferma
- Stack tecnologico
- go, kubernetes
- Ambito
- api, networking
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Go
- Stelle
- 523
- Fork
- 623
- Merge medio
- 5g 20h
- PR unite (30g)
- 4
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di istio/api
-
area/user experience kind/docs kind/enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 40/100
I maintainer di solito rispondono entro 1 giorno
-
area/networking area/user experience kind/docs kind/enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 45/100
I maintainer di solito rispondono entro 1 giorno
-
[release-1.29] change default of statsCompression to trueForse di nuovo libera @keithmattix l’ha presa 304 giorni fa e non c’è nessuna pull request aperta. Aperta
istio/api#3642 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 25/100
I maintainer di solito rispondono entro 1 giorno
Issue simili
-
bug raised-by:verifier to:worker
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
medici-finance/assay#7835 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
golang-malawi/qatarina#496 ·
I maintainer di solito rispondono entro 2 giorni
-
hive size:simple
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
janitor: 2026-11-27 hygieneApertadocumentation stage:review
Difficoltà 1/5 1-3 ore Idoneità per principianti 70/100
I maintainer di solito rispondono entro 1 giorno
-
Type/Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
wso2/identity-customer-data-service#430 ·
I maintainer di solito rispondono entro 1 giorno