@baymutt/varlock-plugin
v0.6.1
Published
Loads a baymutt environment's values into varlock: one request, opened on this computer with the service account key. No cache, because there is no rate limit to save and varlock's disk cache is what asks for Touch ID.
Readme
@baymutt/varlock-plugin
Loads a baymutt environment's values into varlock. The values are fetched as ciphertext and opened on this computer with the service account key. Nothing is cached.
npm install -D varlock @baymutt/varlock-pluginIn .env.schema:
# @plugin(@baymutt/varlock-plugin)
# @initBaymutt(key=$BAYMUTT_KEY)
# @setValuesBulk(baymuttLoad("app/production"))
# ---
DATABASE_URL=
SESSION_SECRET=Then varlock run -- <command>.
keyis a service account key, such as a CI job'sBAYMUTT_KEY. Left unset or empty, the plugin reads the keybaymutt loginstored on this computer.urlis optional, for a baymutt that is nothttps://baymutt.fsh.ba:@initBaymutt(key=$BAYMUTT_KEY, url="http://localhost:5183").- It needs a read grant on the environment. A login holds one on every environment; a service account
baymutt service-accounts create --read <environment>made holds one on the environments it was handed.
The CLI that logs in service accounts and manages secrets is
baymutt.
Source and licence (MIT): fishballapp/baymutt.
