Skip to content

[verify] gateway token mask renders bullets on Linux (PR #91059) #91065

Description

@anurag-bg-neu

Context

PR #91059 switches the Gateway token (blank to generate) prompt in openclaw configure --section gateway from clack text() to password(), so the typed or auto-generated token renders as masked bullets instead of cleartext echo. The issue is source-verifiable on current main: src/commands/configure.gateway.ts routes authMode === "token" through a text() call at the Gateway token prompt. The fix is in cross-platform @clack/prompts code with no process.platform branching — it ships to Linux automatically. The author's repro environment is Windows 10 only.

Verification request

Could a Linux maintainer confirm that after PR #91059 merges:

  1. pnpm openclaw configure --section gateway
  2. Gateway port → press Enter (accept default)
  3. Gateway bind mode → Loopback
  4. Gateway access protection → Token ← reaches the leak surface
  5. Tailscale exposure → Off
  6. Gateway token source → Plaintext ← required; only plaintext leaks (ref uses env var, no echo)
  7. At Gateway token (blank to generate) — type any string or press Enter to auto-generate; each character (or generated token) should render as instead of being visible
  8. Confirm the persisted gateway.auth.token value in ~/.openclaw/openclaw.json is the actual token string (not bullets — masking is render-only)

No real gateway is needed — any typed string or pressing Enter is sufficient.

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Normal backlog priority with limited blast radius.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-security-reviewClawSweeper marked this issue as needing security-sensitive review.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.impact:securitySecurity boundary, credential, authz, sandbox, or sensitive-data risk.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions