What are the Pros and Cons of using 1Password Unique Identifiers in 1Password Secret References relative to using the name of the item in the secret reference?
Pros of using Unique Identifiers in secret references, e.g. "op://Private/t2Vz6kMDjByzEAcq6peKnHL4k3/credential"
In the CLI, resolving the item is faster
If you rename the item (but keep the vault the same), the unique id still works
Cons of using Unique Identifiers in secret references, e.g.
If the item stops working in your code, then it takes multiple steps to figure out which item this refers to and whether it is correct
method 1 - op item get <1PasswordUniqueID> | grep -E "^(Vault|Title):"
result:
Title: Netflix API KeyVault: Private (abcd123)
method 2 - op item get <1PasswordUniqueID> --format json --fields credential | jq .reference