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
@@ -17,7 +17,9 @@ This page shows you how to create and manage an authentication token from the Sc
17
17
-[Created a containers namespace](/serverless-containers/how-to/create-manage-delete-containers-namespace/)
18
18
-[Deployed a container](/serverless-containers/how-to/deploy-container/)
19
19
20
-
## Creating authentication tokens from the Scaleway console
20
+
## Managing authentication from the Scaleway console
21
+
22
+
Serverless containers used to rely on a legacy token-based authentication to call private containers. [Scaleway IAM](/iam/) offers a modern way to access private resources using API keys.
21
23
22
24
<Tabsid="token-serverless">
23
25
<TabsTablabel="Scaleway IAM">
@@ -55,40 +57,52 @@ This page shows you how to create and manage an authentication token from the Sc
55
57
</TabsTab>
56
58
</Tabs>
57
59
60
+
## Calling private containers
58
61
59
-
## Using tokens
60
-
61
-
To use your token, you have to add the generated token to a `X-Auth-Token` header.
62
+
To call a private container, you have to add the **secret key** of the [previously created API key](#managing-authentication-from-the-scaleway-console) to a `X-Auth-Token` header.
62
63
63
64
A **private** container observes this behavior:
64
65
65
66
* If a call is made without the `X-Auth-Token` header, the call is rejected (status code `403`)
66
-
* If the `X-Auth-Token` header is provided, the token is validated using a public key attached to the namespace.
67
+
* If the `X-Auth-Token` header is provided, the token is validated using the IAM API public key corresponding to the private key provided.
67
68
68
-
For example, to execute a private container by providing a token using `curl`, run the following command:
69
+
For example, to execute a private container by providing a secret key using `curl`, run the following command:
0 commit comments