apache / apache/servicecomb-kie

服务中心如果开启rbac则无法像java版一样注册,header没有token

Open
#187 4 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
545
Forks
70
PR merge metrics
No merged PRs in 30d

Description

Describe the bug
我使用kie打开了服务中心注册,且服务中心开启了rbac,则kie无法正常注册进服务中心,因为http header缺少token,java版
可以通过yaml加入
credentials:
rbac:
enabled: true
account:
name: #服务中心支持的用户名
password: #用户名对应的密码
cipher: default #账号密码加解密用的算法实现类
自动支持服务中心rbac注册,但kie使用的go-chassis无法支持,已在参数文件内加入以上配置,仍提示header 不含token

Version of go chassis

To Reproduce
Steps to reproduce the behavior:

Logs

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing KIE registration against a service center with RBAC enabled, using the credentials configuration described in the issue. Compare the Go go-chassis registration behavior with the Java version and verify that a token-bearing header is sent and registration succeeds.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
authentication, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.