Comments (9)
@zyyw any updates?
from harbor.
@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.
from harbor.
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)
from harbor.
@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 theconfig.mediaType
isapplication/vnd.cncf.helm.config.v1+json
, which explains that why it is not supported to scan with trivy.
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.
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.
@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.
@zyyw any updates?
from harbor.
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.
@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)
- The status should be cleaned on recreating SBOM
- Performance Improvement Proposal for queries related with the Task Table HOT 10
- Generate SBOM button not showing properly for Unsupported Artifact
- SBOM status stay blank for index type of image once generation succeeded.
- Proxy Cache HOT 2
- Push an image to Harbor, the `SBOM` column should be `No SBOM` with a circle around it.
- SBOM replicated to destination Harbor is not deleted for the first time when triggering SBOM manual generation
- Is there any parameter which restricts thenumber of connection to harbor ? HOT 8
- Image pull issue from Harbor registry which is deployed on the same cluster. HOT 5
- `No SBOM` logic between SBOM deleted and literally no SBOM generation should be the same HOT 2
- Use nginx to proxy harbor can lead to unexpect problem HOT 3
- Failed to fetch
- Maximum parallel replications for pull HOT 3
- Maintain status information in the backend API for list artifact API
- SBOM tab should not exist when the artifact is oci-compliant helm-chart
- Switching Harbor from nodePort to cluster IP or vice versa without Harbor reinstallation
- 503 DNS error when pulling images from Harbor deployed in the same cluster where Apps are deployed. The service type is ClusterIP.
- Stuck on pushing image when not specify any projects HOT 4
- GC Can delete that are not supposed to be deleted. HOT 1
- Jobservice: GC logs blank page when using DB logging
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from harbor.