I have an application that uses OpenFaaS.
In particular, I'm using faasd because the function will run on devices with poor processing capacity. I have a private registry on which an image of an 'X' function is present. I want to pull this image from faasd to deploy and execute it, but I'm facing a problem: it seems like I'm not authenticated when I try to perform the action, but I pass correctly the registryAuth token.
Here there is an example of what I'm doing (following this https://ericstoekl.github.io/faas/operations/managing-images/#deploy-functions-with-private-registries-credentials)
POST
<ip_address>:8080/system/functions
Headers:
{
"Authorization": "mytoken"
}
Body:
{
"service": "functionName",
"image": "<registry_ip_address>/functions/functionName:<version>",
"envProcess": "/.../myprocess",
"registryAuth": <base64 token obtained from 'user:password'>,
"secrets": [
"mysecret"
]
}
I confirm that parameters are all correct and I receive this error:
"unable to pull image <registry_ip_address>/functions/functionName:: cannot pull: failed to resolve reference "<registry_ip_address>/functions/functionName:": no scope specified for token auth challenge"
The registry is working well because if I try to download the image in a classic way with docker, I'm able to pull the image.
Thank you in advance!