Skip to main content
May 30, 2023
Question

op inject with URLs

  • May 30, 2023
  • 2 replies
  • 329 views

Assume for a second you have a login item with a username, password, and website, which you'd like to "inject" into a docker-compose file. How would you reference the website (aka URL)? Looking at the output of

op item get id1234567890 --vault "MyVault" --format=json

I notice that username and password have a "reference" but urls do not.

Using 2.17.0 of the 1Password CLI.


1Password Version: Not Provided
Extension Version: Not Provided
OS Version: macOS 13.4
Browser:_ Not Provided

2 replies

June 1, 2023

Hi @bloudraak,

You should be able to just replace the field in the reference with website. ie. op://Private/item/website instead of op://Private/item/username. I'll look into whether it makes sense to have that reference field for more fields in an item.

Let me know if this works for you!
Amanda

April 22, 2025

Have same issue.
There is no documented way to reference `website` url using secret reference till today.
Hopefully I'm wrong...?