Ask for the token without showing it in coreapps login
At a terminal, coreapps login on the Core now prompts with getpass; piped (as coreapp login does), it still reads one line from stdin. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -582,6 +582,12 @@ has a `coreapp.toml` with a published, public `image` (e.g. after
|
||||
token shown); on the Core `/etc/coreapps` is 700, `credentials` 600, and
|
||||
`/root/.docker/config.json` has no entry for the host. `coreapp logout
|
||||
<host>`: installing fails again.
|
||||
6b. `coreapps login <host> <user>` run at a terminal on the Core (`ssh
|
||||
-tt`): it asks "Token for <user> on <host>: " and what's typed isn't
|
||||
shown; a wrong token is rejected, nothing saved. Ctrl-D at the prompt:
|
||||
"No token given. Nothing was saved." on its own line. Piped (`echo
|
||||
<token> | coreapps login ...`, as `coreapp login` does): no prompt, the
|
||||
same checks. `/etc/coreapps/credentials` unchanged after all three.
|
||||
6a. Tokens per owner: `coreapp login <host>/<owner>` with a wrong token is
|
||||
rejected, the file unchanged. With a token saved for `<host>/<owner>`
|
||||
(on the Core, a wrong one written with `write_credentials`, to see which
|
||||
|
||||
Reference in New Issue
Block a user