-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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 2.3.2 开启鉴权后控制台无论使用什么密码登录都显示账户密码错误 #12097
Comments
是新版本的BUG吗 我部署过很多老的版本都没遇到过类似的问题 默认密码都是nacos/nacos可以正常登陆 |
我自己部署的没有问题,是不是你改过了用户密码? 试着用mysql-schema.sql中的密码重置一下。 |
没有改过 数据库里就是nacos/nacos 然后我update重置了几次也还是不行 |
我完全按照官网步骤部署的,没有任何额外操作,之前的版本都没问题,最近的版本不行了 |
2.3.1 不开启鉴权还能使用 2.3.2 不开启鉴权好像无法使用了 但是由于安全原因我们也必须开启鉴权才行 |
Welcome to the MariaDB monitor. Commands end with ; or \g. Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MySQL [(none)]> use nacos; Database changed MySQL [nacos]> |
The auth system to use, currently only 'nacos' and 'ldap' is supported:nacos.core.auth.system.type=nacos If turn on auth system:nacos.core.auth.enabled=true Turn on/off caching of auth information. By turning on this switch, the update of auth information would have a 15 seconds delay.nacos.core.auth.caching.enabled=true Since 1.4.1, Turn on/off white auth for user-agent: nacos-server, only for upgrade from old version.nacos.core.auth.enable.userAgentAuthWhite=false Since 1.4.1, worked when nacos.core.auth.enabled=true and nacos.core.auth.enable.userAgentAuthWhite=false.The two properties is the white list for auth and used by identity the request from other server.nacos.core.auth.server.identity.key=nacos worked when nacos.core.auth.system.type=nacosThe token expiration in seconds:nacos.core.auth.plugin.nacos.token.cache.enable=false The default token (Base64 String):nacos.core.auth.plugin.nacos.token.secret.key=VGhpc0lzTXlDdXN0b21TZWNyZXRLZXkwMTIzNDU2Nzg= |
caused: Invalid key: javax.crypto.spec.SecretKeySpec@fa7772af; |
openjdk version "1.8.0_402" |
有过同样问题,把JDK版本改为更换为: |
感谢,随便选了个低版本就解决了 java version "1.8.0_321" |
INSERT INTO users (username, password, enabled) VALUES ('nacos', '$2a$10$EuWPZHzz32dJN7jexM34MOeYirDdFAZm2kuWj7VEOJhhZkDrlovUu', TRUE); INSERT INTO roles (username, role) VALUES ('nacos', 'ROLE_ADMIN'); |
数据都没问题 JDK版本的问题 |
com.alibaba.nacos.plugin.auth.impl.jwt.NacosSignatureAlgorithm line 201~207 private Mac getMacInstance(Key key) {
try {
Mac instance = Mac.getInstance(jcaName);
instance.init(key);
return instance;
} catch (NoSuchAlgorithmException | InvalidKeyException e) {
throw new IllegalArgumentException("Invalid key: " + key);
}
} Has some one can enhance these codes to show diff hints for these two type exception? |
可能是你用了open jdk的原因 |
[root@k8s-master01 conf]# java -version 同样是openjdk 也有这样的问题!nacos2.3.2 好像只能使用oracle的jdk |
这是因为最新版本的
|
怎么是怎么解决的, 我的也是同样问题 |
Related: #11957 |
感觉就是jdk的问题,我换了台服务器不同版本的就正常了 有问题的: 没问题的: |
我遇到的问题可能一样。 我最开始使用的是Openjdk,然后错误日志提示有个加密相关的抱错。 然后安装了下面的版本就正常了。 参考: https://developer.aliyun.com/ask/608937
|
真的快崩溃了,想问下开启鉴权后的控制台密码到底是什么呀?
The text was updated successfully, but these errors were encountered: