Comments (4)
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
If you do not log in for a period of time, you will automatically log out. After logging out, you will not be able to log in by entering your account and password. You must restart.
After entering the account password, it keeps prompting "Not logged in or the login has expired, please log in again", click once to prompt once
from hertzbeat.
hi 这个问题一般是没有正确配置sureness.yml 请排查是否是对sureness.yml没有配置完整
[注意
配置用户配置文件(非必须,配置账户需要)
HertzBeat默认内置三个用户账户,分别为 admin/admin tom/tom@123 lili/lili
若需要新增删除修改账户或密码,可以通过配置 sureness.yml 实现,若无此需求可忽略此步骤
在主机目录下创建sureness.yml,eg:/opt/sureness.yml
配置文件内容参考 项目仓库/script/sureness.yml
修改sureness.yml的如下部分参数:[注意
## -- sureness.yml文本数据源 -- ##
# 加载到匹配字典的资源,也就是需要被保护的,设置了所支持角色访问的资源
# 没有配置的资源也默认被认证保护,但不鉴权
# eg: /api/v1/source1===get===[role2] 表示 /api/v2/host===post 这条资源支持 role2 这一种角色访问
# eg: /api/v1/source2===get===[] 表示 /api/v1/source2===get 这条资源不支持任何角色访问
resourceRole:
- /account/auth/refresh===post===[role1,role2,role3,role4]
# 需要被过滤保护的资源,不认证鉴权直接访问
# /api/v1/source3===get 表示 /api/v1/source3===get 可以被任何人访问 无需登录认证鉴权
excludedResource:
- /account/auth/**===*
- /===get
- /i18n/**===get
- /apps/hierarchy===get
# web ui 静态资源
- /console/**===get
- /**/*.html===get
- /**/*.js===get
- /**/*.css===get
- /**/*.ico===get
- /**/*.ttf===get
- /**/*.png===get
- /**/*.gif===get
- /**/*.png===*
# swagger ui 资源
- /swagger-resources/**===get
- /v2/api-docs===get
- /v3/api-docs===get
# 用户账户信息
# 下面有 admin tom lili 三个账户
# eg: admin 拥有[role1,role2]角色,密码为admin
# eg: tom 拥有[role1,role2,role3],密码为tom@123
# eg: lili 拥有[role1,role2],明文密码为lili, 加盐密码为1A676730B0C7F54654B0E09184448289
account:
- appId: admin
credential: admin
role: [role1,role2]
- appId: tom
credential: tom@123
role: [role1,role2,role3]
- appId: lili
# 注意 Digest认证不支持加盐加密的密码账户
# 加盐加密的密码,通过 MD5(password+salt)计算
# 此账户的原始密码为 lili
credential: 1A676730B0C7F54654B0E09184448289
salt: 123
role: [role1,role2]
from hertzbeat.
配置文件是得写完整,之前只写了account部分导致的
from hertzbeat.
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
The configuration file has to be written completely, because only the account part was written before
from hertzbeat.
Related Issues (20)
- [BUG] <title> There is a problem with the latest master code monitoring mongodb HOT 1
- [Task] WeWorkApp message is sent in groups<title> HOT 2
- [Question] <title>Whether the platform has the collector group function.
- [BUG] <title>Use rocketMQ to monitor, test links, and report errors on the console HOT 3
- [BUG] <snmp test BUG> HOT 2
- Alarm recovery email not received correctly HOT 2
- [Question] <When will switch SNMP support SHA256, 512, and DES 256 and 512 encryption methods in V3> HOT 2
- User management HOT 1
- [Task] <run hertzbeat in docker compose support dependen service condition>
- [Question] rabbitMQ cannot collect data related to the number of messages HOT 1
- error log: Invalid cookie header
- I don’t know why, but I can’t see the monitoring data. HOT 1
- [BUG] <title>Error when starting service after packaging and compilation HOT 5
- [BUG] After the monitoring master node is restarted, the edge collector cluster cannot automatically go online.
- SQLserver 2017 or below for monitoring requests. HOT 1
- Can the enterprise WeChat robot in the alarm notification @ reach specific objects when pushing messages? HOT 2
- [Question] <title>Skill keywords / Logical monitoring HOT 1
- [BUG] Cluster mongo is not supported
- [BUG] About zookeeper
- [Question] How do I monitor every pod in kubernetes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hertzbeat.