sunwenbo opened a new issue, #2599:
URL: https://github.com/apache/apisix-ingress-controller/issues/2599

   ### Current Behavior
   
   `root@10-55-2-40:~/apisix-test/nginx# kubectl explain 
ApisixConsumer.spec.authParameter.jwtAuth.value.
   GROUP:      apisix.apache.org
   KIND:       ApisixConsumer
   VERSION:    v2
   
   FIELD: value <Object>
   
   DESCRIPTION:
       ApisixConsumerJwtAuthValue defines the in-place configuration for jwt 
auth.
       
   FIELDS:
     algorithm     <string>
       <no description>
   
     base64_secret <boolean>
       <no description>
   
     exp   <integer>
       <no description>
   
     key   <string> -required-
       <no description>
   
     lifetime_grace_period <integer>
       <no description>
   
     private_key   <string> -required-
       <no description>
   
     public_key    <string>
       <no description>
   
     secret        <string>
       <no description>
   
   
   root@10-55-2-40:~/apisix-test/nginx# kubectl  apply -f jwt.yaml  
   The ApisixConsumer "apisix-jwtauth" is invalid: 
spec.authParameter.jwtAuth.value.private_key: Required value
   root@10-55-2-40:~/apisix-test/nginx# cat jwt.yaml 
   apiVersion: apisix.apache.org/v2
   kind: ApisixConsumer
   metadata:
     name: apisix-jwtauth
   spec:
     ingressClassName: apisix
     authParameter:
       jwtAuth:
         value:
           key: jwt-key-hs256
           secret: sunwenbo
           algorithm: HS256
           base64_secret: false
           exp: 3600
           lifetime_grace_period: 60`
   
   ### Expected Behavior
   
   _No response_
   
   ### Error Logs
   
   _No response_
   
   ### Steps to Reproduce
   
   apiVersion: apisix.apache.org/v2
   kind: ApisixConsumer
   metadata:
     name: apisix-jwtauth
   spec:
     ingressClassName: apisix
     authParameter:
       jwtAuth:
         value:
           key: jwt-key-hs256
           secret: sunwenbo
           algorithm: HS256
           base64_secret: false
           exp: 3600
           lifetime_grace_period: 60
   
   ### Environment
   
   kubectl  version 
   Client Version: v1.28.15
   Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
   Server Version: v1.28.15
   
   APisix 3.13
   apisix ingerss controller 2.0.0 


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to