ch-image: registry non-interactive authentication
Currently, ch-grow requests credentials interactively from the user whenever they are needed. In #822 (closed), @tbugfinder proposes non-interactive authentication.
Approaches off the top of my head:
-
Piggy-back on Docker credentials file. This is tricky because it will be in
/rootif Docker is invoked withsudo, which is the recommended approach. However, we could add e.g.--auth PATHto use any file. -
Command line options, e.g.
ch-grow pull --user foo --password b4r. This reveals secrets to anyone who can see the history file but also more importantlypsoutput. -
Environment variables, e.g.
CH_GROW_USERandCH_GROW_PASSWORD. Hard to get secrets into these without leaking, but it won't be inpsoutput at least. -
Credentials store such as the OS X keychain. This smells complicated.
Note that credentials may vary depending on the remote registry.