linkorb/vault
Composer 安装命令:
composer require linkorb/vault
包简介
Vault: Store confidential data in version control
README 文档
README
Securely store confidential information (passwords, ssl certificates, keys) in version control
Installing Vault
Vault is a tiny CLI application that you can add to your projects by adding the following line to your composer.json:
"require": {
"linkorb/vault": "~1.0"
}
Run composer update to install the new project dependency
Using Vault
Vault works with 2 directories:
- The
vaultdirectory (defaultvault/): this directory stores the confidential information in encrypted form - The
securedirectory (defaultsecure/): this directory contains your confidential files in unencrypted form, so that your application can use it. This directory will not be committed to version control, and should be added to your.gitignorefile.
To start, create both directories, and put a confidential file in your secure/ directory.
Type the following command, to encrypt all files in your secure/ directory, and store then in the vault/ directory:
vendor/bin/vault encrypt
Vault will ask for a password that will be used for encryption.
You can now check which files are stored in the vault using:
vendor/bin/vault ls
To echo the contents of a single file from vault, run:
vendor/bin/vault cat test.txt
Add your secure/ directory to .gitignore, and commit the files in the vault/ directory.
To use the files on another computer, use git pull to get the new files in the vault/ directory, and run the following command to decrypt them into the new local secure/ directory:
vendor/bin/vault decrypt
Vault will ask for a password again, and extract the files one by one into the secure/ directory, so they can be used.
If you make any changes to files in the secure/ directory, make sure to run vault encrypt again to update the contents in vault/ so they can be sent to your version control system.
TODO:
- Make
vault/andsecure/directories configurable through aVaultfile - Allow configurations of used encryption methods
- Add a
diffcommand, to check changes between vault and secure directories
License
MIT. Please refer to the license file for details.
Brought to you by the LinkORB Engineering team
Check out our other projects at linkorb.com/engineering.
Btw, we're hiring!
linkorb/vault 适用场景与选型建议
linkorb/vault 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 317 次下载、GitHub Stars 达 2, 最近一次更新时间为 2016 年 05 月 07 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「php」 「linkorb」 「vault」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 linkorb/vault 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 linkorb/vault 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 linkorb/vault 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
An easy Laravel integration for HashiCorp Vault
WADO JWT client for PHP
PhpPlaisio: Config Vault
ImgproxyService use imgproxy
PhpPlaisio: Config Vault Commands
PhpPlaisio: Plain File Config Vault
统计信息
- 总下载量: 317
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 6
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-05-07