Skip to content

Feature request: rtk wrapper for 1Password CLI (op item / op read / op vault) #1738

Closed as duplicate

Description

@yonatangross

Use case

The 1Password CLI (op) is a high-frequency command in security-sensitive workflows where developers retrieve secrets at runtime via op:// references. Currently op calls bypass rtk (no wrapper exists), missing both invocation tracking and output filtering.

Frequency observed

From a single dev workstation running rtk discover (rtk 0.38.0):

TOP UNHANDLED COMMANDS
─────────────────────────────────────────
op read     194x    VTOKEN=$(op read "op://HQ-Dev/yonatan-hq-dev/...")
op item     185x    op item list --vault HQ-Dev
─────────────────────────────────────────
                    379x combined, no rtk handle

op ranks above pgrep, grep and others that already have wrappers.

Suggested filter shape

Subcommand Filtering opportunity
op item list Table compaction (strip ANSI, header rows)
op item get JSON keys-only by default; full output with -v
op item create Strip preamble + show only {id, title, vault}
op vault list Compact table
op read Already minimal output, but track invocations for adoption telemetry and rtk discover
op signin / op whoami Pass-through with brief status

Sensitivity considerations

  • op read output IS the secret. Filter must NEVER cache or log the value — tee mode should be disabled for op subcommands by default, or selectively skipped.
  • This wrapper would need explicit tee_disabled = true semantics.

Why not exclude_commands?

op is opted-in to rtk: developers WANT the invocation tracking (compliance, audit, knowing which env vars resolve from which vault). They just don't want output captured.

Telemetry impact

Adoption from our session: ~22-58% of commands route through rtk; the unhandled op invocations are a meaningful slice of the gap.

cc: this came out of an audit prompted by the pytest -q summary regression we hit in 0.28.2 (fixed in 0.36.0 commit 57502a5 — thanks). After upgrading to 0.38.0, rtk discover surfaced this as the next highest-leverage gap.

Activity

  1. added
    enhancement
    help wanted
    on May 27, 2026
  2. pszymkowiak commented on May 27, 2026

    @pszymkowiak
    Collaborator

    wshm · Automated triage by AI

    🔍 Automated Triage

    ✨ Category feature
    🟡 Priority medium
    🎯 Confidence 93%

    Summary

    Feature request for an RTK wrapper around the 1Password CLI (op) with invocation tracking and output filtering, with explicit tee_disabled semantics to prevent secret leakage.


    Triaged automatically by wshm · This is an automated analysis, not a human review.

  3. KuSh commented on Sep 5, 2026

    @KuSh
    Collaborator

    Closing as a duplicate of #1737, which tracks the same problem with the more complete discussion. Please follow up there; if your case differs in a way that issue does not cover, comment here and it can be reopened.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:cliarea:securityenhancementhelp wantedpriority:medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions