Giter Club home page Giter Club logo

Comments (9)

mcoreix avatar mcoreix commented on June 5, 2024 1

@zyyw any updates?

from harbor.

zyyw avatar zyyw commented on June 5, 2024

@mcoreix could you please share with us the output of this command:

crane manifest harbor.your.domain/your_project/helm-charts/test-upload@${DIGEST}

Because based on my investigation:

helm create test-upload
helm dependency update test-upload
helm dependency build test-upload
helm package ./test-upload/ --version 0.0.1 --app-version v1.0.0
helm push test-upload-0.0.1.tgz oci://<harbor-endpoint>/library/
> output:
> Pushed: <harbor-endpoint>/library/test-upload:0.0.1
> Digest: sha256:c66806c9f8661a1d3a7c28cc398933c6c8f90d5c972bf31003854340030ae6b2

And when I run crane manifest <harbor-endpoint>/library/test-upload:0.0.1 | jq, output like this:

{
  "schemaVersion": 2,
  "config": {
    "mediaType": "application/vnd.cncf.helm.config.v1+json",
    "digest": "sha256:9c652d3b7360d822fa40c2f94891beb831974a6c8defd0f7f97da5daf11c4261",
    "size": 145
  },
  "layers": [
    {
      "mediaType": "application/vnd.cncf.helm.chart.content.v1.tar+gzip",
      "digest": "sha256:8cdf8991227727dee4be2b793114c860c8ee96e4ae85ef4886c0d4e253a3b227",
      "size": 3757
    }
  ]
}

From the output of the crane manifest, we can see that the config.mediaType is application/vnd.cncf.helm.config.v1+json, which explains that why it is not supported to scan with trivy.
Screenshot 2024-04-14 at 8 55 12 PM

from harbor.

zyyw avatar zyyw commented on June 5, 2024

As for Dev console in browser also shows readme.md with status code 500 Internal Server Error, tried to this:

helm push harbor-1.14.2.tgz oci://<harbor-endpoint>/library

the README.md displays as expected. (harbor-endpoint is in harbor version 2.10.0)
Screenshot 2024-04-14 at 9 11 17 PM

from harbor.

mcoreix avatar mcoreix commented on June 5, 2024

@mcoreix could you please share with us the output of this command:

crane manifest harbor.your.domain/your_project/helm-charts/test-upload@${DIGEST}

Because based on my investigation:

helm create test-upload
helm dependency update test-upload
helm dependency build test-upload
helm package ./test-upload/ --version 0.0.1 --app-version v1.0.0
helm push test-upload-0.0.1.tgz oci://<harbor-endpoint>/library/
> output:
> Pushed: <harbor-endpoint>/library/test-upload:0.0.1
> Digest: sha256:c66806c9f8661a1d3a7c28cc398933c6c8f90d5c972bf31003854340030ae6b2

And when I run crane manifest <harbor-endpoint>/library/test-upload:0.0.1 | jq, output like this:

{
  "schemaVersion": 2,
  "config": {
    "mediaType": "application/vnd.cncf.helm.config.v1+json",
    "digest": "sha256:9c652d3b7360d822fa40c2f94891beb831974a6c8defd0f7f97da5daf11c4261",
    "size": 145
  },
  "layers": [
    {
      "mediaType": "application/vnd.cncf.helm.chart.content.v1.tar+gzip",
      "digest": "sha256:8cdf8991227727dee4be2b793114c860c8ee96e4ae85ef4886c0d4e253a3b227",
      "size": 3757
    }
  ]
}

From the output of the crane manifest, we can see that the config.mediaType is application/vnd.cncf.helm.config.v1+json, which explains that why it is not supported to scan with trivy. Screenshot 2024-04-14 at 8 55 12 PM

Here i get this error:

{
  "schemaVersion": 2,
  "config": {
    "mediaType": "application/vnd.cncf.helm.config.v1+json",
    "digest": "sha256:dc3d04819898a9256dcf004c3df5002e069b94b6219b4e8c2c4df883e678757d",
    "size": 149
  },
  "layers": [
    {
      "mediaType": "application/vnd.cncf.helm.chart.provenance.v1.prov",
      "digest": "sha256:267ded90ba903e0befdc0351488f82701c8554cd3ebcb4b90b1efdd868ff2895",
      "size": 1089
    },
    {
      "mediaType": "application/vnd.cncf.helm.chart.content.v1.tar+gzip",
      "digest": "sha256:53361efb6c657ee8d910c2f838b08d99242ec22d645e820843758624004f4802",
      "size": 112934
    }
  ],
  "annotations": {
    "org.opencontainers.image.created": "2024-04-15T03:00:47Z",
    "org.opencontainers.image.description": "A Helm chart for Kubernetes",
    "org.opencontainers.image.title": "mailhog",
    "org.opencontainers.image.version": "1.0.1-17-6"
  }
}

Here i dont get the error:

{
  "schemaVersion": 2,
  "config": {
    "mediaType": "application/vnd.cncf.helm.config.v1+json",
    "digest": "sha256:1a281b4c71f69d289f8ff5990308f854b4b46a04356bb53b018ce6bf393b7d6a",
    "size": 149
  },
  "layers": [
    {
      "mediaType": "application/vnd.cncf.helm.chart.content.v1.tar+gzip",
      "digest": "sha256:c5330796fe167ed5332a460b75abaf4dedf26e35bd4dcc12eb13b9f684e41cb2",
      "size": 113647
    },
    {
      "mediaType": "application/vnd.cncf.helm.chart.provenance.v1.prov",
      "digest": "sha256:c8ecaee05cacf2b9e742619473c43627e21c1e7ac35563d1279f6e4630e98cba",
      "size": 1089
    }
  ],
  "annotations": {
    "org.opencontainers.image.created": "2024-04-09T08:45:56Z",
    "org.opencontainers.image.description": "A Helm chart for Kubernetes",
    "org.opencontainers.image.title": "mailhog",
    "org.opencontainers.image.version": "1.0.1-17-5"
  }
}

Same Chart...but different Tags

from harbor.

zyyw avatar zyyw commented on June 5, 2024

could you please share the core.log when you encounter with this error:

Dev console in browser also shows readme.md with status code 500 Internal Server Error.

from harbor.

mcoreix avatar mcoreix commented on June 5, 2024

@zyyw
2024-04-17T11:34:14Z [INFO] [/controller/registry/controller.go:222]: Start regular health check for registries with interval 5m0s
2024-04-17T11:40:28Z [ERROR] [/lib/http/error.go:57]: {"errors":[{"code":"UNKNOWN","message":"unknown: gzip: invalid header"}]}

from harbor.

mcoreix avatar mcoreix commented on June 5, 2024

@zyyw any updates?

from harbor.

zyyw avatar zyyw commented on June 5, 2024

Hi @mcoreix could you please upload the two oci compatible helm charts (one that works fine, and the other that errors out) to somewhere, maybe dockerhub, so that I can access and try to reproduce the scenario you mentioned above with them on a Harbor instance.

Thanks

from harbor.

oweis-nordlb avatar oweis-nordlb commented on June 5, 2024

@zyyw it can be any helm chart. I can upload one chart, get the error and upload the same chart again without an error

from harbor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.