File tree 1 file changed +7
-0
lines changed
Development/v4.x/backend/configuration
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -142,6 +142,9 @@ top-level variables are availabe in the handlebars context:
142
142
| `datasets` | `DatasetClass[]` | `{{#each datasets}}{{pid}}{{/each}}` | All datasets referenced in `job.jobParams.datasetsList`. |
143
143
| `env` | `object` | `{{env.SECRET_TOKEN}}` | Access environmental variables |
144
144
145
+ Environmental variables are particularly useful for secrets that should not be stored in
146
+ the config file.
147
+
145
148
# ## Actions Configuration
146
149
147
150
The following actions are built-in to SciCat and can be included in the `actions` array.
@@ -162,6 +165,7 @@ For example:
162
165
method: GET
163
166
headers:
164
167
accept: application/json
168
+ Authorization: "Bearer {{env.ARCHIVER_AUTH_TOKEN}}",
165
169
` ` `
166
170
167
171
Where :
@@ -171,6 +175,9 @@ Where:
171
175
- `headers` (optional) : An object containing HTTP headers to be included in the request.
172
176
- `body` (optional) : The body of the request, for methods like "POST" or "PUT".
173
177
178
+ It is recommended that authorization tokens be stored as environmental variables rather
179
+ than included directly in the jobConfig.yaml file.
180
+
174
181
# ### Validate
175
182
176
183
The `validate` action is used to validate requests to the job endpoints. It is used to
You can’t perform that action at this time.
0 commit comments