Skip to content

crane: auth get returns json keys in lower case instead of title case #2217

@aelindeman

Description

@aelindeman

Describe the bug

crane auth get keys have changed to lowercase.

To Reproduce

$ crane auth login myregistry -u username -p password
2026/02/20 09:49:39 logged in via /home/xxx/.docker/config.json

$ crane auth get myregistry
{"username":"username","secret":"password"}

Expected behavior

$ crane auth get myregistry
{"Username":"username","Secret":"password"}

Expected keys to be Username and Secret, but were username and secret.

Additional context

This is a breaking change and divergence from other cli tools e.g. docker-credential-desktop.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions