Skip to content

[Feature Request] 1Password plugin enhancement #208

@jl9404

Description

@jl9404

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 text field
  • 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

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions