-
Notifications
You must be signed in to change notification settings - Fork 52
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
feat: 新增审计系统 #782
feat: 新增审计系统 #782
Conversation
🦋 Changeset detectedLatest commit: 02d1eab The changes in this PR will be included in the next version bump. This PR includes changesets to release 16 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
70a7003
to
c4f8bef
Compare
c4f8bef
to
92c8605
Compare
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #782 +/- ##
==========================================
- Coverage 70.69% 70.68% -0.02%
==========================================
Files 126 129 +3
Lines 3617 3643 +26
Branches 466 479 +13
==========================================
+ Hits 2557 2575 +18
- Misses 974 976 +2
- Partials 86 92 +6
☔ View full report in Codecov by Sentry. |
我觉得可以进了,但是现在进的话1.0就会带这个功能。明天确认一下1.0要不要这个功能。 |
解决一下冲突 |
已解决 |
改动
scow节点新增audit-server服务
数据库信息
databaseName: scow_audit
tableName: operation_log
table desc:
其中metaData里根据每种操作类型的不同,以json形式储存了不同的字段,供操作内容展示。
4.1 用户空间展示的是所有operatorUserId 等于该用户的操作日志
4.2 账户管理展示的是所有保存了targetAccountName且与该账户名相等的操作日志
4.3 租户管理展示的是该租户下所有用户和operatorUserId相等的操作日志
4.4 平台管理展示的是所有操作日志
4.5 所有页面可筛选操作行为,操作时间,操作结果, 账户租户和平台的操作日志还能搜索操作者。
4.6 如果没有配置审计系统,则操作日志路由不展示。门户系统和管理系统将不会记录操作日志。
关于操作行为的枚举以及对应的操作码和操作详情展示格式记录在该文档附录:
https://jgf29kqp7z.feishu.cn/wiki/G30hwOvOJiJhWIk3mxIcen2snUe
ps: 是否需要新增一篇blog 通知用户该新功能改动?