Repository navigation
Closed
Labels
Description
Problem
- The connection form's password is a plain
SecureFieldwith 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 inconnections.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.jsonshows 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.jsonnames 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