Connect can't find op://vault/item/file.json

jbgbrad
jbgbrad
Community Member
edited July 2022 in CLI

When using a connect server and trying to reference a file from the OP cli, it errors:

Specifically
op inject -i service-account.json.tmpl -o service-account.json

with {{ op://vault/demo-api/service-account.json }} in the template.

service-account.json is saved as a file attachment in the demo-api item in the vault.

[ERROR] 2022/07/07 15:55:55 could not read secret op://vault/demo-api/service-account.json: could not find field or file service-account.json on item demo-api in vault vault

This works appropriately when using an account, but not when using connect.


1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Not Provided
Browser:_ Not Provided
Referrer: forum-search:Linux CLI file

Comments

This discussion has been closed.