-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Description
Right now, we can use op() function for 1-1 mapping with 1Password vault item. Would like to suggest that we could
- batch import env from 1Password
textfield - download file from 1Password vault and store to target path
Motivation
No response
Proposed Solution
Batch import from 1Password text field
register a new root decorator importOp(id=instance_id, vault=op://vault-name/item-name/field-name)
parse and inject to the environment variable
Download file from 1Password vault and store to target path
register a new resolver function opFile(id=instance_id, vault=op://vault-name/item-name/field-name)
the environment variable value could be the target path, or maybe we can have extra arg for the path
e.g.
@opFile(id=instance_id, vault=op://vault-name/item-name/field-name)
MY_CERT=./secrets/my-cert.crt
or even it could be a root decorator if we simply just want to download the file from vault
Alternatives
No response
Additional Information
No response
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request