discoverygarden / dgi_fixity
v1.3.2
2024-09-16 18:08 UTC
Requires
- drupal/filehash: ^2.0
README
简介
对所选文件进行定期完整性检查。
此模块定义了一个新的内容实体类型 fixity_check
。该实体用作对相关 file
实体执行完整性检查的审计跟踪。其中,fixity_check
记录的修订版记录了对该 file
实体的先前检查结果。
此模块对 fixity_check
实体强制执行以下约束
- 必须 与
file
相关 file
关系必须唯一- 创建后
file
关系不能更改 - 创建后
performed
和state
属性不能修改。
拥有 Administer Fixity Checks
权限的用户可以
- 手动执行检查
- 手动删除
fixity_check
实体及其修订版 - 手动标记文件需要定期检查
- 为所有先前存在的文件生成
fixity_check
实体
拥有 View Fixity Checks
权限的用户可以
- 查看媒体实体的完整性审计日志
已设置 cron
钩子,以自动标记文件为 需要 定期检查。同时定期执行这些检查。可以配置电子邮件通知,定期提醒选定的用户所有已执行检查的状态,或在出现错误时提醒。
需求
此模块需要以下模块/库
配置
可以在 admin/config/fixity
配置此模块。
Drush
此模块附带了一些 drush 命令。
$ drush dgi_fixity:clear --help
Sets the periodic check flag to FALSE for all files.
$ drush dgi_fixity:generate --help
Creates a fixity_check entity for all previously created files.
$ drush dgi_fixity:check --help Perform fixity checks on files. Options: --fids[=FIDS] Comma separated list of file identifiers, or a path to a file containing file identifiers. The file should have each fid separated by a new line. If not specified the modules settings for sources is used to determine which files to check. --force Skip time elapsed threshold check when processing files.
安装
按常规安装,有关更多信息,请参阅此处。
此外,在此模块首次启用后,您需要为所有现有的 file
实体生成 fixity_check
实体。这不需要执行检查,只需确保系统中每个适用的 file
实体都有一个 fixity_check
实体即可。
这可以通过 drush
完成
drush dgi_fixity:generate
或通过页面 admin/config/fixity/generate
上的管理表单。
故障排除/问题
遇到问题或解决了问题?请联系 discoverygarden。
维护者/赞助商
当前维护者
赞助商
开发
如果您想为此模块做出贡献,请创建问题、拉取请求或联系 discoverygarden。