Skip to content

Dockerhub credentials logged on startup #1912

Closed

Description

@dsyer

Oops?

2019-09-25 15:13:19.443 [main] INFO  o.t.d.DockerClientProviderStrategy - Found Docker environment with Environment variables, system properties and defaults. Resolved: 
    dockerHost=unix:///var/run/docker.sock
    apiVersion='{UNKNOWN_VERSION}'
    registryUrl='https://index.docker.io/v1/'
    registryUsername='...'
    registryPassword='...'
    registryEmail='...'
    dockerConfig='DefaultDockerClientConfig[dockerHost=unix:///var/run/docker.sock,registryUsername=...,registryPassword=<...>,registryEmail=<...>,registryUrl=https://index.docker.io/v1/,dockerConfigPath=/home/dsyer/.docker,sslConfig=<null>,apiVersion={UNKNOWN_VERSION},dockerConfig=<null>]'

Activity

  1. rnorth commented on Sep 25, 2019

    @rnorth
    Member

    @dsyer thanks for flagging - that's embarassing, as we've taken pains to santise logs that could potentially hold registry credentials elsewhere. Sorry if this has caused inconvenience.

    We'll try and put out a patch release ASAP to fix this.

  2. self-assigned this
    on Sep 25, 2019
  3. dsyer commented on Sep 25, 2019

    @dsyer
    Author

    They were empty, in my case. But I guess if a user has them in ~/.docker/config.json they will show up here, which would be best to avoid if possible. Thanks.

  4. dsyer commented on Sep 25, 2019

    @dsyer
    Author

    Looks like maybe it's from an upstream library anyway (com.github.docker-java:docker-java)?

  5. dsyer commented on Sep 25, 2019

    @dsyer
    Author

    ... but actually we control the logging here: EnvironmentAndSystemPropertyClientProviderStrategy

  6. rnorth commented on Sep 25, 2019

    @rnorth
    Member

    Yes, it's something we control. Really, the logging code we have there is quite outdated and unnecessary - all registry auth is now resolved at pull-time rather than at startup.

    I'll raise a PR shortly to drastically prune this logging.

  7. added 2 commits that reference this issue on Sep 25, 2019
    29cae0d
    94f73f8
  8. added a commit that references this issue on Sep 26, 2019
    d3ba842
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions