@fedify/fedify 1.2.0-dev.466 → 1.2.0-dev.468

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGES.md CHANGED
@@ -39,16 +39,24 @@ To be released.
39
39
  - `new Service()` constructor now accepts `followedMessage` option.
40
40
  - `Service.clone()` method now accepts `followedMessage` option.
41
41
 
42
- - Add options for an AMQP driver to `fedify init` command.
42
+ - Log messages now can be traced using [LogTape]'s [implicit contexts].
43
+ [[#118]]
44
+
45
+ - Added options for an AMQP driver to `fedify init` command.
43
46
 
44
47
  - Added `amqp` value to the `-q`/`--message-queue` option of
45
48
  the `fedify init` command.
46
49
 
50
+ - Added `fedify node` subcommand.
51
+
47
52
  - Added more log messages using the [LogTape] library. Currently the below
48
53
  logger categories are used:
49
54
 
50
55
  - `["fedify", "nodeinfo", "client"]`
51
56
 
57
+ [implicit contexts]: https://logtape.org/manual/contexts#implicit-contexts
58
+ [#118]: https://github.com/dahlia/fedify/issues/118
59
+
52
60
 
53
61
  Version 1.1.2
54
62
  -------------
@@ -386,7 +394,7 @@ Released on September 26, 2024.
386
394
  it's terminated so that the peers can clean up data related to the temporary
387
395
  actor. [[#135]]
388
396
 
389
- - Add options for PostgreSQL drivers to `fedify init` command.
397
+ - Added options for PostgreSQL drivers to `fedify init` command.
390
398
 
391
399
  - Added `postgres` value to the `-k`/`--kv-store` option of the `fedify
392
400
  init` command.
@@ -337,6 +337,7 @@ export async function handleInbox(request, { identifier, context, inboxContextFa
337
337
  if (queue != null) {
338
338
  await queue.enqueue({
339
339
  type: "inbox",
340
+ id: dntShim.crypto.randomUUID(),
340
341
  baseUrl: request.url,
341
342
  activity: json,
342
343
  identifier,
@@ -1,5 +1,5 @@
1
1
  import * as dntShim from "../_dnt.shims.js";
2
- import { getLogger } from "@logtape/logtape";
2
+ import { getLogger, withContext } from "@logtape/logtape";
3
3
  import { handleNodeInfo, handleNodeInfoJrd } from "../nodeinfo/handler.js";
4
4
  import { fetchDocumentLoader, getAuthenticatedDocumentLoader, kvCache, } from "../runtime/docloader.js";
5
5
  import { verifyRequest } from "../sig/http.js";
@@ -116,13 +116,15 @@ export class FederationImpl {
116
116
  await this.queue?.listen((msg) => this.#listenQueue(ctxData, msg), { signal });
117
117
  }
118
118
  }
119
- async #listenQueue(ctxData, message) {
120
- if (message.type === "outbox") {
121
- await this.#listenOutboxMessage(ctxData, message);
122
- }
123
- else if (message.type === "inbox") {
124
- await this.#listenInboxMessage(ctxData, message);
125
- }
119
+ #listenQueue(ctxData, message) {
120
+ return withContext({ messageId: message.id }, async () => {
121
+ if (message.type === "outbox") {
122
+ await this.#listenOutboxMessage(ctxData, message);
123
+ }
124
+ else if (message.type === "inbox") {
125
+ await this.#listenInboxMessage(ctxData, message);
126
+ }
127
+ });
126
128
  }
127
129
  async #listenOutboxMessage(_, message) {
128
130
  const logger = getLogger(["fedify", "federation", "outbox"]);
@@ -939,6 +941,7 @@ export class FederationImpl {
939
941
  for (const inbox in inboxes) {
940
942
  const message = {
941
943
  type: "outbox",
944
+ id: dntShim.crypto.randomUUID(),
942
945
  keys: keyJwkPairs,
943
946
  activity: jsonLd,
944
947
  activityId: activity.id?.href,
@@ -952,24 +955,27 @@ export class FederationImpl {
952
955
  this.queue.enqueue(message);
953
956
  }
954
957
  }
955
- async fetch(request, options) {
956
- const response = await this.#fetch(request, options);
957
- const logger = getLogger(["fedify", "federation", "http"]);
958
- const url = new URL(request.url);
959
- const logTpl = "{method} {path}: {status}";
960
- const values = {
961
- method: request.method,
962
- path: `${url.pathname}${url.search}`,
963
- url: request.url,
964
- status: response.status,
965
- };
966
- if (response.status >= 500)
967
- logger.error(logTpl, values);
968
- else if (response.status >= 400)
969
- logger.warn(logTpl, values);
970
- else
971
- logger.info(logTpl, values);
972
- return response;
958
+ fetch(request, options) {
959
+ const requestId = getRequestId(request);
960
+ return withContext({ requestId }, async () => {
961
+ const response = await this.#fetch(request, options);
962
+ const logger = getLogger(["fedify", "federation", "http"]);
963
+ const url = new URL(request.url);
964
+ const logTpl = "{method} {path}: {status}";
965
+ const values = {
966
+ method: request.method,
967
+ path: `${url.pathname}${url.search}`,
968
+ url: request.url,
969
+ status: response.status,
970
+ };
971
+ if (response.status >= 500)
972
+ logger.error(logTpl, values);
973
+ else if (response.status >= 400)
974
+ logger.warn(logTpl, values);
975
+ else
976
+ logger.info(logTpl, values);
977
+ return response;
978
+ });
973
979
  }
974
980
  async #fetch(request, { onNotFound, onNotAcceptable, onUnauthorized, contextData, }) {
975
981
  onNotFound ??= notFound;
@@ -1838,6 +1844,7 @@ export class InboxContextImpl extends ContextImpl {
1838
1844
  for (const inbox in inboxes) {
1839
1845
  const message = {
1840
1846
  type: "outbox",
1847
+ id: dntShim.crypto.randomUUID(),
1841
1848
  keys: keyJwkPairs,
1842
1849
  activity: this.activity,
1843
1850
  activityId,
@@ -1869,3 +1876,31 @@ function unauthorized(_request) {
1869
1876
  },
1870
1877
  });
1871
1878
  }
1879
+ /**
1880
+ * Generates or extracts a unique identifier for a request.
1881
+ *
1882
+ * This function first attempts to extract an existing request ID from standard
1883
+ * tracing headers. If none exists, it generates a new one. The ID format is:
1884
+ *
1885
+ * - If from headers, uses the existing ID.
1886
+ * - If generated, uses format `req_` followed by a base36 timestamp and
1887
+ * 6 random chars.
1888
+ *
1889
+ * @param request The incoming HTTP request.
1890
+ * @returns A string identifier unique to this request.
1891
+ */
1892
+ function getRequestId(request) {
1893
+ // First try to get existing trace ID from standard headers:
1894
+ const traceId = request.headers.get("X-Request-Id") ||
1895
+ request.headers.get("X-Correlation-Id") ||
1896
+ request.headers.get("Traceparent")?.split("-")[1];
1897
+ if (traceId != null)
1898
+ return traceId;
1899
+ // Generate new ID if none exists:
1900
+ // - Use timestamp for rough chronological ordering
1901
+ // - Add random suffix for uniqueness within same millisecond
1902
+ // - Prefix to distinguish from potential existing IDs
1903
+ const timestamp = Date.now().toString(36);
1904
+ const random = Math.random().toString(36).slice(2, 8);
1905
+ return `req_${timestamp}${random}`;
1906
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/fedify",
3
- "version": "1.2.0-dev.466+c9309d76",
3
+ "version": "1.2.0-dev.468+2e17cd69",
4
4
  "description": "An ActivityPub server framework",
5
5
  "keywords": [
6
6
  "ActivityPub",
@@ -77,7 +77,7 @@
77
77
  ],
78
78
  "dependencies": {
79
79
  "@hugoalh/http-header-link": "^1.0.2",
80
- "@logtape/logtape": "^0.6.2",
80
+ "@logtape/logtape": "^0.7.1",
81
81
  "@phensley/language-tag": "^1.9.0",
82
82
  "asn1js": "^3.0.5",
83
83
  "json-canon": "^1.0.1",
@@ -1 +1 @@
1
- {"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../src/federation/handler.ts"],"names":[],"mappings":";;AAAA,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAG5C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAM9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAGL,IAAI,EAEJ,MAAM,EAGP,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EACV,eAAe,EACf,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,EAChB,oBAAoB,EACpB,iBAAiB,EACjB,wBAAwB,EACxB,gBAAgB,EACjB,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC1E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAG5C,wBAAgB,aAAa,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CASvD;AAED,MAAM,WAAW,sBAAsB,CAAC,YAAY;IAClD,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,cAA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B,CACjD,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,EAChB,OAAO,CAAC,EAAE,wBAAwB,GACjC,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC,CAK1B"}
@@ -1 +1 @@
1
- {"version":3,"file":"middleware.d.ts","sourceRoot":"","sources":["../../src/federation/middleware.ts"],"names":[],"mappings":";;AAAA,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAG5C,OAAO,EACL,KAAK,kCAAkC,EACvC,KAAK,cAAc,EAIpB,MAAM,yBAAyB,CAAC;AAMjC,OAAO,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAEL,KAAK,mBAAmB,EAExB,KAAK,yBAAyB,EAC/B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,QAAQ,EACR,KAAK,UAAU,EAEf,KAAK,OAAO,EACZ,KAAK,IAAI,EACT,KAAK,IAAI,EAET,KAAK,MAAM,EACZ,MAAM,mBAAmB,CAAC;AAE3B,OAAO,KAAK,EACV,eAAe,EACf,iBAAiB,EACjB,uBAAuB,EACvB,kBAAkB,EAGlB,oBAAoB,EACpB,iBAAiB,EAEjB,kBAAkB,EAClB,wBAAwB,EACxB,gBAAgB,EAChB,kBAAkB,EAClB,wBAAwB,EACzB,MAAM,eAAe,CAAC;AAEvB,OAAO,KAAK,EACV,YAAY,EACZ,OAAO,EACP,sBAAsB,EACtB,YAAY,EACZ,cAAc,EACd,cAAc,EACd,mBAAmB,EACpB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EACV,oBAAoB,EACpB,yBAAyB,EACzB,UAAU,EACV,sBAAsB,EACtB,2BAA2B,EAC3B,oBAAoB,EACpB,qBAAqB,EACtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,KAAK,mBAAmB,EAKzB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,KAAK,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kBAAkB,CAAC,YAAY,CAAC,CAAC;CACvD;AAED,UAAU,eAAe,CAAC,YAAY,EAAE,MAAM,SAAS,MAAM;IAC3D,UAAU,EAAE,gBAAgB,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IAC3D,UAAU,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACxB,kBAAkB,CAAC,EAAE,wBAAwB,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;CACrE;AAED,UAAU,2BAA2B,CAAC,YAAY,CAChD,SAAQ,mBAAmB;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,YAAY,CAAC;CAC3B"}
@@ -6,6 +6,7 @@ export interface SenderKeyJwkPair {
6
6
  export type Message = OutboxMessage | InboxMessage;
7
7
  export interface OutboxMessage {
8
8
  type: "outbox";
9
+ id: ReturnType<typeof dntShim.crypto.randomUUID>;
9
10
  keys: SenderKeyJwkPair[];
10
11
  activity: unknown;
11
12
  activityId?: string;
@@ -16,6 +17,7 @@ export interface OutboxMessage {
16
17
  }
17
18
  export interface InboxMessage {
18
19
  type: "inbox";
20
+ id: ReturnType<typeof dntShim.crypto.randomUUID>;
19
21
  baseUrl: string;
20
22
  activity: unknown;
21
23
  started: string;
@@ -1 +1 @@
1
- {"version":3,"file":"queue.d.ts","sourceRoot":"","sources":["../../src/federation/queue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,OAAO,CAAC,UAAU,CAAC;CAChC;AAED,MAAM,MAAM,OAAO,GAAG,aAAa,GAAG,YAAY,CAAC;AAEnD,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,EAAE,gBAAgB,EAAE,CAAC;IACzB,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,C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