Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nacos配置项secret,key修改后,控制台无法登录 #9367

Closed
JunjieBian opened this issue Oct 21, 2022 · 3 comments · Fixed by #9380
Closed

nacos配置项secret,key修改后,控制台无法登录 #9367

JunjieBian opened this issue Oct 21, 2022 · 3 comments · Fixed by #9380

Comments

@JunjieBian
Copy link

Is your feature request related to a problem? Please describe.
nacos.core.auth.plugin.nacos.token.secret.key,这个配置项修改为任意其它值后,控制台能正常启动,但是用默认账号密码不能登录。
这个不能修改吗?版本:2.1.2
After this configuration item is changed to any other value, the console can be started normally, but cannot log in with the default account and password.
Can't this be modified?
Version: 2.1.2

@YunWZ
Copy link
Contributor

YunWZ commented Oct 22, 2022

@i will resolv it@

@YunWZ
Copy link
Contributor

YunWZ commented Oct 22, 2022

修复此bug之前,你可以通过将密钥进行base64编码来规避此问题。(你的密钥长度不能低于32位)

@KomachiSion
Copy link
Collaborator

我觉得改了这个值, 插入数据库的nacos的默认密码也需要重新编码更新才行,否则对不上值应该是正常现象

KomachiSion pushed a commit that referenced this issue Nov 3, 2022
…code error. (#9380)

* 1. 修复密钥编码问题--为了避免歧义,密钥必须为base64编码的字符串;不再支持原始明文密钥。
2. JwtParser是线程安全的,重构为成员变量。

* 配置项保持明文字符串
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants