Skip to content

Cannot obtain secret fields with op 2.30.0 or later #64

@csteinle

Description

@csteinle

Describe the bug
Since 2.30.0 of the 1password CLI, the option --reveal is required to obtain passwords and other secret fields. See https://app-updates.agilebits.com/product_history/CLI2#v2300006

To Reproduce

from onepassword import OnePassword

op = OnePassword()

uuid = op.get_uuid("Item Name", vault="Vault Name")

token = op.get_item(uuid=uuid, fields="token")["token"]

print(token)
[use 'op item get <redacted> --reveal' to reveal]

Expected behavior
Password or token retrieved

Screenshots
N/A

Desktop (please complete the following information):
op CLI version 2.30.0 or greater

Smartphone (please complete the following information):
N/A

Additional context
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions