You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Disclaimer: I don't know how sensitive this information is, but I noticed this while glancing over the plugin's instructions, and this one stood out 😅
The base-cli-plugin currently accepts the API token as an argument on the command-line, which is insecure, as the token would persist in ba(sh) history, can potentially end up in audit logs or in various other ways, and encourages users to include the token scripts.
Some potential alternatives;
Ideally, access would be obtained as part of a regular docker login - but I assume this is currently not integrated yet, so not (yet) possible.
Provide an interactive login (similar to docker login)
Allow passing the token through an environment variable
options 2. - 4. don't have to be mutually exclusive, so could all be supported
I haven't looked into this option, but it's potentially possible for docker login to authenticate to dso.docker.com, if there's an API endpoint that's compatible with how authentication works for registries; the user could in that case run docker login dso.docker.com, and the CLI would store the credentials under that hostname (allowing the plugin to read back the credentials with that hostname)
Disclaimer: I don't know how sensitive this information is, but I noticed this while glancing over the plugin's instructions, and this one stood out 😅
The
base-cli-plugincurrently accepts the API token as an argument on the command-line, which is insecure, as the token would persist in ba(sh) history, can potentially end up in audit logs or in various other ways, and encourages users to include the token scripts.Some potential alternatives;
docker login- but I assume this is currently not integrated yet, so not (yet) possible.docker login)Note that
docker loginto authenticate to dso.docker.com, if there's an API endpoint that's compatible with how authentication works for registries; the user could in that case rundocker login dso.docker.com, and the CLI would store the credentials under that hostname (allowing the plugin to read back the credentials with that hostname)