Skip to content

[BUG] | [Feature Request??]: Allow fallback() to work with 1Password plugin #578

@kjs3

Description

@kjs3

varlock version

0.7.2

Steps to reproduce

# .env.schema
…
# opInit(…)
…

SOME_API_KEY=fallback(op(`/path-to-vault/path-to-item/DOES_NOT_EXIST`), "abcd1234")

varlock load -> exits with error

What is expected?

If key exists in 1p, no problem, works already.
If key does not exist in 1p, SOME_API_KEY should come from the fallback() value.

What is actually happening?

varlock load throws and exits with an error.

System Info

varlock@0.7.2 and @varlock/1password-plugin@0.3.3

Any additional comments?

No response

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions