PureStorage-OpenConnect / pure-fa-openmetrics-exporter

Pure Storage OpenMetrics exporter for FlashArray
Apache License 2.0
18 stars 26 forks source link

Pb to download container image from https://quay.io #17

Closed ligerard closed 1 year ago

ligerard commented 1 year ago

Hi, I have this Mc Afee message when i try to download the container image (docker pull quay.io/purestorage/pure-fa-om-exporter)

Current Rule Name: Allow File Size Error Message: (10065) Maximum compression ratio limit reached.

Mac Afee seems take it for a zip bomb. (https://en.wikipedia.org/wiki/Zip_bomb)

Could you please re deploy a docker image without this problem

genegr commented 1 year ago

Hi @ligerard, it looks like the build trigger in quay did not handle the latest tag properly. Now the tag is properly referencing the latest build of the image, therefore you should be able to pull the image even without specifying the version tag.

ligerard commented 1 year ago

Hi @genegr,

Thanks for your answer but i still have the problem. I send you the log when i try to replicate the in our registry:

Most layers are copied sucessfully, but one of them fails with the error mentionned above.

2023-01-10T10:16:20Z [INFO] [/controller/replication/transfer/image/transfer.go:125]: client for source registry [type: quay, URL: https://quay.io, insecure: true] created
2023-01-10T10:16:20Z [INFO] [/controller/replication/transfer/image/transfer.go:135]: client for destination registry [type: harbor, URL: http://core:8080, insecure: true] created
2023-01-10T10:16:20Z [INFO] [/controller/replication/transfer/image/transfer.go:168]: copying purestorage/pure-fa-om-exporter:[latest](source registry) to purestorage/pure-fa-om-exporter:[latest](destination registry)...
2023-01-10T10:16:20Z [INFO] [/controller/replication/transfer/image/transfer.go:196]: copying purestorage/pure-fa-om-exporter:latest(source registry) to purestorage/pure-fa-om-exporter:latest(destination registry)...
2023-01-10T10:16:20Z [INFO] [/controller/replication/transfer/image/transfer.go:343]: pulling the manifest of artifact purestorage/pure-fa-om-exporter:latest ...
2023-01-10T10:16:20Z [INFO] [/controller/replication/transfer/image/transfer.go:349]: the manifest of artifact purestorage/pure-fa-om-exporter:latest pulled
2023-01-10T10:16:20Z [INFO] [/controller/replication/transfer/image/transfer.go:270]: copying the blob sha256:bdb74f431b025c77ce5d058c9d9aa7081480812bf7caba1eaa6f3aa2fa899fa9(the 1th running)...
2023-01-10T10:16:20Z [INFO] [/controller/replication/transfer/image/transfer.go:296]: the blob sha256:bdb74f431b025c77ce5d058c9d9aa7081480812bf7caba1eaa6f3aa2fa899fa9 already exists on the destination registry, skip
2023-01-10T10:16:20Z [INFO] [/controller/replication/transfer/image/transfer.go:272]: copy the blob sha256:bdb74f431b025c77ce5d058c9d9aa7081480812bf7caba1eaa6f3aa2fa899fa9 completed
2023-01-10T10:16:20Z [INFO] [/controller/replication/transfer/image/transfer.go:270]: copying the blob sha256:ca7dd9ec2225f2385955c43b2379305acd51543c28cf1d4e94522b3d94cce3ce(the 1th running)...
2023-01-10T10:16:20Z [INFO] [/controller/replication/transfer/image/transfer.go:296]: the blob sha256:ca7dd9ec2225f2385955c43b2379305acd51543c28cf1d4e94522b3d94cce3ce already exists on the destination registry, skip
2023-01-10T10:16:20Z [INFO] [/controller/replication/transfer/image/transfer.go:272]: copy the blob sha256:ca7dd9ec2225f2385955c43b2379305acd51543c28cf1d4e94522b3d94cce3ce completed
2023-01-10T10:16:20Z [INFO] [/controller/replication/transfer/image/transfer.go:270]: copying the blob sha256:c41ae7ad2b39813485dabd88ae2e5ddce71b71a47d19af1377b0251055edf373(the 1th running)...
2023-01-10T10:16:20Z [INFO] [/controller/replication/transfer/image/transfer.go:296]: the blob sha256:c41ae7ad2b39813485dabd88ae2e5ddce71b71a47d19af1377b0251055edf373 already exists on the destination registry, skip
2023-01-10T10:16:20Z [INFO] [/controller/replication/transfer/image/transfer.go:272]: copy the blob sha256:c41ae7ad2b39813485dabd88ae2e5ddce71b71a47d19af1377b0251055edf373 completed
2023-01-10T10:16:20Z [INFO] [/controller/replication/transfer/image/transfer.go:270]: copying the blob sha256:15b491bbc2fee14d5914da432332ef2992302d2895ae90466c778c259e643fe0(the 1th running)...
2023-01-10T10:16:29Z [ERROR] [/controller/replication/transfer/image/transfer.go:332]: failed to pushing the blob sha256:15b491bbc2fee14d5914da432332ef2992302d2895ae90466c778c259e643fe0, size 122654844: Put "http://core:8080/v2/purestorage/pure-fa-om-exporter/blobs/uploads/1dbfcfca-fcd2-4032-9ff7-d6924f8a2dc4?_state=c-
finkr commented 1 year ago

The following issue: "smaller image #25", should solve your issue.