Skip to content

Reveal the password when it comes from a shell command, and add a Show Password control #2486

Closed

Description

@datlechin

Problem

  • The connection form's password is a plain SecureField with no reveal (apple/TablePro/Views/Connection/PasswordPromptToggle.swift:22-26). Checking which password a saved connection holds means opening Keychain Access. The credential profile editor already has a Show password toggle for a password saved in the Keychain (apple/TablePro/Views/Settings/Profiles/CredentialProfileEditorSheet.swift:125-130).
  • A password can come from a file, an environment variable, a command, 1Password, Vault or AWS Secrets Manager, set either in a credential profile under Read from elsewhere (connections/credential-profiles.mdx:48) or in connections.json (features/connection-sharing.mdx:155-177). Neither place can run the source to show what it returns, so a source that returns the wrong value is only found by a failed sign-in.
  • A connection whose source is set in connections.json shows an empty password field in the form, with no sign that a source exists. The form keeps the source only while that field stays empty (apple/TablePro/Views/ConnectionForm/ConnectionFormCoordinator.swift:610-612).

Already shipped: a command that exits non-zero fails the connect with its exit code and stderr, Password command failed (exit N): ..., and a 30 second timeout, an empty result and too much output each have their own message (apple/TablePro/Core/Utilities/Connection/PasswordSourceResolver.swift:45-56, from #1478).

Proposed solution

  • A Show password control on the connection form's password field, matching the one in the profile editor.
  • Revealing a password saved in the Keychain asks for Touch ID or the Mac's password first. The revealed value is never written to a log.
  • A Test Source button wherever a source is set: the profile editor, and the connection form when connections.json names one. It runs the source without connecting and shows the result masked, with the same reveal control, or shows the error, stderr included.
  • The connection form says when the password comes from a source, and names the kind (command, file, Vault, and so on), instead of showing an empty field.

Done when: a saved connection's password can be revealed from the form after authenticating, and a profile set to a command shows that command's output or its stderr without a connect.

Alternatives considered

Keychain Access for a saved password, or running the command in Terminal to see what it prints.

Platform

macOS

Related database type

N/A / General

Activity

  1. added
    enhancement
    on Aug 26, 2026
  2. added
    platform-macos
    on Oct 19, 2026
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

    enhancementplatform-macos

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions