shenyu icon indicating copy to clipboard operation
shenyu copied to clipboard

[Question] Synchronize AppAuthData

Open daanhan opened this issue 1 year ago • 3 comments

原有网关想迁移为使用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?

daanhan avatar Sep 19 '23 08:09 daanhan

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 avatar Sep 20 '23 00:09 moremind

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

moremind avatar Sep 20 '23 01:09 moremind

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.

daanhan avatar Sep 20 '23 03:09 daanhan