ys/hubot-vault

语言: CoffeeScript

git: https://github.com/ys/hubot-vault

None
README.md (中文)

裸体金库

安装

  • 将hubot-vault添加到package.json文件中。
  • 将HUBOT_FERNET_SECRETS设置为dd if = / dev / urandom bs = 32 count = 1 2> / dev / null | openssl base64

用法

vault = robot.vault.forUser(user)
vault.set("secret_token", "secret_value")
vault.get("secret_token") # => "secret_value"
vault.unset("secret_token")

键旋转

只需在HUBOT_FERNET_SECRETS前加上下一个键

HUBOT_FERNET_SECRETS=new_key,old_keys

也可以看看

  • hubot - 一个支持大量网络的聊天机器人。

本文使用googletrans自动翻译,仅供参考, 原文来自github.com

en_README.md

hubot-vault Build Status

Installation

  • Add hubot-vault to your package.json file.
  • Set HUBOT_FERNET_SECRETS to dd if=/dev/urandom bs=32 count=1 2>/dev/null | openssl base64

Usage

vault = robot.vault.forUser(user)
vault.set("secret_token", "secret_value")
vault.get("secret_token") # => "secret_value"
vault.unset("secret_token")

Keys Rotation

Just prepend the HUBOT_FERNET_SECRETS with the next key

HUBOT_FERNET_SECRETS=new_key,old_keys

See Also

  • hubot - A chat robot with support for a lot of networks.