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
@@ -1083,6 +1095,7 @@ Defines the mechanism used to authenticate users and workflows attempting to acc
1083
1095
1084
1096
| Property | Type | Required | Description |
1085
1097
|----------|:----:|:--------:|-------------|
1098
+
| use | `string` | `no` | The name of the top-level authentication definition to use. Cannot be used by authentication definitions defined at top level. |
1086
1099
| basic | [`basicAuthentication`](#basic-authentication) | `no` | The `basic` authentication scheme to use, if any.<br>Required if no other property has been set, otherwise ignored. |
1087
1100
| bearer | [`bearerAuthentication`](#bearer-authentication) | `no` | The `bearer` authentication scheme to use, if any.<br>Required if no other property has been set, otherwise ignored. |
1088
1101
| certificate | [`certificateAuthentication`](#certificate-authentication) | `no` | The `certificate` authentication scheme to use, if any.<br>Required if no other property has been set, otherwise ignored. |
@@ -1102,15 +1115,17 @@ use:
1102
1115
- usernamePasswordSecret
1103
1116
authentication:
1104
1117
sampleBasicFromSecret:
1105
-
basic: usernamePasswordSecret
1118
+
basic:
1119
+
use: usernamePasswordSecret
1106
1120
do:
1107
1121
- sampleTask:
1108
1122
call: http
1109
1123
with:
1110
1124
method: get
1111
1125
endpoint:
1112
1126
uri: https://secured.fake.com/sample
1113
-
authentication: sampleBasicFromSecret
1127
+
authentication:
1128
+
use: sampleBasicFromSecret
1114
1129
```
1115
1130
1116
1131
#### Basic Authentication
@@ -1133,19 +1148,20 @@ document:
1133
1148
name: basic-authentication-example
1134
1149
version: '0.1.0'
1135
1150
use:
1136
-
authentication:
1151
+
authentications:
1137
1152
sampleBasic:
1138
1153
basic:
1139
1154
username: admin
1140
-
password: 123
1155
+
password: password123
1141
1156
do:
1142
1157
- sampleTask:
1143
1158
call: http
1144
1159
with:
1145
1160
method: get
1146
1161
endpoint:
1147
1162
uri: https://secured.fake.com/sample
1148
-
authentication: sampleBasic
1163
+
authentication:
1164
+
use: sampleBasic
1149
1165
```
1150
1166
1151
1167
#### Bearer Authentication
@@ -1486,8 +1502,7 @@ When set, runtimes must validate output data against the defined schema, unless
1486
1502
| Property | Type | Required | Description |
1487
1503
|----------|:----:|:--------:|-------------|
1488
1504
| schema | [`schema`](#schema) | `no` | The [`schema`](#schema) used to describe and validate output data.<br>*Even though the schema is not required, it is strongly encouraged to document it, whenever feasible.* |
1489
-
| from | `string`<br>`object` | `no` | A [runtime expression](#runtime-expressions), if any, used to filter and/or mutate the workflow/task output. |
1490
-
| to | `string`<br>`object` | `no` | A [runtime expression](#runtime-expressions), if any, used to update the context, using both output and context data. |
1505
+
| as | `string`<br>`object` | `no` | A [runtime expression](#runtime-expressions), if any, used to filter and/or mutate the workflow/task output. |
Copy file name to clipboardExpand all lines: dsl.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -204,6 +204,7 @@ When the evaluation of an expression fails, runtimes **must** raise an error wit
204
204
|:-----|:----:|:------------|
205
205
| context |`map`| The task's context data. |
206
206
| input |`any`| The task's filtered input. |
207
+
| secrets |`map`| A key/value map of the workflow secrets.<br>To avoid unintentional bleeding, secrets can only be used in the `input.from` runtime expression. |
207
208
| task |[`taskDescriptor`](#task-descriptor)| Describes the current task. |
208
209
| workflow |[`workflowDescritor`](#workflow-descriptor)| Describes the current workflow. |
0 commit comments