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

[GitHub] [apisix] yongling0625 opened a new issue, #9035: bug: The client_secret field of the keycloak plug-in cannot be encrypted

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

   ### Current Behavior
   
   2023/03/08 07:00:29 [warn] 54#54: *95 [lua] plugin.lua:895: decrypt_conf(): failed to decrypt the conf of plugin [authz-keycloak] key [client_secret], err: decrypt ssl key failed, context: ngx.timer
   2023/03/08 07:00:29 [warn] 51#51: *107 [lua] plugin.lua:895: decrypt_conf(): failed to decrypt the conf of plugin [authz-keycloak] key [client_secret], err: decrypt ssl key failed, context: ngx.timer
   2023/03/08 07:00:29 [warn] 89#89: *320 [lua] plugin.lua:895: decrypt_conf(): failed to decrypt the conf of plugin [authz-keycloak] key [client_secret], err: decrypt ssl key failed, context: ngx.timer
   2023/03/08 07:00:29 [warn] 94#94: *121 [lua] plugin.lua:895: decrypt_conf(): failed to decrypt the conf of plugin [authz-keycloak] key [client_secret], err: decrypt ssl key failed, context: ngx.timer
   2023/03/08 07:00:29 [warn] 59#59: *407 [lua] plugin.lua:895: decrypt_conf(): failed to decrypt the conf of plugin [authz-keycloak] key [client_secret], err: decrypt ssl key failed, context: ngx.timer
   2023/03/08 07:00:29 [warn] 49#49: *217 [lua] plugin.lua:895: decrypt_conf(): failed to decrypt the conf of plugin [authz-keycloak] key [client_secret], err: decrypt ssl key failed, context: ngx.timer
   2023/03/08 07:00:29 [warn] 55#55: *400 [lua] plugin.lua:895: decrypt_conf(): failed to decrypt the conf of plugin [authz-keycloak] key [client_secret], err: decrypt ssl key failed, context: ngx.timer
   2023/03/08 07:00:29 [warn] 53#53: *218 [lua] plugin.lua:895: decrypt_conf(): failed to decrypt the conf of plugin [authz-keycloak] key [client_secret], err: decrypt ssl key failed, context: ngx.timer
   2023/03/08 07:00:29 [warn] 50#50: *27 [lua] plugin.lua:895: decrypt_conf(): failed to decrypt the conf of plugin [authz-keycloak] key [client_secret], err: decrypt ssl key failed, context: ngx.timer
   2023/03/08 07:00:29 [warn] 56#56: *193 [lua] plugin.lua:895: decrypt_conf(): failed to decrypt the conf of plugin [authz-keycloak] key [client_secret], err: decrypt ssl key failed, context: ngx.timer
   2023/03/08 07:00:29 [warn] 120#120: *268 [lua] plugin.lua:895: decrypt_conf(): failed to decrypt the conf of plugin [authz-keycloak] key [client_secret], err: decrypt ssl key failed, context: ngx.timer
   2023/03/08 07:00:29 [warn] 65#65: *344 [lua] plugin.lua:895: decrypt_conf(): failed to decrypt the conf of plugin [authz-keycloak] key [client_secret], err: decrypt ssl key failed, context: ngx.timer
   2023/03/08 07:00:29 [warn] 84#84: *280 [lua] plugin.lua:895: decrypt_conf(): failed to decrypt the conf of plugin [authz-keycloak] key [client_secret], err: decrypt ssl key failed, context: ngx.timer
   2023/03/08 07:00:29 [warn] 52#52: *449 [lua] plugin.lua:895: decrypt_conf(): failed to decrypt the conf of plugin [authz-keycloak] key [client_secret], err: decrypt ssl key failed, context: ngx.timer
   2023/03/08 07:00:29 [warn] 48#48: *42 [lua] plugin.lua:895: decrypt_conf(): failed to decrypt the conf of plugin [authz-keycloak] key [client_secret], err: decrypt ssl key failed, context: ngx.timer
   2023/03/08 07:00:29 [warn] 62#62: *120 [lua] plugin.lua:895: decrypt_conf(): failed to decrypt the conf of plugin [authz-keycloak] key [client_secret], err: decrypt ssl key failed, context: ngx.timer
   2023/03/08 07:00:29 [warn] 70#70: *370 [lua] plugin.lua:895: decrypt_conf(): failed to decrypt the conf of plugin [authz-keycloak] key [client_secret], err: decrypt ssl key failed, context: ngx.timer
   
   ### Expected Behavior
   
   client_secret is properly encrypted
   
   ### Error Logs
   
   2023/03/08 07:00:29 [warn] 54#54: *95 [lua] plugin.lua:895: decrypt_conf(): failed to decrypt the conf of plugin [authz-keycloak] key [client_secret], err: decrypt ssl key failed, context: ngx.timer
   
   ### Steps to Reproduce
   
   1.  git  clone  https://github.com/apache/apisix-docker.git
   2. cd  apisix-docker/example/apisix_conf
   3. vi conf.yaml  
   apisix:  
     data_encryption:
       enable: true
       keyring:
           - edd1c9f0985e76a2
           - qeddd145sfvddff4
    5. add router and enable authz-keycloak 
   
   ### Environment
   
   - APISIX version (run `apisix version`):  3.1.0-centos  or 3.2.0-centos
   - Operating system (run `uname -a`):  centos 7 
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
   - etcd version, if relevant (run `curl http://127.0.0.1:9090/v1/server_info`):
   - APISIX Dashboard version, if relevant:
   - Plugin runner version, for issues related to plugin runners:
   - LuaRocks version, for installation issues (run `luarocks --version`):
   


-- 
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] yongling0625 commented on issue #9035: bug: The client_secret field of the keycloak plug-in cannot be encrypted

Posted by "yongling0625 (via GitHub)" <gi...@apache.org>.
yongling0625 commented on issue #9035:
URL: https://github.com/apache/apisix/issues/9035#issuecomment-1461583163

   ![image](https://user-images.githubusercontent.com/17958032/223967771-e1b8620a-5077-400c-a69e-7efedd0f55bf.png)
   ![image](https://user-images.githubusercontent.com/17958032/223968043-f4be9f7f-a416-4b6d-ae27-52a431bbf39d.png)
   
   As shown in the image above, I reset it with apisix dashboard, but the client_secret is still stored in plain text


-- 
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


[GitHub] [apisix] monkeyDluffy6017 commented on issue #9035: bug: The client_secret field of the keycloak plug-in cannot be encrypted

Posted by "monkeyDluffy6017 (via GitHub)" <gi...@apache.org>.
monkeyDluffy6017 commented on issue #9035:
URL: https://github.com/apache/apisix/issues/9035#issuecomment-1461585809

   Use the `curl` command instead of dashboard, dashboard won't encrypt the data


-- 
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


[GitHub] [apisix] yongling0625 commented on issue #9035: bug: The client_secret field of the keycloak plug-in cannot be encrypted

Posted by "yongling0625 (via GitHub)" <gi...@apache.org>.
yongling0625 commented on issue #9035:
URL: https://github.com/apache/apisix/issues/9035#issuecomment-1461603025

   The data is encrypted. Thank you.


-- 
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


[GitHub] [apisix] monkeyDluffy6017 commented on issue #9035: bug: The client_secret field of the keycloak plug-in cannot be encrypted

Posted by "monkeyDluffy6017 (via GitHub)" <gi...@apache.org>.
monkeyDluffy6017 commented on issue #9035:
URL: https://github.com/apache/apisix/issues/9035#issuecomment-1461456439

   Is the `client_secret` in your etcd unencrypted?


-- 
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


[GitHub] [apisix] yongling0625 commented on issue #9035: bug: The client_secret field of the keycloak plug-in cannot be encrypted

Posted by "yongling0625 (via GitHub)" <gi...@apache.org>.
yongling0625 commented on issue #9035:
URL: https://github.com/apache/apisix/issues/9035#issuecomment-1461518486

   @monkeyDluffy6017   yes, client_secret is stored in plain text in etcd.


-- 
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


[GitHub] [apisix] yongling0625 closed issue #9035: bug: The client_secret field of the keycloak plug-in cannot be encrypted

Posted by "yongling0625 (via GitHub)" <gi...@apache.org>.
yongling0625 closed issue #9035: bug: The client_secret field of the keycloak plug-in cannot be encrypted
URL: https://github.com/apache/apisix/issues/9035


-- 
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


[GitHub] [apisix] monkeyDluffy6017 commented on issue #9035: bug: The client_secret field of the keycloak plug-in cannot be encrypted

Posted by "monkeyDluffy6017 (via GitHub)" <gi...@apache.org>.
monkeyDluffy6017 commented on issue #9035:
URL: https://github.com/apache/apisix/issues/9035#issuecomment-1461541671

   Try to set `client_secret ` again, it will be encrypted, and then it can be decryped


-- 
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