token set: positional arg leaks token in process list and shell history #592

Closed
opened 2026-08-07 18:36:25 +00:00 by the.auditor · 1 comment
Owner

tpagectl token set <TOKEN> takes the token as a positional argument, exposing it via ps//proc and shell history. For a credential-management feature, consider reading from stdin (token set - or --stdin) or an env var, and document the leak for the positional form.

See #588

`tpagectl token set <TOKEN>` takes the token as a positional argument, exposing it via `ps`/`/proc` and shell history. For a credential-management feature, consider reading from stdin (`token set -` or `--stdin`) or an env var, and document the leak for the positional form. See https://git.lan.thwap.org/thwap/thwap-pagesd/pulls/588
Owner

Resolved by design: tpagectl token set reads the token from stdin when the positional argument is omitted, and the command help/description explicitly documents reading from stdin "to avoid leaking it via the shell history or process list". The positional form remains as a convenience with the leak documented. Closing; removing the positional form would be a breaking change and is tracked separately if desired.

Resolved by design: `tpagectl token set` reads the token from stdin when the positional argument is omitted, and the command help/description explicitly documents reading from stdin "to avoid leaking it via the shell history or process list". The positional form remains as a convenience with the leak documented. Closing; removing the positional form would be a breaking change and is tracked separately if desired.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
thwap/thwap-pagesd#592
No description provided.