You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to run the plugin against a helm chart using containers hosted on quay.io in a private registry.
I've looked at --help and the README, but it wasn't obvious how I can provide credentials for this scenario.
I can docker pull the images myself without problems, but snyk fails like so:
helm snyk test<chartdir>/
failed pulling image
err.statusCode: 500
err.message: (HTTP code 500) server error - unauthorized: access to the requested resource is not authorized
Error caught: (HTTP code 500) server error - unauthorized: access to the requested resource is not authorized
Thank you!
PS: in the readme, you're using stable/redis as an example chart, except the command doesn't really work like that - you need to run a helm fetch stable/redis --untar first, in which case the chart dir is just redis, or you need to run helm fetch stable/redis --untar --untardir stable :)
The text was updated successfully, but these errors were encountered:
Hi @reschex. The plugin doesn't currently have a way to accept credentials for private image registries...
I can see a couple ways of getting around this...
we could have an option like --no-pull or something which would skip trying to pull the images before we test them; that way you could just pull the images yourself and then test the plugin wouldn't fail upon trying to pull them.
We could allow you to pass credentials into the plugin and then pass through to the registry when we go to pull the images.
Tbh, either way would work for me, but option 1. feels like the less complicated option to implement.
I guess, you could argue that the image in our remote repository could be very different from the image that I have locally tagged with the same name.
In that scenario, running the plugin with --no-pull would show results which don't reflect what ends up running in kubernetes.
Obviously this becomes a moot point when we're talking about integrating this in CI etc and also a developer would have to maliciously tag a clean image with the wrong name & run the plugin to achieve what..? They'd fool the plugin and at the same time shoot themselves in the foot, so if they want to do that.. ¯_(ツ)_/¯
Hi
I'm trying to run the plugin against a helm chart using containers hosted on quay.io in a private registry.
I've looked at --help and the README, but it wasn't obvious how I can provide credentials for this scenario.
I can docker pull the images myself without problems, but snyk fails like so:
Thank you!
PS: in the readme, you're using stable/redis as an example chart, except the command doesn't really work like that - you need to run a
helm fetch stable/redis --untar
first, in which case the chart dir is justredis
, or you need to runhelm fetch stable/redis --untar --untardir stable
:)The text was updated successfully, but these errors were encountered: