Senv
Senv (Secret Env)用于保存一些密钥信息,原始数据通过密码加密。类似于 KV,但加了分组的概念。使用的方式有几种。
直接通过命令读取
导入到环境变量
为了避免频繁输入密码,添加了 session 的概念。session start 之后,会在本地保留一个中间密钥(非原始密码),session 有效期内通过中间密钥解密。
对于导入环境变量,可通过在 shell rc 文件里面集成 senv 的 export 功能,这样每次开启 shell session,会通过这个命令导入到环境变量。
eval $(senv env export)下面是 Senv 的命令行帮助文档。
Senv is a secure tool for managing environment variables and configuration files.
It provides encrypted storage for sensitive data with group-based organization.
Usage:
senv [command]
Available Commands:
completion Generate the autocompletion script for the specified shell
config Manage configuration files
env Manage environment variables
git Git repository operations
help Help about any command
init Initialize a new senv project
interactive Start interactive mode
session Manage session cache
Flags:
-h, --help help for senv
--path string data storage path (default "/data/zhenkai.sun/.config/senv/data")
Use "senv [command] --help" for more information about a command.最后,再阐述下对数据安全的保护。
原始密码不会保存在任何位置,因此也需要牢记
可能需要通过原始密码生成中间密码并保存,以减少数据密码的频次,但仍难以反解出原始密码
mdserve
mdserve 是在 markdown 目录直接起一个服务,并提供 web 页面渲染 markdown 文件,可按照既有目录进行浏览,同时支持文档的热加载。功能相对直接,对比静态生成类的工具更加直接。
下面是工具的命令行帮助。
A real-time Markdown files server that provides web-based rendering and file browsing.
Usage:
mdserve [command]
Available Commands:
completion Generate the autocompletion script for the specified shell
config Manage configuration
help Help about any command
serve Start the markdown server
Flags:
-h, --help help for mdserve
Use "mdserve [command] --help" for more information about a command.grepom
这个也是我用的比较顺手的工具,用来管理 git 仓库,支持按组、仓库配置。对于组,可以同步、克隆组下的仓库。除此之外,还支持隐私信息扫描功能。
下面是工具的命令行帮助。
A CLI tool for managing multiple git repositories across GitLab groups and GitHub organizations.
Use YAML configuration files to define resources (authentication), groups (remote paths),
and standalone repos. Grepom discovers and manages repositories automatically.
Usage:
grepom [command]
Examples:
grepom -c work.yml list # List repos from a specific config
grepom clone --group frontend # Clone all repos in a group
grepom status # Check status of all cloned repos
grepom pull web-app # Pull updates for a single repo
Available Commands:
add Add a resource, group, or repository to the config file
clone Clone repositories to local filesystem
completion Generate the autocompletion script for the specified shell
dedup Deduplicate repos across groups by name
dir Print local directory path for a repo or config directory
example Export a complete example configuration
help Help about any command
init Initialize a configuration file
interactive Start interactive mode with menu-driven UI
list List resources, groups, or repositories
pipeline View CI/CD pipelines
prune Remove cloned repos that are excluded by exclude_repos
pull Pull updates for repositories
push Scan for secrets before pushing
scan Scan repositories for sensitive information
search Search repositories by name
status Show git status for repositories
sync Synchronize repository metadata from remote groups
Flags:
-c, --config string path to config file (default: .grepom.yml in current or parent directory)
-h, --help help for grepom
-v, --verbose enable verbose output
Use "grepom [command] --help" for more information about a command.transit
一个文件上传、下载服务。