We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
在 S2OJ 的使用过程中,有一些敏感操作是不会记录操作者信息的。随着题目管理员数量的日渐增加,增加审计日志的必要性在日渐提升。
为 S2OJ 增加审计日志功能。
audit_logs
username
varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL
type
varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL
target_id
int NOT NULL
time
datetime DEFAULT CURRENT_TIMESTAMP
remote_addr
varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL
http_x_forwarded_for
detail
json NOT NULL
TODO
The text was updated successfully, but these errors were encountered:
renbaoshuo
No branches or pull requests
背景
在 S2OJ 的使用过程中,有一些敏感操作是不会记录操作者信息的。随着题目管理员数量的日渐增加,增加审计日志的必要性在日渐提升。
需求
为 S2OJ 增加审计日志功能。
实现细节
数据表
新增:
audit_logs
表username
varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL
type
varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL
target_id
int NOT NULL
time
datetime DEFAULT CURRENT_TIMESTAMP
remote_addr
varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL
http_x_forwarded_for
varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL
detail
json NOT NULL
记录类型
TODO
The text was updated successfully, but these errors were encountered: