You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2022/09/03 08:22:03 UTC

[GitHub] [servicecomb-service-center] zhaoqi211 opened a new issue, #1338: how to implement the feature of cipher plugin in service-center?

zhaoqi211 opened a new issue, #1338:
URL: https://github.com/apache/servicecomb-service-center/issues/1338

   **Describe the bug**
   When I use tls feature in service-center(Reference Example of plugin.md -> # Plug-in mechanism), I got an error of, 
   ERROR   plugin/loader.go:53     no any plugin has been loaded   {"error": "load plugin 'cipher' error for plugin: not implemented"}
   ![image](https://user-images.githubusercontent.com/74461066/188262071-114f3382-4080-4497-bd70-632ee08206d5.png)
   
   **To Reproduce**
   Steps to reproduce the behavior:
   1. create a go file to implement the Cipher interface
   ```go
   package main
   
   func Encrypt(src string) (string, error) {
           return src,nil
   }
   func Decrypt(src string) (string, error) {
           return src,nil
   }
   ```
   2. compile go file to generate so
   ```bash
   GOPATH=go build -o cipher_plugin.so -buildmode=plugin cipher_plugin.go
   ```
   3. move the cipher_plugin.so to plugins directory
   4. restart service-center and then I see error
   
   **If I remove the cipher_plugin.go from plugins dir, and with plaintext password in cert_pwd file , The tls feature is normal**
   
   **Expected behavior**
   A clear and concise description of what you expected to happen.
   
   **Platform And Runtime (please complete the following information):**
   


-- 
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: commits-unsubscribe@servicecomb.apache.org.apache.org

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


[GitHub] [servicecomb-service-center] tianxiaoliang commented on issue #1338: how to implement the feature of cipher plugin in service-center?

Posted by GitBox <gi...@apache.org>.
tianxiaoliang commented on issue #1338:
URL: https://github.com/apache/servicecomb-service-center/issues/1338#issuecomment-1236481739

   https://go-chassis.readthedocs.io/en/latest/dev-guides/codec.html
   
   cipher plugin is using go chassis plugin now


-- 
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: commits-unsubscribe@servicecomb.apache.org

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


[GitHub] [servicecomb-service-center] dongnandeday commented on issue #1338: how to implement the feature of cipher plugin in service-center?

Posted by GitBox <gi...@apache.org>.
dongnandeday commented on issue #1338:
URL: https://github.com/apache/servicecomb-service-center/issues/1338#issuecomment-1301943097

   我用的是1.3.0 版本的 通过上述步骤 也是同样的报错?是不是版本有问题不支持吗?
   ERROR plugin/loader.go:53 no any plugin has been loaded {"error": "load plugin 'cipher' error for plugin: not implemented"}


-- 
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: commits-unsubscribe@servicecomb.apache.org

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