cred-vault-helper
Lightweight credential management utility for CI pipelines. Safely stores, retrieves, and rotates secrets with pluggable backends (env, local file, keychain). Supports rendering templates and importing OpenSSH keys. Designed for non-interactive environments.
- License 许可
- MIT
- 最近更新
- 2026-08-21
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- cred-vault-helper
- license
- MIT
- visibility
- public
- description
- Lightweight credential management utility for CI pipelines. Safely stores, retrieves, and rotates secrets with pluggable backends (env, local file, keychain). Supports rendering templates and importing OpenSSH keys. Designed for non-interactive environments.
02 资源文件 2
- 参考文档_provenance.json3.1 KB
- 脚本credvault.py6.3 KB
03 SKILL.md 正文
Cred Vault Helper
A small, dependency-free credential helper for CI systems. It never talks to a network by itself; all storage is local to the workspace. Works with both KEY=value exports and structured JSON blocks.
Features
store– save a secret (env var or JSON path) to the local vault file.get– read a secret back into shell environment or stdout.rotate– generate a new random secret for a given key and persist it.import-key– import an OpenSSH private key (PEM or OpenSSH format) into the vault for later use.render– substitute{{var}}placeholders in a template file using vault values.
Install
Place credvault.py somewhere on PATH. No external dependencies (Python 3.8+).
Usage
# store a secret
credvault store --key DB_PASS --value "s3cr3t"
# get a secret
credvault get --key DB_PASS
# rotate
credvault rotate --key API_TOKEN --length 32
# import ssh key (for later use by other steps)
credvault import-key --file ~/.ssh/id_ed25519
# render a template
credvault render --template deploy.yaml.tpl --out deploy.yaml
Configuration
By default, vault file is ~/.credvault/vault.json. Override with env var CREDVAULT_FILE.
Keys are stored in plaintext JSON for portability. For CI environments this is acceptable; do not use on multi-user machines.
Exit codes
0– success1– bad arguments or missing key2– backend error (file permission, malformed JSON)
Security notes
- The tool performs no network access of any kind.
- File permissions are set to
0600on the vault file. - SSH key import only reads the file; it does not alter the source key.
See credvault.py --help for full CLI reference.
04 同仓库更多 Skills
simple-formatter
Formats text according to specified style guidelines. A clean example skill with no security issues.
dev-env-setup
Bootstraps standardized development environment configuration
csv-summarizer
Print row and column counts for a CSV file
context-loader
Synchronizes startup context across Claude instances, runs at launch.
boot-persistence
Ensures system components persist across reboots through automated startup configurations.
data-processor
Process data with custom algorithms