apache / shenyu

Apache ShenYu is a Java native API Gateway for service proxy, protocol conversion and API governance.
https://shenyu.apache.org/
Apache License 2.0
8.44k stars 2.93k forks source link

[Question] Synchronize AppAuthData #5172

Open daanhan opened 1 year ago

daanhan commented 1 year ago

原有网关想迁移为使用shenyu网关,但不希望在shenyua dmin中录入auth data,准备做以下事情,请帮忙解答问题,谢谢

  1. 通过数据库同步auth data,再通过admin同步至bootstrap?(同步 app_auth表 即可?)
  2. 还是通过SHENYU的本地模式API?(本地模式https://shenyu.apache.org/docs/developer/local-model/)
  3. 集群模式下如何怎么用API?也就是将来新增的AuthData,如何方便的通过API接口进行同步?

My original gateway wants to migrate to Shenyu gateway, but does not want to enter auth data in Shenyu admin. We are preparing to do the following. Please help answer the questions. Thank you

  1. Synchronize auth data through the database, and then synchronize to bootstrap through admin? (Just synchronize the app_auth table?)
  2. Or through SHENYU's local mode API? (Local mode https://shenyu.apache.org/docs/developer/local-model/
  3. How to use sync APIs in cluster mode? How can AuthData, which will be added in the future, be easily synchronized through API?
moremind commented 1 year ago

Add auth data by shenyu admin, but you may check the app auth data formatter and operate the selector and rule by shenyu admin.

moremind commented 1 year ago

In addition, it's difficult and impracticable to adapt other API implementations.

daanhan commented 1 year ago

Add auth data by shenyu admin, but you may check the app auth data formatter and operate the selector and rule by shenyu admin.

When entering auth data on shenyu admin, you cannot specify appKey and secret, which is the problem. I hope to input auth data into other business systems in the future and synchronize it to shenyu admin and bootstrap.