@camunda/ccma-api 14.1.0 → 14.2.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.
|
@@ -58,7 +58,7 @@ const isLoginEntry = (entry) => {
|
|
|
58
58
|
// `false`, `0` and `""` are not "no session": they fail the check.
|
|
59
59
|
session === void 0 || session === WIRE_NULL || isRecord(session) && isText(session.name) && isText(session.assignedBy) && isNumber(session.assignedAt) && isNumber(session.expiresAt)
|
|
60
60
|
);
|
|
61
|
-
return isText(entry.login) && ["free", "assigned", "invalidated"].includes(entry.state) && isNumber(entry.createdAt) && sessionOk;
|
|
61
|
+
return isText(entry.login) && ["free", "assigned", "invalidated"].includes(entry.state) && isNumber(entry.createdAt) && (entry.createdBy === void 0 || isText(entry.createdBy)) && sessionOk;
|
|
62
62
|
};
|
|
63
63
|
const isAssigned = (value) => isRecord(value) && isText(value.login) && isText(value.pin) && isText(value.link) && isNumber(value.expiresAt);
|
|
64
64
|
const MALFORMED = "ResearchLoginBrokerService: the answer has an unexpected shape";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/services/research-login/research-login.broker.service.ts"],
|
|
4
|
-
"sourcesContent": ["/*\n * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH\n * under one or more contributor license agreements. Licensed under a commercial license.\n * You may not use this file except in compliance with the commercial license.\n */\n\nimport type {\n ResearchLoginAssignedDto,\n ResearchLoginDto,\n} from '@camunda/ccma-shared-types'\nimport type {\n RequestBaseMethodType,\n RequestBaseParams,\n} from '../../types/general.types.js'\nimport { request } from '../../utils/api.js'\nimport { HttpError } from '../../utils/errors.js'\n\n/**\n * The admin routes of the login broker `research-login-rs` (#11873).\n *\n * The broker has no row in the base URL table: control-backend reads its URL\n * from `RESEARCH_LOGIN_URL`, so each call gets `baseUrl`. The call carries the\n * token of the Camundi, and the broker checks the permission itself.\n *\n * `assign` answers a one-time PIN and link. It reads the answer as text and\n * parses it here: the request layer logs the text of an answer that it cannot\n * parse as JSON, and a PIN must never reach a log.\n */\n\ninterface BrokerParams extends RequestBaseParams {\n params: {\n /** The URL of the broker, with no path. */\n baseUrl: string\n /** The bearer token of the caller. It goes to the broker as it is. */\n token: string\n }\n}\n\nexport interface CreateResearchBrokerLoginsRequest extends BrokerParams {\n params: BrokerParams['params'] & { count: number }\n}\n\nexport interface AssignResearchBrokerLoginRequest extends BrokerParams {\n params: BrokerParams['params'] & { login: string; session: string }\n}\n\nexport interface InvalidateResearchBrokerLoginRequest extends BrokerParams {\n params: BrokerParams['params'] & { login: string }\n}\n\nexport type UnlockResearchBrokerLoginRequest =\n InvalidateResearchBrokerLoginRequest\n\n/** The base URL and the path with one slash between them. */\nfunction joinUrl(baseUrl: string, path: string): string {\n // No regex: CodeQL reports `/\\/+$/` as a possible slow match.\n let end = baseUrl.length\n while (end > 0 && baseUrl[end - 1] === '/') end -= 1\n return `${baseUrl.slice(0, end)}/${path}`\n}\n\nasync function send(\n input: BrokerParams,\n name: string,\n path: string,\n normalizedPath: string,\n method: RequestBaseMethodType,\n options: { body?: object; responseType: 'json' | 'text' | 'none' },\n): Promise<unknown> {\n const { baseUrl, token } = input.params\n const response = await request<unknown>({\n // The token of the caller must reach the broker: a config with `auth`\n // would replace it with the token of this service.\n config: { ...input.config, auth: undefined },\n // A login is an email: only the template reaches a log.\n url: joinUrl(baseUrl, path),\n logUrl: normalizedPath,\n method,\n headers: { Authorization: `Bearer ${token}` },\n body: options.body,\n // A body can hold a session name: log its keys, not its values.\n redactBody: true,\n // A refusal can quote a login or a PIN: the log gets the status only.\n redactResponse: true,\n // No retry of a 429: a retry would outlast the timeout of the caller.\n retry: { attempts: 1, remaining: 0 },\n responseType: options.responseType,\n metricsDetails: {\n method: {\n name,\n url: normalizedPath,\n normalizedUrl: normalizedPath,\n type: method,\n },\n source: input.config.metrics?.source || 'unset',\n target: { name: 'research-login', type: 'internal' },\n },\n })\n if (!response.ok) {\n throw new HttpError(\n `${name}: ${response.status} ${response.statusText}`,\n response.status,\n response.statusText,\n )\n }\n return response.body\n}\n\nconst isRecord = (value: unknown): value is Record<string, unknown> =>\n typeof value === 'object' && Boolean(value) && !Array.isArray(value)\nconst isText = (value: unknown): value is string => typeof value === 'string'\nconst isNumber = (value: unknown): value is number =>\n typeof value === 'number' && Number.isFinite(value)\n\n// The broker writes a JSON null for \"no session\". The repo bans a `null`\n// literal, so the one wire null is parsed once here.\nconst WIRE_NULL: unknown = JSON.parse('null')\n\nconst isLoginEntry = (entry: unknown): boolean => {\n if (!isRecord(entry)) {\n return false\n }\n const { session } = entry\n const sessionOk =\n // No session is `undefined` or the JSON null that the broker writes.\n // `false`, `0` and `\"\"` are not \"no session\": they fail the check.\n session === undefined ||\n session === WIRE_NULL ||\n (isRecord(session) &&\n isText(session.name) &&\n isText(session.assignedBy) &&\n isNumber(session.assignedAt) &&\n isNumber(session.expiresAt))\n return (\n isText(entry.login) &&\n ['free', 'assigned', 'invalidated'].includes(entry.state as string) &&\n isNumber(entry.createdAt) &&\n sessionOk\n )\n}\n\nconst isAssigned = (value: unknown): value is ResearchLoginAssignedDto =>\n isRecord(value) &&\n isText(value.login) &&\n isText(value.pin) &&\n isText(value.link) &&\n isNumber(value.expiresAt)\n\n/** The message of a 200 answer that has not the expected shape. */\nconst MALFORMED =\n 'ResearchLoginBrokerService: the answer has an unexpected shape'\n\nexport class ResearchLoginBrokerService {\n /** Every login, oldest first. It never holds a PIN. */\n public static async list(input: BrokerParams): Promise<ResearchLoginDto[]> {\n const logins = (await send(\n input,\n 'ResearchLoginBrokerService.list',\n 'api/research-logins',\n 'api/research-logins',\n 'get',\n { responseType: 'json' },\n )) as (Omit<ResearchLoginDto, 'session'> & { session?: unknown })[]\n if (!Array.isArray(logins) || !logins.every(isLoginEntry)) {\n throw new HttpError(MALFORMED, 502, 'Bad Gateway')\n }\n // The broker writes `null` for a login with no session.\n return logins.map((entry) => ({\n ...entry,\n session: entry.session ?? undefined,\n })) as ResearchLoginDto[]\n }\n\n /** Makes `count` free logins and answers their emails. */\n public static async create(\n input: CreateResearchBrokerLoginsRequest,\n ): Promise<string[]> {\n const emails = await send(\n input,\n 'ResearchLoginBrokerService.create',\n 'api/research-logins',\n 'api/research-logins',\n 'post',\n { body: { count: input.params.count }, responseType: 'json' },\n )\n if (!Array.isArray(emails) || !emails.every(isText)) {\n throw new HttpError(MALFORMED, 502, 'Bad Gateway')\n }\n return emails as string[]\n }\n\n /** Gives a free login to a named session. The answer holds the PIN once. */\n public static async assign(\n input: AssignResearchBrokerLoginRequest,\n ): Promise<ResearchLoginAssignedDto> {\n const { login, session } = input.params\n const text = await send(\n input,\n 'ResearchLoginBrokerService.assign',\n `api/research-logins/${encodeURIComponent(login)}/assign`,\n 'api/research-logins/:login/assign',\n 'post',\n { body: { session }, responseType: 'text' },\n )\n let parsed: unknown\n try {\n parsed = JSON.parse(text as string)\n } catch {\n // Node quotes a part of the text in a parse error: the text holds the\n // PIN, so the error gets a fixed message.\n throw new HttpError(MALFORMED, 502, 'Bad Gateway')\n }\n if (!isAssigned(parsed)) {\n throw new HttpError(MALFORMED, 502, 'Bad Gateway')\n }\n return parsed\n }\n\n /** Ends the test of a login for good. */\n public static async invalidate(\n input: InvalidateResearchBrokerLoginRequest,\n ): Promise<void> {\n await send(\n input,\n 'ResearchLoginBrokerService.invalidate',\n `api/research-logins/${encodeURIComponent(input.params.login)}/invalidate`,\n 'api/research-logins/:login/invalidate',\n 'post',\n { responseType: 'none' },\n )\n }\n\n /** Ends the lock of a login after wrong PINs, before its time. */\n public static async unlock(\n input: UnlockResearchBrokerLoginRequest,\n ): Promise<void> {\n await send(\n input,\n 'ResearchLoginBrokerService.unlock',\n `api/research-logins/${encodeURIComponent(input.params.login)}/unlock`,\n 'api/research-logins/:login/unlock',\n 'post',\n { responseType: 'none' },\n )\n }\n}\n"],
|
|
5
|
-
"mappings": "AAcA,SAAS,eAAe;AACxB,SAAS,iBAAiB;AAuC1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AAC,UAChB,OAAO,UAAU,YAAY,OAAO,SAAS,KAAK;AAIpD,MAAM,YAAqB,KAAK,MAAM,MAAM;AAE5C,MAAM,eAAe,CAAC,UAA4B;AAChD,MAAI,CAAC,SAAS,KAAK,GAAG;AACpB,WAAO;AAAA,EACT;AACA,QAAM,EAAE,QAAQ,IAAI;AACpB,QAAM;AAAA;AAAA;AAAA,IAGJ,YAAY,UACZ,YAAY,aACX,SAAS,OAAO,KACf,OAAO,QAAQ,IAAI,KACnB,OAAO,QAAQ,UAAU,KACzB,SAAS,QAAQ,UAAU,KAC3B,SAAS,QAAQ,SAAS;AAAA;AAC9B,SACE,OAAO,MAAM,KAAK,KAClB,CAAC,QAAQ,YAAY,aAAa,EAAE,SAAS,MAAM,KAAe,KAClE,SAAS,MAAM,SAAS,
|
|
4
|
+
"sourcesContent": ["/*\n * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH\n * under one or more contributor license agreements. Licensed under a commercial license.\n * You may not use this file except in compliance with the commercial license.\n */\n\nimport type {\n ResearchLoginAssignedDto,\n ResearchLoginDto,\n} from '@camunda/ccma-shared-types'\nimport type {\n RequestBaseMethodType,\n RequestBaseParams,\n} from '../../types/general.types.js'\nimport { request } from '../../utils/api.js'\nimport { HttpError } from '../../utils/errors.js'\n\n/**\n * The admin routes of the login broker `research-login-rs` (#11873).\n *\n * The broker has no row in the base URL table: control-backend reads its URL\n * from `RESEARCH_LOGIN_URL`, so each call gets `baseUrl`. The call carries the\n * token of the Camundi, and the broker checks the permission itself.\n *\n * `assign` answers a one-time PIN and link. It reads the answer as text and\n * parses it here: the request layer logs the text of an answer that it cannot\n * parse as JSON, and a PIN must never reach a log.\n */\n\ninterface BrokerParams extends RequestBaseParams {\n params: {\n /** The URL of the broker, with no path. */\n baseUrl: string\n /** The bearer token of the caller. It goes to the broker as it is. */\n token: string\n }\n}\n\nexport interface CreateResearchBrokerLoginsRequest extends BrokerParams {\n params: BrokerParams['params'] & { count: number }\n}\n\nexport interface AssignResearchBrokerLoginRequest extends BrokerParams {\n params: BrokerParams['params'] & { login: string; session: string }\n}\n\nexport interface InvalidateResearchBrokerLoginRequest extends BrokerParams {\n params: BrokerParams['params'] & { login: string }\n}\n\nexport type UnlockResearchBrokerLoginRequest =\n InvalidateResearchBrokerLoginRequest\n\n/** The base URL and the path with one slash between them. */\nfunction joinUrl(baseUrl: string, path: string): string {\n // No regex: CodeQL reports `/\\/+$/` as a possible slow match.\n let end = baseUrl.length\n while (end > 0 && baseUrl[end - 1] === '/') end -= 1\n return `${baseUrl.slice(0, end)}/${path}`\n}\n\nasync function send(\n input: BrokerParams,\n name: string,\n path: string,\n normalizedPath: string,\n method: RequestBaseMethodType,\n options: { body?: object; responseType: 'json' | 'text' | 'none' },\n): Promise<unknown> {\n const { baseUrl, token } = input.params\n const response = await request<unknown>({\n // The token of the caller must reach the broker: a config with `auth`\n // would replace it with the token of this service.\n config: { ...input.config, auth: undefined },\n // A login is an email: only the template reaches a log.\n url: joinUrl(baseUrl, path),\n logUrl: normalizedPath,\n method,\n headers: { Authorization: `Bearer ${token}` },\n body: options.body,\n // A body can hold a session name: log its keys, not its values.\n redactBody: true,\n // A refusal can quote a login or a PIN: the log gets the status only.\n redactResponse: true,\n // No retry of a 429: a retry would outlast the timeout of the caller.\n retry: { attempts: 1, remaining: 0 },\n responseType: options.responseType,\n metricsDetails: {\n method: {\n name,\n url: normalizedPath,\n normalizedUrl: normalizedPath,\n type: method,\n },\n source: input.config.metrics?.source || 'unset',\n target: { name: 'research-login', type: 'internal' },\n },\n })\n if (!response.ok) {\n throw new HttpError(\n `${name}: ${response.status} ${response.statusText}`,\n response.status,\n response.statusText,\n )\n }\n return response.body\n}\n\nconst isRecord = (value: unknown): value is Record<string, unknown> =>\n typeof value === 'object' && Boolean(value) && !Array.isArray(value)\nconst isText = (value: unknown): value is string => typeof value === 'string'\nconst isNumber = (value: unknown): value is number =>\n typeof value === 'number' && Number.isFinite(value)\n\n// The broker writes a JSON null for \"no session\". The repo bans a `null`\n// literal, so the one wire null is parsed once here.\nconst WIRE_NULL: unknown = JSON.parse('null')\n\nconst isLoginEntry = (entry: unknown): boolean => {\n if (!isRecord(entry)) {\n return false\n }\n const { session } = entry\n const sessionOk =\n // No session is `undefined` or the JSON null that the broker writes.\n // `false`, `0` and `\"\"` are not \"no session\": they fail the check.\n session === undefined ||\n session === WIRE_NULL ||\n (isRecord(session) &&\n isText(session.name) &&\n isText(session.assignedBy) &&\n isNumber(session.assignedAt) &&\n isNumber(session.expiresAt))\n return (\n isText(entry.login) &&\n ['free', 'assigned', 'invalidated'].includes(entry.state as string) &&\n isNumber(entry.createdAt) &&\n (entry.createdBy === undefined || isText(entry.createdBy)) &&\n sessionOk\n )\n}\n\nconst isAssigned = (value: unknown): value is ResearchLoginAssignedDto =>\n isRecord(value) &&\n isText(value.login) &&\n isText(value.pin) &&\n isText(value.link) &&\n isNumber(value.expiresAt)\n\n/** The message of a 200 answer that has not the expected shape. */\nconst MALFORMED =\n 'ResearchLoginBrokerService: the answer has an unexpected shape'\n\nexport class ResearchLoginBrokerService {\n /** Every login, oldest first. It never holds a PIN. */\n public static async list(input: BrokerParams): Promise<ResearchLoginDto[]> {\n const logins = (await send(\n input,\n 'ResearchLoginBrokerService.list',\n 'api/research-logins',\n 'api/research-logins',\n 'get',\n { responseType: 'json' },\n )) as (Omit<ResearchLoginDto, 'session'> & { session?: unknown })[]\n if (!Array.isArray(logins) || !logins.every(isLoginEntry)) {\n throw new HttpError(MALFORMED, 502, 'Bad Gateway')\n }\n // The broker writes `null` for a login with no session.\n return logins.map((entry) => ({\n ...entry,\n session: entry.session ?? undefined,\n })) as ResearchLoginDto[]\n }\n\n /** Makes `count` free logins and answers their emails. */\n public static async create(\n input: CreateResearchBrokerLoginsRequest,\n ): Promise<string[]> {\n const emails = await send(\n input,\n 'ResearchLoginBrokerService.create',\n 'api/research-logins',\n 'api/research-logins',\n 'post',\n { body: { count: input.params.count }, responseType: 'json' },\n )\n if (!Array.isArray(emails) || !emails.every(isText)) {\n throw new HttpError(MALFORMED, 502, 'Bad Gateway')\n }\n return emails as string[]\n }\n\n /** Gives a free login to a named session. The answer holds the PIN once. */\n public static async assign(\n input: AssignResearchBrokerLoginRequest,\n ): Promise<ResearchLoginAssignedDto> {\n const { login, session } = input.params\n const text = await send(\n input,\n 'ResearchLoginBrokerService.assign',\n `api/research-logins/${encodeURIComponent(login)}/assign`,\n 'api/research-logins/:login/assign',\n 'post',\n { body: { session }, responseType: 'text' },\n )\n let parsed: unknown\n try {\n parsed = JSON.parse(text as string)\n } catch {\n // Node quotes a part of the text in a parse error: the text holds the\n // PIN, so the error gets a fixed message.\n throw new HttpError(MALFORMED, 502, 'Bad Gateway')\n }\n if (!isAssigned(parsed)) {\n throw new HttpError(MALFORMED, 502, 'Bad Gateway')\n }\n return parsed\n }\n\n /** Ends the test of a login for good. */\n public static async invalidate(\n input: InvalidateResearchBrokerLoginRequest,\n ): Promise<void> {\n await send(\n input,\n 'ResearchLoginBrokerService.invalidate',\n `api/research-logins/${encodeURIComponent(input.params.login)}/invalidate`,\n 'api/research-logins/:login/invalidate',\n 'post',\n { responseType: 'none' },\n )\n }\n\n /** Ends the lock of a login after wrong PINs, before its time. */\n public static async unlock(\n input: UnlockResearchBrokerLoginRequest,\n ): Promise<void> {\n await send(\n input,\n 'ResearchLoginBrokerService.unlock',\n `api/research-logins/${encodeURIComponent(input.params.login)}/unlock`,\n 'api/research-logins/:login/unlock',\n 'post',\n { responseType: 'none' },\n )\n }\n}\n"],
|
|
5
|
+
"mappings": "AAcA,SAAS,eAAe;AACxB,SAAS,iBAAiB;AAuC1B,SAAS,QAAQ,SAAiB,MAAsB;AAEtD,MAAI,MAAM,QAAQ;AAClB,SAAO,MAAM,KAAK,QAAQ,MAAM,CAAC,MAAM,IAAK,QAAO;AACnD,SAAO,GAAG,QAAQ,MAAM,GAAG,GAAG,CAAC,IAAI,IAAI;AACzC;AAEA,eAAe,KACb,OACA,MACA,MACA,gBACA,QACA,SACkB;A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;AAAA,EACT;AAAA;AAAA,EAGA,aAAoB,OAClB,OACmC;AACnC,UAAM,EAAE,OAAO,QAAQ,IAAI,MAAM;AACjC,UAAM,OAAO,MAAM;AAAA,MACjB;AAAA,MACA;AAAA,MACA,uBAAuB,mBAAmB,KAAK,CAAC;AAAA,MAChD;AAAA,MACA;AAAA,MACA,EAAE,MAAM,EAAE,QAAQ,GAAG,cAAc,OAAO;AAAA,IAC5C;AACA,QAAI;AACJ,QAAI;AACF,eAAS,KAAK,MAAM,IAAc;AAAA,IACpC,QAAQ;AAGN,YAAM,IAAI,UAAU,WAAW,KAAK,aAAa;AAAA,IACnD;AACA,QAAI,CAAC,WAAW,MAAM,GAAG;AACvB,YAAM,IAAI,UAAU,WAAW,KAAK,aAAa;AAAA,IACnD;AACA,WAAO;AAAA,EACT;AAAA;AAAA,EAGA,aAAoB,WAClB,OACe;AACf,UAAM;AAAA,MACJ;AAAA,MACA;AAAA,MACA,uBAAuB,mBAAmB,MAAM,OAAO,KAAK,CAAC;AAAA,MAC7D;AAAA,MACA;AAAA,MACA,EAAE,cAAc,OAAO;AAAA,IACzB;AAAA,EACF;AAAA;AAAA,EAGA,aAAoB,OAClB,OACe;AACf,UAAM;AAAA,MACJ;AAAA,MACA;AAAA,MACA,uBAAuB,mBAAmB,MAAM,OAAO,KAAK,CAAC;AAAA,MAC7D;AAAA,MACA;AAAA,MACA,EAAE,cAAc,OAAO;AAAA,IACzB;AAAA,EACF;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camunda/ccma-api",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.2.0",
|
|
4
4
|
"description": "Centralized API service layer for Camunda Cloud Management Apps",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/camunda/camunda-cloud-management-apps/issues"
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@camunda/ccma-shared-types": "18.
|
|
44
|
+
"@camunda/ccma-shared-types": "18.15.0"
|
|
45
45
|
},
|
|
46
46
|
"scripts": {
|
|
47
47
|
"build": "node esbuild.mjs && tsc --emitDeclarationOnly --outDir dist",
|