istio: cluster.local cert is not renewing on Istio VM
Is this the right place to submit this?
- This is not a security vulnerability or a crashing bug
- This is not a question about how to use Istio
Bug Description
I am running Istio VM which is able to connect with Istiod and generates certificate for cluster.local of 1 day expiry. Once the certificate is expired, they are not auto renewed and I have to manually replace the root-ca certificate to get new certificate for cluster.local. When I’m running it with expired certificate, envoy is able to serve traffic until there is change in cluster endpoints IPs, even though the logs says using token instead it seems like the config is not updated by istiod.
Istio logs are showing following logs:
2023-09-11T07:24:37.597659Z info xdsproxy connected to upstream XDS server: istiod-1-16-1.istio-system.svc:15012
2023-09-11T07:24:37.602596Z warn xdsproxy upstream [11531] terminated with unexpected error rpc error: code = Unauthenticated desc = authentication failure
2023-09-11T07:24:38.388719Z warn cert expired, using token instead
Version
$ istioctl version
client version: 1.13.1
control plane version: 1.16.1
data plane version: 1.16.1 (265 proxies)
$ kubectl version --short
Client Version: v1.24.16
Kustomize Version: v4.5.4
Server Version: v1.24.14-gke.1200
Additional Information
I am running the envoyproxy in router mode. mesh values:
defaultConfig:
discoveryAddress: istiod-1-16-1.istio-system.svc:15012
meshId: dummy
proxyMetadata:
CANONICAL_REVISION: latest
CANONICAL_SERVICE: envoy
ISTIO_META_AUTO_REGISTER_GROUP: envoy
ISTIO_META_CLUSTER_ID: dummy
ISTIO_META_DNS_CAPTURE: "true"
ISTIO_META_MESH_ID: dummy
ISTIO_META_NETWORK: ""
ISTIO_META_WORKLOAD_NAME: envoy
ISTIO_METAJSON_LABELS: '{"app":"envoy","service.istio.io/canonical-name":"envoy","service.istio.io/canonical-revision":"latest"}'
POD_NAMESPACE: envoy
SERVICE_ACCOUNT: envoy
TRUST_DOMAIN: cluster.local
tracing:
zipkin:
address: zipkin.istio-system:9411
cluster.env values:
CANONICAL_REVISION='latest'
CANONICAL_SERVICE='envoy'
CA_ADDR='istiod-1-16-1.istio-system.svc:15012'
ISTIO_INBOUND_PORTS='*'
ISTIO_LOCAL_EXCLUDE_PORTS='22,15090,15021,15020'
ISTIO_METAJSON_LABELS='{"app":"envoy","service.istio.io/canonical-name":"envoy","service.istio.io/canonical-revision":"latest"}'
ISTIO_META_AUTO_REGISTER_GROUP='envoy'
ISTIO_META_CLUSTER_ID='dummy'
ISTIO_META_DNS_CAPTURE='true'
ISTIO_META_MESH_ID='dummy'
ISTIO_META_NETWORK=''
ISTIO_META_WORKLOAD_NAME='envoy'
ISTIO_NAMESPACE='envoy'
ISTIO_SERVICE='envoy.envoy'
ISTIO_SERVICE_CIDR='*'
POD_NAMESPACE='envoy'
SERVICE_ACCOUNT='envoy'
TRUST_DOMAIN='cluster.local'
ISTIO_AGENT_FLAGS='router'
ISTIO_CUSTOM_IP_TABLES='true'
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 25 (10 by maintainers)
also have an issue with Istio on VM, seems that certificate is not being rotated. Any ideas why?