dubbo icon indicating copy to clipboard operation
dubbo copied to clipboard

[DISCUSS] Dubbo service authorization

Open liuxinggang opened this issue 7 years ago • 6 comments

dubbo⽬前的安全策略有两个: 1.令牌验证 2. 路由规则 他们的作⽤分别是: 1.防⽌Consumer绕过注册中⼼ 2.保护Provider,只允许被某些IP上的Consumer访问

在云的环境下,机器ip多变,配置复杂维护成本⾼,不能有效保护敏感服务。

所以我们需要提供⼀种机制,来对consumer进⾏认证和授权,保护敏感服务。

liuxinggang avatar Feb 25 '19 08:02 liuxinggang

Hi,

+1 to support authorization. Do you have any detailed proposal?

ralf0131 avatar Feb 27 '19 06:02 ralf0131

We plan to use JWT(json web token) to implement authorization.We provide a auth service taking auth information from registry center. And user can set auth rules in a dashboard for auth service. We provide also a filter for consumer to get token from auth service and a provider check token with a filter. Proceed as follow: a.Consumer get token from Auth Service when it has no token or token is expire; b.Auth Service check consumer information and provide token. Token is encrypted by provider's secret; c.Consumer add token in attachment and send to provider; d.Provider check token and return response.

Fuyao-JIANG avatar Feb 28 '19 03:02 Fuyao-JIANG

Great, we really need a ACL mechanism for dubbo services. Looking forward to your pull request :)

beiwei30 avatar Mar 01 '19 05:03 beiwei30

@Fuyao-JIANG any update on this?

beiwei30 avatar Apr 11 '19 06:04 beiwei30

I am sorry that I quit this issue for personal reason.

Fuyao-JIANG avatar Apr 11 '19 08:04 Fuyao-JIANG

I will solve it.

maoyiz avatar Apr 19 '19 03:04 maoyiz