Signing back into the Community for the first time? You'll need to reset your password to access your account.  Find out more.

Forum Discussion

XIII's avatar
XIII
Trusted Contributor
3 years ago

op 2.3 via Connect broken

Looks like op 2.3 and/or Connect is broken (reading fields from sections?), breaking almost all of my automations...

On my Raspberry Pi or router (both talking to 1Password Connect on my Pi).


➜ op read op://Automation/fastmail/webdav/password
[ERROR] 2022/05/23 09:24:49 could not read secret op://Automation/fastmail/webdav/password: could not find field or file password in section webdav on item fastmail in vault Automation
➜ op read op://Automation/fastmail/username
me@fastmail.com

On my MacBook Pro (directly talking to 1password.com):


➜ op read op://Automation/fastmail/webdav/password
my password
➜ op read op://Automation/fastmail/username
me@fastmail.com

Please fix (reading fields from sections?) ASAP.


1Password Version: CLI 2.3 / Connect
Extension Version: n/a
OS Version: n/a

  • Former Member's avatar
    Former Member

    This is indeed a known bug, limitation of Connect: vault has to always be mentioned.
    Please let us know if you notice anything unusual in the output of:

    op item get fastmail --format json --vault <your-vault>

    I'm opening a ticket now, to make sure a more useful error is being added.

    Best,
    Horia

  • XIII's avatar
    XIII
    Trusted Contributor

    I don't know whether this is relevant, but I also noticed this when executing op item get fastmail --format=json:

    • On MacBook Pro (via 1password.com): JSON with item info
    • On Pi/router (via Connect): [ERROR] 2022/05/23 14:29:28 vault not found: (and nothing after that colon)

    EDIT: probably not; same error with 2.2.0, while that does return the webDAV password

  • Former Member's avatar
    Former Member

    Thanks for the additional details. I'll look a bit into it, and will post here any updates that I come across.

    Best,
    Horia

  • XIII's avatar
    XIII
    Trusted Contributor

    Might me more complicated:

    • op://Automation/fastmail/webdav/password does fail
    • op://Automation/fastmail/imap/password returns a password
  • XIII's avatar
    XIII
    Trusted Contributor
    • reading those fields with 2.3.0 is consistently broken
    • I reverted to 2.2.0 on one of my machines and then I can read the fields fine (using Connect)
    • please try a concealed (password) field in a section of a secure note (that's what failing for me with 2.3.0 & Connect only)
  • Former Member's avatar
    Former Member

    Hey XIII,

    Thank you for reaching out to us!
    If your automations worked before, and only fail now, it is likely that this is a regression with the 1Password CLI, since Connect did not release any new versions, in the past few days.
    I have tried, using 2.3.0 (with a Connect backend), to read fields from sections, both with names and IDs, as well as sectionless fields, and I was not able to reproduce this issue. Can you please give us more details about your setup?
    For example, the json structure of an item where you noticed this happening (with all the sensitive details concealed, of course) could help us a lot.
    Have you noticed that reading fields from sections is consistently broken, or only in specific scenarios/for specific items or fields?
    Please, also let us know anything else that you think would be relevant.

    Looking forward to hearing from you!
    Best,
    Horia