@oomol-lab/open-flow 0.1.0-alpha.3 → 0.1.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/{addNodeOptions-B_d-Z5D3.js → addNodeOptions-CGyTkP99.js} +27 -28
- package/dist/browser/{flowWorkspace-CRRe__mi.js → flowWorkspace-CGsEHe2F.js} +1 -1
- package/dist/browser/workbench-contract.d.ts +0 -1
- package/dist/browser/workbench.js +18 -19
- package/dist/common/control-api-conformance.js +14 -17
- package/dist/common/control-api-errors.d.ts +4 -0
- package/dist/common/control-api.d.ts +6 -6
- package/dist/common/control-api.js +24 -24
- package/dist/common/integration-trigger.d.ts +1 -0
- package/dist/common/provider-triggers.js +928 -796
- package/dist/common/webhook-trigger.js +34 -0
- package/package.json +1 -1
|
@@ -144,6 +144,40 @@ var u = [], d = [{
|
|
|
144
144
|
}, "Disallowed origin");
|
|
145
145
|
}
|
|
146
146
|
},
|
|
147
|
+
{
|
|
148
|
+
fixture: {
|
|
149
|
+
inputsDef: u,
|
|
150
|
+
options: {
|
|
151
|
+
responseData: "<script>globalThis.compromised = true<\/script>",
|
|
152
|
+
responseHeaders: {
|
|
153
|
+
"access-control-allow-credentials": "true",
|
|
154
|
+
"content-security-policy": "default-src * 'unsafe-inline'",
|
|
155
|
+
"content-type": "text/html",
|
|
156
|
+
location: "https://attacker.example",
|
|
157
|
+
"set-cookie": "open_flow_operator_session=forged",
|
|
158
|
+
"x-accel-redirect": "/auth/session"
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
name: "prevents Project responses from becoming executable or controlling deployment headers",
|
|
163
|
+
async verify(e) {
|
|
164
|
+
await c(await l(e), {
|
|
165
|
+
body: "<script>globalThis.compromised = true<\/script>",
|
|
166
|
+
headers: {
|
|
167
|
+
"access-control-allow-credentials": null,
|
|
168
|
+
"content-security-policy": "default-src 'none'; frame-ancestors 'none'; sandbox",
|
|
169
|
+
"content-type": "text/plain;charset=UTF-8",
|
|
170
|
+
location: null,
|
|
171
|
+
"referrer-policy": "no-referrer",
|
|
172
|
+
"set-cookie": null,
|
|
173
|
+
"x-accel-redirect": null,
|
|
174
|
+
"x-content-type-options": "nosniff",
|
|
175
|
+
"x-frame-options": "DENY"
|
|
176
|
+
},
|
|
177
|
+
status: 200
|
|
178
|
+
}, "Safe configured response");
|
|
179
|
+
}
|
|
180
|
+
},
|
|
147
181
|
{
|
|
148
182
|
fixture: { inputsDef: d },
|
|
149
183
|
name: "rejects invalid JSON, invalid payloads, invalid idempotency keys, and oversized bodies",
|