You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently a single field must be specified as op://<vault>/<entry>/<field>, which is always treated as a single JSON string.
But sometimes we want a composite value. A proposal @mistermoe and I came up with is that if the reference is to the entry itself, eg. op://<vault>/<entry>, FTL would retrieve all fields as a JSON object.
If the secret reference was op://Personal/JSON/password we would return the JSON string quoted value "aSecretPassword".
If the secret reference was op://Personal/JSON we would retrieve the JSON object {"password": "aSecretPassword", "username": "test"}. Note that notesPlain would be omitted because it has no value.
Unfortunately we'll need to manually parse the op:// reference in order to pass the individual values to op item get --json, because it doesn't support op:// references directly. We'll then need to unmarshal the JSON into an intermediate structure in order to retrieve the fields.
The text was updated successfully, but these errors were encountered:
Currently a single field must be specified as
op://<vault>/<entry>/<field>
, which is always treated as a single JSON string.But sometimes we want a composite value. A proposal @mistermoe and I came up with is that if the reference is to the entry itself, eg.
op://<vault>/<entry>
, FTL would retrieve all fields as a JSON object.eg. Given the following entry as JSON:
If the secret reference was
op://Personal/JSON/password
we would return the JSON string quoted value"aSecretPassword"
.If the secret reference was
op://Personal/JSON
we would retrieve the JSON object{"password": "aSecretPassword", "username": "test"}
. Note thatnotesPlain
would be omitted because it has no value.Unfortunately we'll need to manually parse the
op://
reference in order to pass the individual values toop item get --json
, because it doesn't supportop://
references directly. We'll then need to unmarshal the JSON into an intermediate structure in order to retrieve the fields.The text was updated successfully, but these errors were encountered: