@sap-cloud-sdk/connectivity 4.7.1-20260721014448.0 → 4.8.0
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.
|
@@ -45,12 +45,11 @@ const node_https_1 = __importDefault(require("node:https"));
|
|
|
45
45
|
const jks = __importStar(require("jks-js"));
|
|
46
46
|
const util_1 = require("@sap-cloud-sdk/util");
|
|
47
47
|
/* Careful the proxy imports cause circular dependencies if imported from scp directly */
|
|
48
|
-
|
|
48
|
+
/* eslint-disable import-x/no-internal-modules */
|
|
49
49
|
const get_protocol_1 = require("../scp-cf/get-protocol");
|
|
50
|
-
|
|
50
|
+
const jwt_1 = require("../scp-cf/jwt/jwt");
|
|
51
51
|
const cache_1 = require("../scp-cf/cache");
|
|
52
52
|
const http_proxy_util_1 = require("../scp-cf/destination/http-proxy-util");
|
|
53
|
-
// eslint-disable-next-line import-x/no-internal-modules
|
|
54
53
|
const register_destination_cache_1 = require("../scp-cf/destination/register-destination-cache");
|
|
55
54
|
const logger = (0, util_1.createLogger)({
|
|
56
55
|
package: 'connectivity',
|
|
@@ -239,29 +238,108 @@ exports.defaultAgentOptions = {
|
|
|
239
238
|
timeout: 5000
|
|
240
239
|
};
|
|
241
240
|
/**
|
|
242
|
-
*
|
|
243
|
-
*
|
|
244
|
-
*
|
|
241
|
+
* Builds a secret-free cache key input for the agent cache.
|
|
242
|
+
* For direct destinations the agent is fully defined by its protocol, TLS options and
|
|
243
|
+
* optional `agentOptions`. For the on-premise connectivity proxy all requests share the
|
|
244
|
+
* same proxy origin, so keep-alive sockets would otherwise be reused across Cloud
|
|
245
|
+
* Connector tunnels. To prevent this, the key is additionally scoped by the location ID,
|
|
246
|
+
* the proxy host/port and the propagated principal (derived from stable, non-secret JWT
|
|
247
|
+
* claims).
|
|
248
|
+
* @param destination - Destination to derive the cache key dimensions from.
|
|
249
|
+
* @param options - TLS/agent options that define the agent instance.
|
|
250
|
+
* @returns A plain object to be hashed into the agent cache key.
|
|
245
251
|
*/
|
|
246
|
-
|
|
252
|
+
function getAgentCacheKeyInput(destination, options) {
|
|
247
253
|
const protocol = (0, get_protocol_1.getProtocolOrDefault)(destination);
|
|
248
|
-
const
|
|
254
|
+
const keyInput = {
|
|
249
255
|
protocol,
|
|
250
256
|
options,
|
|
251
257
|
agentOptions: destination.agentOptions
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
258
|
+
};
|
|
259
|
+
if (destination.proxyType === 'OnPremise') {
|
|
260
|
+
keyInput.cloudConnectorLocationId = destination.cloudConnectorLocationId;
|
|
261
|
+
keyInput.proxyHost = destination.proxyConfiguration?.host;
|
|
262
|
+
keyInput.proxyPort = destination.proxyConfiguration?.port;
|
|
263
|
+
const principal = getPrincipalCacheKey(destination);
|
|
264
|
+
// PrincipalPropagation binds the Cloud Connector tunnel to the propagated
|
|
265
|
+
// user. Without a stable userId we cannot derive a safe cache key and must
|
|
266
|
+
// skip caching to avoid reusing a tunnel across principals.
|
|
267
|
+
if (destination.authentication === 'PrincipalPropagation' &&
|
|
268
|
+
!principal?.userId) {
|
|
269
|
+
return undefined;
|
|
270
|
+
}
|
|
271
|
+
// For all other OnPremise flows the principal is not strictly required, but
|
|
272
|
+
// we still scope by full available principal information for better cache isolation.
|
|
273
|
+
if (principal) {
|
|
274
|
+
keyInput.principal = principal;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
return keyInput;
|
|
278
|
+
}
|
|
279
|
+
/**
|
|
280
|
+
* Derives a stable, non-secret identity scope for OnPremise destinations from
|
|
281
|
+
* the propagated JWT. The raw token must not be part of the cache key, because
|
|
282
|
+
* it is a secret and rotates on every refresh. `userId` and `tenantId` are
|
|
283
|
+
* stable claims that scope the cache entry to a principal.
|
|
284
|
+
* PrincipalPropagation flows require a `userId`; other flows include the
|
|
285
|
+
* principal only when a user token is present.
|
|
286
|
+
* @param destination - Destination carrying the propagated principal JWT.
|
|
287
|
+
* @returns A stable identity scope, or `undefined` if no usable token is present.
|
|
288
|
+
*/
|
|
289
|
+
function getPrincipalCacheKey(destination) {
|
|
290
|
+
const authHeader = destination.proxyConfiguration?.headers?.['SAP-Connectivity-Authentication'];
|
|
291
|
+
if (!authHeader) {
|
|
292
|
+
return undefined;
|
|
293
|
+
}
|
|
294
|
+
const encoded = authHeader.replace(/^Bearer /i, '');
|
|
295
|
+
try {
|
|
296
|
+
const decoded = (0, jwt_1.decodeJwt)(encoded);
|
|
297
|
+
const tenantId = (0, jwt_1.getTenantId)(decoded);
|
|
298
|
+
const userId = (0, jwt_1.userId)(decoded);
|
|
299
|
+
if (!tenantId && !userId) {
|
|
300
|
+
return undefined;
|
|
301
|
+
}
|
|
302
|
+
return { userId, tenantId };
|
|
303
|
+
}
|
|
304
|
+
catch {
|
|
305
|
+
// A malformed token must not break agent creation; fall back to location/host scoping.
|
|
306
|
+
return undefined;
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
async function getAgentCacheKey(destination, options) {
|
|
310
|
+
const cacheKeyInput = getAgentCacheKeyInput(destination, options);
|
|
311
|
+
// If the cache key is undefined, avoid caching the agent.
|
|
312
|
+
if (!cacheKeyInput) {
|
|
313
|
+
return undefined;
|
|
314
|
+
}
|
|
315
|
+
return (0, cache_1.hashCacheKey)(cacheKeyInput);
|
|
316
|
+
}
|
|
317
|
+
function createAgentImpl(destination, options) {
|
|
318
|
+
const protocol = (0, get_protocol_1.getProtocolOrDefault)(destination);
|
|
319
|
+
logger.debug(`Creating new ${protocol.toUpperCase()} agent for destination ${destination.name || '<unknown>'}`);
|
|
320
|
+
const optionsWithDefaults = {
|
|
321
|
+
...exports.defaultAgentOptions,
|
|
322
|
+
...destination.agentOptions,
|
|
323
|
+
...options
|
|
324
|
+
};
|
|
325
|
+
return protocol === 'https'
|
|
326
|
+
? { httpsAgent: new node_https_1.default.Agent(optionsWithDefaults) }
|
|
327
|
+
: { httpAgent: new node_http_1.default.Agent(optionsWithDefaults) };
|
|
328
|
+
}
|
|
329
|
+
/**
|
|
330
|
+
* @internal
|
|
331
|
+
* Agents are cached for up to one hour, but can be evicted earlier if more than 100 agents are created.
|
|
332
|
+
* See https://nodejs.org/api/https.html#https_https_createserver_options_requestlistener for details on the possible options
|
|
333
|
+
*/
|
|
334
|
+
async function createAgent(destination, options) {
|
|
335
|
+
const cacheKey = await getAgentCacheKey(destination, options);
|
|
336
|
+
if (!cacheKey) {
|
|
337
|
+
logger.info(`Could not derive a cache key for destination ${destination.name || '<unknown>'}. Creating a new agent without caching.`);
|
|
338
|
+
return createAgentImpl(destination, options);
|
|
339
|
+
}
|
|
340
|
+
return exports.agentCache.getOrInsertComputed(cacheKey, () => ({
|
|
341
|
+
entry: createAgentImpl(destination, options)
|
|
342
|
+
}));
|
|
265
343
|
}
|
|
266
344
|
/**
|
|
267
345
|
* Builds part of the request config containing the URL and if needed proxy agents or normal http agents.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http-agent.js","sourceRoot":"","sources":["../../src/http-agent/http-agent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAA4C;AAC5C,0DAA6B;AAC7B,4DAA+B;AAC/B,MAAY,GAAG,mCAAe;AAC9B,8CAAyD;AACzD,yFAAyF;AACzF,
|
|
1
|
+
{"version":3,"file":"http-agent.js","sourceRoot":"","sources":["../../src/http-agent/http-agent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAA4C;AAC5C,0DAA6B;AAC7B,4DAA+B;AAC/B,MAAY,GAAG,mCAAe;AAC9B,8CAAyD;AACzD,yFAAyF;AACzF,iDAAiD;AACjD,yDAA8D;AAC9D,2CAAgF;AAChF,2CAAsD;AACtD,2EAI+C;AAC/C,i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AI,CACT,gDAAgD,WAAW,CAAC,IAAI,IAAI,WAAW,yCAAyC,CACzH,CAAC;QACF,OAAO,eAAe,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IAC/C,CAAC;IACD,OAAO,QAAA,UAAU,CAAC,mBAAmB,CAAC,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC;QACrD,KAAK,EAAE,eAAe,CAAC,WAAW,EAAE,OAAO,CAAC;KAC7C,CAAC,CAAC,CAAC;AACN,CAAC;AAED;;;;;;GAMG;AACI,KAAK,sBAAsB,SAAiB;IAMjD,IAAI,WAAW,GAAoB,EAAE,GAAG,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC;IAC7E,IAAI,IAAA,+BAAa,EAAC,WAAW,CAAC,KAAK,UAAU,EAAE,CAAC;QAC9C,WAAW,GAAG,IAAA,+CAA6B,EAAC,WAAW,CAAC,CAAC;IAC3D,CAAC;IACD,OAAO;QACL,OAAO,EAAE,WAAW,CAAC,GAAG;QACxB,GAAG,CAAC,MAAM,cAAc,CAAC,WAAW,CAAC,CAAC;QACtC,KAAK,EAAE,IAAA,gCAAc,EAAC,WAAW,CAAC;KACnC,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap-cloud-sdk/connectivity",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.8.0",
|
|
4
4
|
"description": "SAP Cloud SDK for JavaScript connectivity",
|
|
5
5
|
"homepage": "https://sap.github.io/cloud-sdk/docs/js/overview",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"jks-js": "^1.1.6",
|
|
37
37
|
"jsonwebtoken": "^9.0.3",
|
|
38
38
|
"safe-stable-stringify": "^2.5.0",
|
|
39
|
-
"@sap-cloud-sdk/resilience": "^4.
|
|
40
|
-
"@sap-cloud-sdk/util": "^4.
|
|
39
|
+
"@sap-cloud-sdk/resilience": "^4.8.0",
|
|
40
|
+
"@sap-cloud-sdk/util": "^4.8.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@typescript/native": "npm:typescript@^7.0.2",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"memfs": "^4.57.2",
|
|
48
48
|
"nock": "^14.0.11",
|
|
49
49
|
"prettier": "^3.8.1",
|
|
50
|
-
"@sap-cloud-sdk/test-util-internal": "^4.
|
|
50
|
+
"@sap-cloud-sdk/test-util-internal": "^4.8.0"
|
|
51
51
|
},
|
|
52
52
|
"scripts": {
|
|
53
53
|
"compile": "tsc -b",
|