cli: op inject: could not resolve item UUID

brockangelo
brockangelo
Community Member

cli 2.14.0

Issue: When using op inject to include an item by reference, item names must be unique, even across vaults.

Example:
Vault: Work
Item Name: AWS
Reference: op://Work/AWS/secrets/secret_key

Vault: Private
Item Name: AWS
Reference: op://Private/AWS/secrets/secret_key

Calling op inject -i config.tpl -o config.txt returns: [ERROR] 2023/03/15 09:07:06 could not resolve item UUID for item AWS

Resolution:
Vault: Work
Item Name: AWS-work
Reference: op://Work/AWS-work/secrets/secret_key

Vault: Private
Item Name: AWS-personal
Reference: op://Private/AWS-personal/secrets/secret_key


1Password Version: 8.10.1
Extension Version: 4.7.5.90
OS Version: macOS 12.6.3
Browser:_ Chrome

Comments

  • Cathal
    Cathal
    Community Member

    Also hit this issue.

    Strange that op read works fine, but not op inject.

  • Cathal
    Cathal
    Community Member
    edited June 2023

    Actually - on further investigation, the issue occurred even with different item names.
    Disabling the op command caching fixed the issue for me.

    --cache=false

This discussion has been closed.