audit
audit
命令有一组用于和 Vault 审计设备进行交互的子命令。用户可以列出、启用和禁用审计设备。
例子
启用审计设备:
$ vault audit enable file file_path=/tmp/my-file.txt
Success! Enabled the file audit device at: file/
列出审计设备:
$ vault audit list
Path Type Description
---- ---- -----------
file/ file n/a
禁用一个审计设备:
$ vault audit disable file/
Success! Disabled audit device (if it was enabled) at: file/
可用子命令
Usage: vault audit <subcommand> [options] [args]
# ...
Subcommands:
disable Disables an audit device
enable Enables an audit device
list Lists enabled audit devices
每种子命令的详细使用方法,请阅读对应的章节。