Skip to content

docker-credential-secretservice assumes needing to query by hostname not URL #222

@yarikoptic

Description

@yarikoptic

Relates to

which provides some versioning etc info.

I have

❯ docker-credential-secretservice list
{"https://index.docker.io/v1/":"repronimservices","workshop.dev.flywheel.io":"yarikoptic@gmail.com"}

with

❯ grep -v '^#' /etc/containers/registries.conf
[registries.search]
registries = ['docker.io']
❯ cat ~/.docker/config.json
{
	"auths": {
		"https://index.docker.io/v1/": {}
	},
	"credsStore": "secretservice",
	"experimental": "enabled"
}

and everything seems to work ok in general - I can docker login to switch to another user etc. But attempt to run a simple oras-py code fails since docker-credential-secretservice is provided the hostname (docker.io) and not URL.

https://github.com/docker/docker-credential-helpers?tab=readme-ov-file#development says that

get: Retrieves credentials from the keychain. The payload in the standard input is the raw value for the ServerURL.

so sounds like it expects "ServerURL"... so URL not hostname? Could/should both URL and hostname tried but is there a correspondence between the two somewhere?

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