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
Copy file name to clipboardExpand all lines: pages/serverless-containers/how-to/create-auth-token-from-console.mdx
+27-10Lines changed: 27 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,25 +20,42 @@ This page shows you how to create and manage an authentication token from the Sc
20
20
21
21
## Creating authentication tokens from the Scaleway console
22
22
23
-
1. Click **Containers** in the **Serverless** section of the side menu. The Serverless Containers page displays.
23
+
<Tabsid="token-serverless">
24
+
<TabsTablabel="Scaleway IAM">
25
+
1.[Create an IAM application](/iam/how-to/create-application/) that will be used as a principal for the policy granting access to your private container.
24
26
25
-
2.Click the relevant containers namespace to see a list of containers in this namespace.
27
+
2.[Create an API key](/iam/how-to/create-api-keys/) for your application. Store the secret key securely, as it is only shown once.
26
28
27
-
3. Click the name of the relevant container in the **Containers** tab. The container's details display.
29
+
3.[Create an IAM policy](/iam/how-to/create-policy/) with the following elements:
30
+
-**Scope**: the desired Project(s)
31
+
-**Principal**: the application you just created
32
+
-**Permission set**: `ContainersPrivateAccess`
33
+
34
+
You can now [use your private key as a token](#using-tokens) to call private containers.
35
+
</TabsTab>
36
+
<TabsTablabel="JWT (legacy)">
37
+
1. Click **Containers** in the **Serverless** section of the side menu. The Serverless Containers page displays.
28
38
29
-
4. Click the **Security** tab. A list of settings displays.
39
+
2. Click the relevant containers namespace to see a list of containers in this namespace.
30
40
31
-
5. Click **Generate token**in the **Tokens**panel. A pop-up displays.
41
+
3. Click the name of the relevant container in the **Containers**tab. The container's details display.
32
42
33
-
6. Enter the token description and set an expiration date for the token. Optionally, tick the box **No expiration date**, to have a token with unlimited validity. Then, click **Generate token**.
43
+
4. Click the **Security** tab. A list of settings displays.
34
44
35
-
7. Copy the token from the pop-up and store it in a safe environment.
45
+
5. Click **Generate token** in the **Tokens** panel. A pop-up displays.
36
46
37
-
<Messagetype="important">
47
+
6. Enter the token description and set an expiration date for the token. Optionally, tick the box **No expiration date**, to have a token with unlimited validity. Then, click **Generate token**.
38
48
39
-
The token key will only be available for copy once. Make sure to store it securely before leaving the page.
49
+
7. Copy the token from the pop-up and store it in a safe environment.
50
+
51
+
<Messagetype="important">
52
+
53
+
The token key will only be available for copy once. Make sure to store it securely before leaving the page.
0 commit comments