Skip to content
This repository was archived by the owner on Jun 4, 2025. It is now read-only.

"jsctl registry auth output --format=dockerconfig" can be simplified #96

@amcginlay

Description

@amcginlay

jsctl registry auth output --format=dockerconfig produces a JSON object with four attributes: username, password, email and auth. Both password and auth are derived from the contents of ~/.jsctl/eu.gcr.io--jetstack-secure-enterprise.json making the resultant JSON look more complicated than it actually is. That would be fine if this complexity served an identifiable purpose.

Given that auth and password are equivalent, I suspected that one was not strictly needed to gain access to the private registry. This suspicion appears to be correct and the password attribute is indeed surplus to requirements.

You can (IMO should) remove the password attribute from the result of jsctl registry auth output --format=dockerconfig.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions