Reported in https://community.coffeylabs.org/t/232 (post 34): inbuxa upgrade --key - just sat there, and it took half an hour to realise it was waiting for the key to be pasted.
readKey (cmd/inbuxa/main.go) reads a line from stdin with no prompt. join has its own copy of the same read, and certs --key - / dns --refresh --key - do the same.
Fix: when stdin is a terminal (tui.IsTerminal), print something like API key (paste it and press Enter): to stderr and read it without echo. Piped input stays as it is. Use one helper everywhere --key - / --token - is read.
Reported in https://community.coffeylabs.org/t/232 (post 34): `inbuxa upgrade --key -` just sat there, and it took half an hour to realise it was waiting for the key to be pasted.
`readKey` (cmd/inbuxa/main.go) reads a line from stdin with no prompt. `join` has its own copy of the same read, and `certs --key -` / `dns --refresh --key -` do the same.
Fix: when stdin is a terminal (`tui.IsTerminal`), print something like `API key (paste it and press Enter):` to stderr and read it without echo. Piped input stays as it is. Use one helper everywhere `--key -` / `--token -` is read.
jcoffey-dev
added this to the 27.1 milestone 2026-11-17 21:13:00 +00:00
On a terminal, --key - now says what it's waiting for: API key (paste it and press Enter): , and the pasted key isn't echoed. --token - does the same. Piped input (echo "$KEY" | inbuxa upgrade --key -) works as before, with no prompt. Every command that takes --key - (install, upgrade, join, certs, dns --refresh) now reads it the same way.
It'll be in the next installer release candidate.
Fixed in #90, thanks to the report in https://community.coffeylabs.org/t/232 (post 34).
On a terminal, `--key -` now says what it's waiting for: `API key (paste it and press Enter): `, and the pasted key isn't echoed. `--token -` does the same. Piped input (`echo "$KEY" | inbuxa upgrade --key -`) works as before, with no prompt. Every command that takes `--key -` (install, upgrade, join, certs, dns --refresh) now reads it the same way.
It'll be in the next installer release candidate.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Reported in https://community.coffeylabs.org/t/232 (post 34):
inbuxa upgrade --key -just sat there, and it took half an hour to realise it was waiting for the key to be pasted.readKey(cmd/inbuxa/main.go) reads a line from stdin with no prompt.joinhas its own copy of the same read, andcerts --key -/dns --refresh --key -do the same.Fix: when stdin is a terminal (
tui.IsTerminal), print something likeAPI key (paste it and press Enter):to stderr and read it without echo. Piped input stays as it is. Use one helper everywhere--key -/--token -is read.Fixed in #90, thanks to the report in https://community.coffeylabs.org/t/232 (post 34).
On a terminal,
--key -now says what it's waiting for:API key (paste it and press Enter):, and the pasted key isn't echoed.--token -does the same. Piped input (echo "$KEY" | inbuxa upgrade --key -) works as before, with no prompt. Every command that takes--key -(install, upgrade, join, certs, dns --refresh) now reads it the same way.It'll be in the next installer release candidate.