open-component-model / ocm

Open Component Model (Software Bill of Delivery Toolset)
https://ocm.software
Apache License 2.0
31 stars 19 forks source link

Credentials for npm repositories have no effect #753

Closed jensh007 closed 2 months ago

jensh007 commented 3 months ago

What happened: Credentials for npm are configured as documented in .ocmconfig or command line:

type: generic.config.ocm.software/v1
configurations:
  - type: credentials.config.ocm.software
    consumers:
      - identity:
          type: Registry.npmjs.com
          hostname: common.repositories.cloud.sap
        credentials:
          - type: Credentials
            properties:
              username: gardener-lm-ocm
              password: ...

What you expected to happen: Access to private npm registries is possible. But results in 401 http error

How to reproduce it (as minimally and precisely as possible): any resource with type: npmPackage and located in any private npm registry

Anything else we need to know: The type type: Registry.npmjs.comdiffers in syntax from all other types (OCIRegisrty, HelmChartRepository) and why a capital R?

Environment:

jensh007 commented 2 months ago

Reopening issue as it is still not working.

ocm version {"Major":"0", "Minor":"10", "Patch":"0", "PreRelease":"dev", "Meta":"7889729f27c719c06d661e03272c339ff50a8d19", "GitVersion":"0.10.0-dev+7889729f27c719c06d661e03272c339ff50a8d19", "GitCommit":"7889729f27c719c06d661e03272c339ff50a8d19", "GitTreeState":"clean", "BuildDate":"2024-05-15T07:19:44+0000", "GoVersion":"go1.22.2", "Compiler":"gc", "Platform":"darwin/arm64"}