Skip to content

nerdctl login allows passing a username with a colon, which is forbidden by RFC 7617 #3069

Closed

Description

@apostasie

Description

Since we do support Basic Auth, we might want to disallow usernames containing colons entirely, or maybe only when we know the registry implements BA.

I do appreciate that MAYBE the first option would break things for people using usernames with a colon, so, maybe we can instead just warn the user when we see one?

Steps to reproduce the issue

  1. nerdctl login
  2. type in a username with a colon

Describe the results you received and expected

If the registry is using basic-auth, authentication will not work.
We should just not try with something that violates the RFC.

What version of nerdctl are you using?

1.7.6

Are you using a variant of nerdctl? (e.g., Rancher Desktop)

None

Host information

No response

Activity

  1. changed the title [-]nerdctl login allows passing a username with a colon, which is forbidden by RC 7617[/-] [+]nerdctl login allows passing a username with a colon, which is forbidden by RFC 7617[/+] on Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/unconfirmed-bug-claim

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions