Skip to content

[BUG] ENEEDAUTH when authenticating against a registry via mTLS #4765

Description

@jenseng

Is there an existing issue for this?

  • I have searched the existing issues

This issue exists in the latest npm version

  • I am using the latest npm

Current Behavior

If you have a custom registry that authenticates clients via mTLS (i.e. client cert/key in your .npmrc), you cannot publish unless you also specify some credentials, due to this check.

If your registry also validates any provided Authorization headers, the publish may fail if the credentials are invalid. Depending on the registry, this may not be configurable, so you might need to doubly authenticate (mTLS AND credentials).

Expected Behavior

npm publish with just a cert + key should proceed past this check.

If this gets fixed, future work for npm/npm-registry-fetch#38 should also take it into account.

Steps To Reproduce

No response

Environment

No response

Activity

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

    Bugthing that needs fixingNeeds Triageneeds review for next stepsRelease 8.xwork is associated with a specific npm 8 release

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      Sponsor
      SponsoredKunjungi sekarang
      Promo