How to migrate from JWT to IAM authentication for private containers
Scaleway Serverless Containers used to rely on legacy JWT authentication tokens to access private resources. This feature is now deprecated, you must therefore use Scaleway IAM to access your private containers using an API key.
-
Set up IAM authentication by creating an IAM application bearing an API key, and grant it the
ContainersPrivateAccessvia an IAM policy. -
Delete the existing JWT for your Serverless Containers to revoke legacy authentication.
-
Pass the secret key of your IAM application's API key via the
X-Auth-Tokenheader to call your private container:
curl -H "X-Auth-Token: <YOUR_SECRET_KEY>" <YOUR_CONTAINER_ENDPOINT>See Also
Still need help?Create a support ticket