Skip to content

Commit 97c70d4

Browse files
feat(jobs): permissions precisions
1 parent 056a45f commit 97c70d4

File tree

4 files changed

+20
-8
lines changed

4 files changed

+20
-8
lines changed

pages/iam/reference-content/permission-sets.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Below is a list of the permission sets available at Scaleway.
6565
| FunctionsFullAccess | Full access to create, read, list, edit and delete Functions |
6666
| MessagingAndQueuingReadOnly | List and read access to Messaging |
6767
| MessagingAndQueuingFullAccess | Full access to create, read, list, edit and delete Messaging |
68-
| ServerlessJobsFullAccess | Full access to create, read, list, edit and delete job definition/run |
68+
| ServerlessJobsFullAccess | Full access to create, read, list, edit and delete job definition/run. To start a job, in some conditions permissions to Registry and Secret Manager can be required. |
6969
| ServerlessJobsReadOnly | List and read access to job definition/run |
7070
| ServerlessSQLDatabaseReadOnly| List and read access to Serverless SQL Database |
7171
| ServerlessSQLDatabaseReadWrite| List, read and write access to Serverless SQL Database. Includes data and table structure edition. Does not include permissions to create databases or edit settings |

pages/serverless-jobs/how-to/create-job.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@ Scaleway's Serverless Jobs allows you to create jobs from several container [reg
4949
<Tabs>
5050
<TabsTab label="Data">
5151
1. Declare [environment variables](/serverless-jobs/concepts/#environment-variables) you want to inject into your job. For each environment variable, click **+Add variable** and enter the key/value pair.
52-
2. Add [secrets references](/serverless-functions/concepts/#secrets) for your Job. Secret references are environment variables fetched from [Scaleway Secret Manager](/secret-manager/) that are injected into your job, but the values are not retained or displayed by Scaleway after initial validation.
52+
2. Add [secrets references](/serverless-functions/concepts/#secrets) for your Job. Secret references are environment variables fetched from [Scaleway Secret Manager](/secret-manager/) that are injected into your job, but the values are not retained or displayed by Scaleway after initial validation.
5353
<Message type="note">
5454
Encode your environment variables and secrets to `base64` if they are too large, and contain carriage returns.
5555
</Message>
5656
</TabsTab>
5757
<TabsTab label="Storage">
58-
- Customize the ephemeral storage for your job according to your requirements. The data stored in your job is not retained once it is finished.
58+
- Customize the ephemeral storage for your job according to your requirements. The data stored in your job is not retained once it is finished.
5959
</TabsTab>
6060
<TabsTab label="Execution">
6161
1. Add a **startup command** to your job. It will be executed every time your job is run.
@@ -114,13 +114,13 @@ Private external container registries are currently not supported.
114114
<Tabs>
115115
<TabsTab label="Data">
116116
1. Declare [environment variables](/serverless-jobs/concepts/#environment-variables) you want to inject into your job. For each environment variable, click **+Add variable** and enter the key/value pair.
117-
2. Add [secrets references](/serverless-functions/concepts/#secrets) for your Job. Secret references are environment variables fetched from [Scaleway Secret Manager](/secret-manager/) that are injected into your job, but the values are not retained or displayed by Scaleway after initial validation.
117+
2. Add [secrets references](/serverless-functions/concepts/#secrets) for your Job. Secret references are environment variables fetched from [Scaleway Secret Manager](/secret-manager/) that are injected into your job, but the values are not retained or displayed by Scaleway after initial validation.
118118
<Message type="note">
119119
Encode your environment variables and secrets to `base64` if they are too large, and contain carriage returns.
120120
</Message>
121121
</TabsTab>
122122
<TabsTab label="Storage">
123-
- Customize the ephemeral storage for your job according to your requirements. The data stored in your job is not retained once it is finished.
123+
- Customize the ephemeral storage for your job according to your requirements. The data stored in your job is not retained once it is finished.
124124
</TabsTab>
125125
<TabsTab label="Execution">
126126
1. Add a **startup command** to your job. It will be executed every time your job is run.

pages/serverless-jobs/how-to/run-job.mdx

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,18 @@ The **Job runs** section contains basic monitoring information for your jobs:
4949
- A start date and an end date
5050
- The duration of the job execution
5151

52+
## Permissions and product dependencies
53+
54+
Depending some settings Serverless Jobs can rely on different products like:
55+
- **Secret Manager**: to securly inject data into Jobs
56+
- **Container Registry**: to store images of Jobs
57+
58+
Starting a Job Definition with product dependencies using IAM policies can fail if some permissions are not definied properly.
59+
60+
If the Job Definition uses an image from **Container Registry**, add `ContainerRegistryReadOnly` permission.
61+
62+
If the Job Definition consumes data from **Secret Manager**; add `SecretManagerSecretAccess` permission.
63+
5264
<Message type="tip">
5365
Use [Cockpit](/cockpit/quickstart/) for in-depth monitoring of the activity of your serverless jobs.
5466
</Message>
55-
56-

pages/serverless-jobs/troubleshooting/job-in-error-state.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,6 @@ My job run is in an error state.
1515

1616
- Make sure that you have built your image for an `amd64` architecture, as `arm64` is not supported. See the [Architecture](/serverless-jobs/reference-content/jobs-limitations/#architecture) documentation for more information.
1717

18-
- Make sure that your deployment does not exceed the limitations of [Serverless Jobs](/serverless-jobs/reference-content/jobs-limitations/).
18+
- Make sure that your deployment does not exceed the limitations of [Serverless Jobs](/serverless-jobs/reference-content/jobs-limitations/).
19+
20+
- Make sure to use the correct permissions when other products are involved [Permission dependencies](/serverless-jobs/how-to/run-job/#permissions-and-product-dependencies)

0 commit comments

Comments
 (0)