首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >专栏 >nacos 客户端开启鉴权

nacos 客户端开启鉴权

原创
作者头像
用户3293499
发布2025-06-24 14:59:26
发布2025-06-24 14:59:26
3730
举报
文章被收录于专栏:微服务微服务

nacos配置

nacos默认是在绝对安全的内网中,一般是不允许外部访问,原则上不需要开启。但是为了防止安全问题,也可以手动开启。

启用鉴权

If turn on auth system:

nacos.core.auth.enabled=true

JWT秘钥 字符串随便,使用base64编码即可,建议是32位以上

The default token (Base64 String):

nacos.core.auth.plugin.nacos.token.secret.key=ODZCQzk5QTAtRjREMS00MDMxLUFEMTYtQTk4NEYwOUZDMzc5

集群之间通信 这个随便填写

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=E371D35A-8512-4ADF-9B88-DB25D3503AED

nacos.core.auth.server.identity.value=0DBFB0BC-7BF4-4147-ACBC-973EAA9B63F2

账号密码

默认账号为 nacos,首次登录填写的密码就是初始密码

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • nacos配置
    • 启用鉴权
    • If turn on auth system:
    • JWT秘钥 字符串随便,使用base64编码即可,建议是32位以上
    • The default token (Base64 String):
    • 集群之间通信 这个随便填写
    • 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.
  • 账号密码
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档