Skip to content

Unable to parse WWW-Authenticate header from Harbor registry #370

@mainka

Description

@mainka

Description

When connecting to a Harbor registry via Generic Registry V2, the extension fails with:

Unable to parse WWW-Authenticate header: "Basic realm="harbor""

Steps to Reproduce

  1. Connect Registry -> Generic Registry V2
  2. Enter Harbor URL (e.g., https://harbor.example.com)
  3. Enter valid username/password (same credentials work with docker login)
  4. Error appears in the registry tree view

Expected Behavior

The extension should authenticate and list repositories from the Harbor registry.

Actual Behavior

The extension fails to parse the WWW-Authenticate header returned by Harbor.

Harbor returns:

WWW-Authenticate: Basic realm="harbor"

Additional context

  • Our harbor instance is protected by Keycloak
  • I use the CLI Secret provided in Harbor - User Profile, which works in docker CLI
  • ms-azuretools.vscode-containers version v2.4.0

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions