@varlock/1password-plugin
v0.1.0
Published
Varlock plugin to pull data from 1password
Readme
@varlock/1password-plugin
This package is a Varlock plugin that enables loading data from 1Password into your configuration.
See our docs site for complete installation and usage instructions.
# Example .env.schema using the 1Password plugin
#
# @plugin(@varlock/1password-plugin)
#
# initialize the plugin, wiring up settings and auth
# @initOp(account=acmeco, token=$OP_TOKEN, allowAppAuth=forEnv(dev))
#
# @currentEnv=$APP_ENV
# @defaultRequired=infer @defaultSensitive=false
# ---
# @type=enum(dev, preview, prod)
APP_ENV=dev
# in deployed environments, this will be used to auth with 1Password
# @sensitive @type=opServiceAccountToken
OP_TOKEN=
# pull items from 1pass using new `op()` resolver
XYZ_API_TOKEN=op("op://api-config/xyz/api-key")