Skip to content

Don't send ~/.docker/config.json by default #5

@jpambrun

Description

@jpambrun

The current implementation sends ~/.docker/config.json as a secret if it exist. This isn't great:

  1. it's surprising, not mentioned anywhere and a security concern;
  2. it's left behind if interrupted (e.g. ctrl-c is pressed);
  3. the credential might not be the ones you want to use in the cluster (e.g. a service account with less privilege);
  4. sending this config file it often not enough (e.g. in GKE grc.io auth depends on the gcloud command and other credential files);
  5. it's often unnecessary (e.g. pushing to gcr.io from GKE doesn't require any secret if the default cluster service account is configured with gcs write permission)

As a result, I think it would be best to place this pushing of ~/.docker/config.json behind a dedicated flag and default to not sending any secrets.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions