@takaro/helpers 0.0.0-dev.7dd5e4d → 0.0.0-dev.7dd8bd0
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/.source-hash +1 -1
- package/dist/egress.d.ts.map +1 -1
- package/dist/egress.js +62 -40
- package/dist/egress.js.map +1 -1
- package/package.json +4 -4
package/dist/.source-hash
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
1aa58e773713e79edc9e43ca9a76b9701217b223d57de67547d215d1c07b51a6
|
package/dist/egress.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"egress.d.ts","sourceRoot":"","sources":["../src/egress.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"egress.d.ts","sourceRoot":"","sources":["../src/egress.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAEZ,KAAK,aAAa,EAGlB,KAAK,mBAAmB,EAEzB,MAAM,OAAO,CAAC;AAKf,eAAO,MAAM,oBAAoB,kBAAkB,CAAC;AAEpD,qBAAa,iBAAkB,SAAQ,KAAK;IAC1C,YAAY,OAAO,EAAE,MAAM,EAG1B;CACF;AAaD,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,CAcvD;AAED,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,SAAS,MAAM,EAAE,CAAC;IAChC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAE/B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC;AAGD,QAAA,MAAM,eAAe,YACnB,YAAY,EACZ,eAAe,EACf,QAAQ,EACR,aAAa,EACb,UAAU,EACV,cAAc,EACd,KAAK,EACL,QAAQ,EACR,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,gBAAgB,EAChB,SAAS,CACD,CAAC;AA0BX,MAAM,MAAM,oBAAoB,GAAG,aAAa,GAC9C,IAAI,CAAC,OAAO,KAAK,EAAE,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG;IACrD,MAAM,CAAC,MAAM,CAAC,EAAE,mBAAmB,GAAG,oBAAoB,CAAC;CAC5D,CAAC;AAEJ,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,mBAAmB,GAAG,oBAAoB,CA+GlF"}
|
package/dist/egress.js
CHANGED
|
@@ -47,13 +47,32 @@ const CARRIED_STATICS = [
|
|
|
47
47
|
'HttpStatusCode',
|
|
48
48
|
'VERSION',
|
|
49
49
|
];
|
|
50
|
+
// Caller-controlled keys that pick the destination or the transport.
|
|
51
|
+
const STRIPPED_KEYS = [
|
|
52
|
+
'socketPath',
|
|
53
|
+
'httpAgent',
|
|
54
|
+
'httpsAgent',
|
|
55
|
+
'transport',
|
|
56
|
+
'lookup',
|
|
57
|
+
'beforeRedirect',
|
|
58
|
+
'httpVersion',
|
|
59
|
+
'http2Options',
|
|
60
|
+
// false sends an absolute url to baseURL's host, past the host check (GH #3290).
|
|
61
|
+
'allowAbsoluteUrls',
|
|
62
|
+
];
|
|
63
|
+
// Transforms run with `this` = the dispatched config; give them a copy so they cannot retarget it (GH #3290).
|
|
64
|
+
function isolated(fns) {
|
|
65
|
+
return (fns === undefined ? [] : [fns].flat()).map((fn) => function isolatedTransform(...args) {
|
|
66
|
+
return Reflect.apply(fn, Object.assign(Object.create(null), this), args);
|
|
67
|
+
});
|
|
68
|
+
}
|
|
50
69
|
export function createGuardedAxios(opts) {
|
|
51
70
|
const apiHost = normaliseHost(new URL(opts.apiUrl).hostname);
|
|
52
71
|
const allowed = new Set([apiHost, ...opts.allowedHosts.map((host) => normaliseHost(host))]);
|
|
53
72
|
const proxyAgent = opts.egressProxyUrl === undefined ? undefined : new HttpsProxyAgent(opts.egressProxyUrl);
|
|
54
73
|
// One budget shared by every create() descendant, so a derived instance cannot reset the cap.
|
|
55
74
|
let inFlight = 0;
|
|
56
|
-
// Requests past the cap wait their turn rather than fail:
|
|
75
|
+
// Requests past the cap wait their turn rather than fail: official Modules fan out with Promise.all.
|
|
57
76
|
const waiting = [];
|
|
58
77
|
const acquire = async () => {
|
|
59
78
|
if (opts.maxConcurrentRequests === undefined || inFlight < opts.maxConcurrentRequests) {
|
|
@@ -72,15 +91,52 @@ export function createGuardedAxios(opts) {
|
|
|
72
91
|
inFlight -= 1;
|
|
73
92
|
}
|
|
74
93
|
};
|
|
94
|
+
const deny = (message) => {
|
|
95
|
+
opts.onDenied(message);
|
|
96
|
+
throw new EgressDeniedError(message);
|
|
97
|
+
};
|
|
98
|
+
// Works on an own-key, null-prototype snapshot: axios >= 1.21 reads inherited keys, and a getter or a
|
|
99
|
+
// non-configurable key on the caller's object must not survive the strip (GH #3290).
|
|
100
|
+
const hardened = (incoming) => {
|
|
101
|
+
const config = Object.assign(Object.create(null), incoming);
|
|
102
|
+
const target = new URL(config.url ?? '', config.baseURL);
|
|
103
|
+
const host = normaliseHost(target.hostname);
|
|
104
|
+
if (!allowed.has(host)) {
|
|
105
|
+
deny(`Host "${host}" is not allowed from Modules. Ask an operator to add it to the Takaro egress allowlist.`);
|
|
106
|
+
}
|
|
107
|
+
const proxied = proxyAgent !== undefined && host !== apiHost;
|
|
108
|
+
// The proxy tunnels TLS and checks its SNI; it refuses everything else.
|
|
109
|
+
if (proxied && target.protocol !== 'https:') {
|
|
110
|
+
deny(`"${target.protocol}//${host}" is not allowed from Modules: external hosts are reachable over https:// only.`);
|
|
111
|
+
}
|
|
112
|
+
config.maxRedirects = 0;
|
|
113
|
+
config.proxy = false;
|
|
114
|
+
for (const key of STRIPPED_KEYS) {
|
|
115
|
+
if (!Reflect.deleteProperty(config, key)) {
|
|
116
|
+
deny(`"${key}" could not be removed from the request config, so the request was not sent.`);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
// After the deletion above, so nothing the Module passed can replace it.
|
|
120
|
+
if (proxied) {
|
|
121
|
+
config.httpsAgent = proxyAgent;
|
|
122
|
+
}
|
|
123
|
+
if (opts.maxResponseBytes !== undefined) {
|
|
124
|
+
config.maxContentLength = opts.maxResponseBytes;
|
|
125
|
+
config.maxBodyLength = opts.maxResponseBytes;
|
|
126
|
+
}
|
|
127
|
+
return config;
|
|
128
|
+
};
|
|
75
129
|
// The slot is held around the adapter call itself, so every settled request frees it, whatever it threw.
|
|
76
130
|
// A re-sent `error.config` carries an adapter wrapped here already; unwrap it, or it would need two slots.
|
|
77
131
|
const unthrottled = new WeakMap();
|
|
78
132
|
const throttled = (adapter) => {
|
|
79
133
|
const inner = unthrottled.get(adapter) ?? adapter;
|
|
80
134
|
const wrapped = async (config) => {
|
|
135
|
+
// Again at the network boundary: the config stays mutable after the interceptor (GH #3290).
|
|
136
|
+
const outgoing = hardened(config);
|
|
81
137
|
await acquire();
|
|
82
138
|
try {
|
|
83
|
-
return await inner(
|
|
139
|
+
return await inner(outgoing);
|
|
84
140
|
}
|
|
85
141
|
finally {
|
|
86
142
|
release();
|
|
@@ -89,10 +145,6 @@ export function createGuardedAxios(opts) {
|
|
|
89
145
|
unthrottled.set(wrapped, inner);
|
|
90
146
|
return wrapped;
|
|
91
147
|
};
|
|
92
|
-
const deny = (message) => {
|
|
93
|
-
opts.onDenied(message);
|
|
94
|
-
throw new EgressDeniedError(message);
|
|
95
|
-
};
|
|
96
148
|
const build = (defaults) => {
|
|
97
149
|
const instance = axios.create({
|
|
98
150
|
...defaults,
|
|
@@ -102,42 +154,12 @@ export function createGuardedAxios(opts) {
|
|
|
102
154
|
? {}
|
|
103
155
|
: { maxContentLength: opts.maxResponseBytes, maxBodyLength: opts.maxResponseBytes }),
|
|
104
156
|
});
|
|
105
|
-
instance.interceptors.request.use((
|
|
106
|
-
const target = new URL(config.url ?? '', config.baseURL);
|
|
107
|
-
const host = normaliseHost(target.hostname);
|
|
108
|
-
if (!allowed.has(host)) {
|
|
109
|
-
deny(`Host "${host}" is not allowed from Modules. Ask an operator to add it to the Takaro egress allowlist.`);
|
|
110
|
-
}
|
|
111
|
-
const proxied = proxyAgent !== undefined && host !== apiHost;
|
|
112
|
-
// The proxy tunnels TLS and checks its SNI; it refuses everything else.
|
|
113
|
-
if (proxied && target.protocol !== 'https:') {
|
|
114
|
-
deny(`"${target.protocol}//${host}" is not allowed from Modules: external hosts are reachable over https:// only.`);
|
|
115
|
-
}
|
|
157
|
+
instance.interceptors.request.use((incoming) => {
|
|
116
158
|
// Re-applied per request: instance defaults and per-call config are caller-controlled.
|
|
117
|
-
const
|
|
118
|
-
config.maxRedirects = 0;
|
|
119
|
-
config.proxy = false;
|
|
159
|
+
const config = hardened(incoming);
|
|
120
160
|
config.adapter = throttled(typeof config.adapter === 'function' ? config.adapter : axios.getAdapter('http'));
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
'httpAgent',
|
|
124
|
-
'httpsAgent',
|
|
125
|
-
'transport',
|
|
126
|
-
'lookup',
|
|
127
|
-
'beforeRedirect',
|
|
128
|
-
'httpVersion',
|
|
129
|
-
'http2Options',
|
|
130
|
-
]) {
|
|
131
|
-
delete hardened[key];
|
|
132
|
-
}
|
|
133
|
-
// After the deletion above, so nothing the Module passed can replace it.
|
|
134
|
-
if (proxied) {
|
|
135
|
-
config.httpsAgent = proxyAgent;
|
|
136
|
-
}
|
|
137
|
-
if (opts.maxResponseBytes !== undefined) {
|
|
138
|
-
config.maxContentLength = opts.maxResponseBytes;
|
|
139
|
-
config.maxBodyLength = opts.maxResponseBytes;
|
|
140
|
-
}
|
|
161
|
+
config.transformRequest = isolated(config.transformRequest);
|
|
162
|
+
config.transformResponse = isolated(config.transformResponse);
|
|
141
163
|
return config;
|
|
142
164
|
});
|
|
143
165
|
for (const key of CARRIED_STATICS) {
|
package/dist/egress.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"egress.js","sourceRoot":"","sources":["../src/egress.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"egress.js","sourceRoot":"","sources":["../src/egress.ts"],"names":[],"mappings":"AAAA,OAAO,KAON,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,wFAAwF;AACxF,2FAA2F;AAC3F,MAAM,CAAC,MAAM,oBAAoB,GAAG,eAAe,CAAC;AAEpD,MAAM,OAAO,iBAAkB,SAAQ,KAAK;IAC1C,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,mBAAmB,CAAC;IAClC,CAAC;CACF;AAED,iGAAiG;AACjG,yFAAyF;AACzF,MAAM,YAAY,GAAG,mEAAmE,CAAC;AAEzF,uGAAuG;AACvG,SAAS,aAAa,CAAC,IAAY;IACjC,MAAM,KAAK,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC;IACjC,OAAO,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;AAC1D,CAAC;AAED,6FAA6F;AAC7F,MAAM,UAAU,iBAAiB,CAAC,GAAW;IAC3C,OAAO,GAAG;SACP,KAAK,CAAC,GAAG,CAAC;SACV,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;SAC1C,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,EAAE,CAAC;SAC/B,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;QACb,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CACb,IAAI,KAAK,mFAAmF;gBAC1F,0CA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BAAgB,CAAC,CAAC;YAC5D,MAAM,CAAC,iBAAiB,GAAG,QAAQ,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;YAC9D,OAAO,MAAM,CAAC;QAChB,CAAC,CAAC,CAAC;QAEH,KAAK,MAAM,GAAG,IAAI,eAAe,EAAE,CAAC;YAClC,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,GAAG,EAAE,OAAO,CAAC,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC;QACtD,CAAC;QACD,QAAQ,CAAC,MAAM,GAAG,CAAC,MAA4B,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAElE,OAAO,QAAQ,CAAC;IAClB,CAAC,CAAC;IAEF,OAAO,KAAK,EAAE,CAAC;AACjB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@takaro/helpers",
|
|
3
3
|
"description": "A collection of helpers, used inside Takaro Functions",
|
|
4
|
-
"version": "0.0.0-dev.
|
|
4
|
+
"version": "0.0.0-dev.7dd8bd0",
|
|
5
5
|
"author": "",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@takaro/apiclient": "0.0.0-dev.
|
|
7
|
+
"@takaro/apiclient": "0.0.0-dev.7dd8bd0",
|
|
8
8
|
"@types/lodash-es": "4.17.12",
|
|
9
|
-
"axios": "1.
|
|
9
|
+
"axios": "1.21.0",
|
|
10
10
|
"croner": "8.1.2",
|
|
11
11
|
"https-proxy-agent": "9.1.0",
|
|
12
|
-
"lodash-es": "4.
|
|
12
|
+
"lodash-es": "4.18.1"
|
|
13
13
|
},
|
|
14
14
|
"keywords": [],
|
|
15
15
|
"license": "ISC",
|