You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "ghl1024 (via GitHub)" <gi...@apache.org> on 2023/09/08 13:09:50 UTC

[GitHub] [apisix] ghl1024 opened a new issue, #10180: etcd "client-cert-auth" cannot be used with gRPC-gateway, please configure the etcd username and password in configuration file

ghl1024 opened a new issue, #10180:
URL: https://github.com/apache/apisix/issues/10180

   ### Description
   
   > Use docker-compose install etcd、apisix and apisix-dashboard, but apisix-dashboard is working, apisix not init.
   
   ## etcd-compose.yaml
   ```
   version: '3'
   
   services:
     etcd-node02:
       image: bitnami/etcd:3.5.9
       container_name: etcd-node02
       hostname: etcd-node02
       environment:
         - ETCD_NAME=etcd-node02
         - ETCD_ROOT_PASSWORD=icHFsNzdDC
         - ETCD_CLIENT_CERT_AUTH=true
         - ETCD_PEER_CLIENT_CERT_AUTH=true
         - ETCD_ADVERTISE_CLIENT_URLS=https://10.100.102.22:12379
         - ETCD_INITIAL_ADVERTISE_PEER_URLS=https://10.100.102.22:12380
         - ETCD_LISTEN_CLIENT_URLS=https://0.0.0.0:2379
         - ETCD_LISTEN_PEER_URLS=https://0.0.0.0:2380
         - ETCD_INITIAL_CLUSTER_TOKEN=etcd_cluster
         - ETCD_INITIAL_CLUSTER=etcd-node01=https://10.100.84.53:12380,etcd-node02=https://10.100.102.22:12380,etcd-node03=https://10.100.84.129:12380
         - ETCD_INITIAL_CLUSTER_STATE=new
         - ETCD_LOG_LEVEL=debug
         - ETCD_DATA_DIR=/bitnami/etcd/data
         - ETCD_HEARTBEAT_INTERVAL=1000
         - ETCD_ELECTION_TIMEOUT=5000
         - ETCD_AUTO_COMPACTION_MODE=revision
         - ETCD_AUTO_COMPACTION_RETENTION=1000
         - ETCD_SNAPSHOT-COUNT=10000
         - ETCD_QUOTA_BACKEND_BYTES=4294967296
         - ETCD_MAX_REQUEST_BYTES=20971520
         - ETCD_TRUSTED_CA_FILE=/opt/bitnami/etcd/certs/ca.crt
         - ETCD_KEY_FILE=/opt/bitnami/etcd/certs/etcd.key
         - ETCD_CERT_FILE=/opt/bitnami/etcd/certs/etcd.crt
         - ETCD_PEER_TRUSTED_CA_FILE=/opt/bitnami/etcd/certs/ca.crt
         - ETCD_PEER_KEY_FILE=/opt/bitnami/etcd/certs/etcd.key
         - ETCD_PEER_CERT_FILE=/opt/bitnami/etcd/certs/etcd.crt
       volumes:
         - /data/etcd/data:/bitnami/etcd/data
         - /data/etcd/ssl/ca.crt:/opt/bitnami/etcd/certs/ca.crt
         - /data/etcd/ssl/etcd.key:/opt/bitnami/etcd/certs/etcd.key
         - /data/etcd/ssl/etcd.crt:/opt/bitnami/etcd/certs/etcd.crt
       ports:
         - 12379:2379
         - 12380:2380
   ```
   
   ## apisix-config
   
   ```
   apisix:
     node_listen: 9080
     enable_ipv6: false
   
     enable_control: true
     control:
       ip: "0.0.0.0"
       port: 9092
     ssl:
       enable: true
       listen_port: 443
       ssl_trusted_certificate: /data/certs/ca.crt
   
   deployment:
     admin:
       allow_admin:
         - 0.0.0.0/0
   
       admin_key:
         - name: "admin"
           key: edd1c9f03d84b625c8f1
           role: admin
   
         - name: "viewer"
           key: 4346cd3f287985e76a2
           role: viewer
   
     etcd:
       host:
         - "https://10.100.84.53:12379"
         - "https://10.100.102.22:12379"
         - "https://10.100.84.129:12379"
       username: "root"
       password: "icHFsNzdDC"
       prefix: "/apisix"
       timeout: 30
       health_check_timeout: 60
       ssl_trusted_certificate: /data/certs/ca.crt
       tls:
         cert: /data/certs/etcd.crt
         key: /data/certs/etcd.key
         verify: true
   
   plugins:
     - ext-plugin-pre-req
     - api-breaker
     - authz-keycloak
     - basic-auth
     - batch-requests
     - consumer-restriction
     - cors
     # - dubbo-proxy
     - echo
     # - error-log-logger
     # - example-plugin
     - fault-injection
     - grpc-transcode
     - hmac-auth
     - http-logger
     - ip-restriction
     - jwt-auth
     - kafka-logger
     - key-auth
     - limit-conn
     - limit-count
     - limit-req
     # - log-rotate
     # - node-status
     - openid-connect
     - prometheus
     - proxy-cache
     - proxy-mirror
     - proxy-rewrite
     - redirect
     - referer-restriction
     - request-id
     - request-validation
     - response-rewrite
     - serverless-post-function
     - serverless-pre-function
     - skywalking
     - skywalking-logger
     - sls-logger
     - syslog
     - tcp-logger
     - udp-logger
     - uri-blocker
     - wolf-rbac
     # - zipkin
     - server-info
     - traffic-split
   
   plugin_attr:
     prometheus:
       export_addr:
         ip: "0.0.0.0"
         port: 9091
   ```
   
   ## logs
   
   ```
   apisix-dashboard    | The manager-api is running successfully!
   apisix-dashboard    |
   apisix-dashboard    | Version : 3.0.1
   apisix-dashboard    | GitHash : 397c0cb5
   apisix-dashboard    | Config File: /usr/local/apisix-dashboard/conf/conf.yaml
   apisix-dashboard    | Listen  : 0.0.0.0:9000
   apisix-dashboard    | Loglevel: error
   apisix-dashboard    | ErrorLogFile: /usr/local/apisix-dashboard/logs/error.log
   apisix-dashboard    | AccessLogFile: /usr/local/apisix-dashboard/logs/access.log
   apisix-dashboard    |
   apisix              | /usr/local/openresty//luajit/bin/luajit ./apisix/cli/apisix.lua init
   apisix              |
   apisix              | WARNING: using fixed Admin API token has security risk.
   apisix              | Please modify "admin_key" in conf/config.yaml .
   apisix              |
   apisix              |
   apisix              | /usr/local/openresty//luajit/bin/luajit ./apisix/cli/apisix.lua init_etcd
   apisix              | etcd "client-cert-auth" cannot be used with gRPC-gateway, please configure the etcd username and password in configuration file
   apisix exited with code 1
   ```
   
   ### Environment
   
   - **APISIX version**: apache/apisix: 3.5.0-centos
   - **Operating system**: Linux 3.10.0-1160.88.1.el7.x86_64
   - **etcd version**: bitnami/etcd:3.5.9
   - **APISIX Dashboard version**: apache/apisix-dashboard:3.0.1-centos
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix] ghl1024 closed issue #10180: etcd "client-cert-auth" cannot be used with gRPC-gateway, please configure the etcd username and password in configuration file

Posted by "ghl1024 (via GitHub)" <gi...@apache.org>.
ghl1024 closed issue #10180: etcd "client-cert-auth" cannot be used with gRPC-gateway, please configure the etcd username and password in configuration file
URL: https://github.com/apache/apisix/issues/10180


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org