R
RunPod12mo ago
JorgeG

Use private image from Google Cloud Artifact Registry

I'm trying to setup the authentication to GCP Artifact Registry, but without much success. I've followed the instructions here: https://cloud.google.com/artifact-registry/docs/docker/authentication#json-key I try to configure the credentials in RunPod using the contents of the base64 key file, but I immediately get an error from RunPod as soon as I hit save. A red popup on the top right saying "❌ Failed to Update Registry Credential". I guess this is because the key is too long? (3185 chars) How should I get around this?
No description
13 Replies
justin
justin12mo ago
I wanna say they only do docker registry credentials?
You can register your container registry credentials here to pull private images from various container registries. Please be aware that we currently only support docker login type credentials. You can add your credentials to a template by registering the credential here and then selecting it from the dropdown when editing or creating your template.
You can register your container registry credentials here to pull private images from various container registries. Please be aware that we currently only support docker login type credentials. You can add your credentials to a template by registering the credential here and then selecting it from the dropdown when editing or creating your template.
I could be wrong
justin
justin12mo ago
No description
justin
justin12mo ago
@flash-singh Do u guys support other registry credentials?
flash-singh
flash-singh12mo ago
all are supported, they use same spec
JorgeG
JorgeGOP12mo ago
well, technically this is still docker login. You can use the docker login command to authenticate with google cloud, but it requires the huge key.
flash-singh
flash-singh12mo ago
google must of updated and increased their password length again, it used to be lower, @zacksparrow what char length do we allow? is it possible to increase that to 1400 with low effort?
zacksparrow
zacksparrow12mo ago
yeah that should be doable
JorgeG
JorgeGOP12mo ago
that would be great, thanks for the quick response. any timeline on that?
zacksparrow
zacksparrow12mo ago
hmm it looks like we currently allow lengths of up to 4000 char
flash-singh
flash-singh12mo ago
try the non base64
JorgeG
JorgeGOP12mo ago
the non-base 64 worked 🤷‍♂️ the number of chars the json file is 2386 the number of chars in the b64-encoded file is 3185 according to wc -m <file> (I noticed just now that I made a typo in my first message. its 3185 chars, not 1385) still doesnt make sense if the max length is 4000 according to @zacksparrow
zacksparrow
zacksparrow12mo ago
yeah we also encode it which would potentially push it beyond the character limit
JorgeG
JorgeGOP12mo ago
thanks for the help!
Want results from more Discord servers?
Add your server