@fedify/fedify 0.12.0-dev.278 → 0.12.0-dev.283

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. package/CHANGES.md +55 -0
  2. package/esm/federation/middleware.js +0 -8
  3. package/esm/mod.js +0 -1
  4. package/esm/runtime/key.js +1 -1
  5. package/esm/runtime/url.js +9 -5
  6. package/esm/sig/http.js +1 -1
  7. package/package.json +1 -7
  8. package/types/deps/jsr.io/@std/bytes/{1.0.1 → 1.0.2}/concat.d.ts.map +1 -1
  9. package/types/deps/jsr.io/@std/bytes/{1.0.1 → 1.0.2}/copy.d.ts.map +1 -1
  10. package/types/deps/jsr.io/@std/bytes/{1.0.1 → 1.0.2}/ends_with.d.ts.map +1 -1
  11. package/types/deps/jsr.io/@std/bytes/{1.0.1 → 1.0.2}/equals.d.ts.map +1 -1
  12. package/types/deps/jsr.io/@std/bytes/{1.0.1 → 1.0.2}/includes_needle.d.ts.map +1 -1
  13. package/types/deps/jsr.io/@std/bytes/{1.0.1 → 1.0.2}/index_of_needle.d.ts.map +1 -1
  14. package/types/deps/jsr.io/@std/bytes/{1.0.1 → 1.0.2}/last_index_of_needle.d.ts.map +1 -1
  15. package/types/deps/jsr.io/@std/bytes/{1.0.1 → 1.0.2}/mod.d.ts.map +1 -1
  16. package/types/deps/jsr.io/@std/bytes/{1.0.1 → 1.0.2}/repeat.d.ts.map +1 -1
  17. package/types/deps/jsr.io/@std/bytes/{1.0.1 → 1.0.2}/starts_with.d.ts.map +1 -1
  18. package/types/federation/context.d.ts +0 -7
  19. package/types/federation/context.d.ts.map +1 -1
  20. package/types/federation/middleware.d.ts.map +1 -1
  21. package/types/mod.d.ts +0 -1
  22. package/types/mod.d.ts.map +1 -1
  23. package/types/runtime/url.d.ts.map +1 -1
  24. package/types/testing/context.d.ts.map +1 -1
  25. package/esm/httpsig/mod.js +0 -104
  26. package/types/httpsig/mod.d.ts +0 -108
  27. package/types/httpsig/mod.d.ts.map +0 -1
  28. package/types/httpsig/mod.test.d.ts.map +0 -1
  29. /package/esm/deps/jsr.io/@std/bytes/{1.0.1 → 1.0.2}/concat.js +0 -0
  30. /package/esm/deps/jsr.io/@std/bytes/{1.0.1 → 1.0.2}/copy.js +0 -0
  31. /package/esm/deps/jsr.io/@std/bytes/{1.0.1 → 1.0.2}/ends_with.js +0 -0
  32. /package/esm/deps/jsr.io/@std/bytes/{1.0.1 → 1.0.2}/equals.js +0 -0
  33. /package/esm/deps/jsr.io/@std/bytes/{1.0.1 → 1.0.2}/includes_needle.js +0 -0
  34. /package/esm/deps/jsr.io/@std/bytes/{1.0.1 → 1.0.2}/index_of_needle.js +0 -0
  35. /package/esm/deps/jsr.io/@std/bytes/{1.0.1 → 1.0.2}/last_index_of_needle.js +0 -0
  36. /package/esm/deps/jsr.io/@std/bytes/{1.0.1 → 1.0.2}/mod.js +0 -0
  37. /package/esm/deps/jsr.io/@std/bytes/{1.0.1 → 1.0.2}/repeat.js +0 -0
  38. /package/esm/deps/jsr.io/@std/bytes/{1.0.1 → 1.0.2}/starts_with.js +0 -0
  39. /package/types/deps/jsr.io/@std/bytes/{1.0.1 → 1.0.2}/concat.d.ts +0 -0
  40. /package/types/deps/jsr.io/@std/bytes/{1.0.1 → 1.0.2}/copy.d.ts +0 -0
  41. /package/types/deps/jsr.io/@std/bytes/{1.0.1 → 1.0.2}/ends_with.d.ts +0 -0
  42. /package/types/deps/jsr.io/@std/bytes/{1.0.1 → 1.0.2}/equals.d.ts +0 -0
  43. /package/types/deps/jsr.io/@std/bytes/{1.0.1 → 1.0.2}/includes_needle.d.ts +0 -0
  44. /package/types/deps/jsr.io/@std/bytes/{1.0.1 → 1.0.2}/index_of_needle.d.ts +0 -0
  45. /package/types/deps/jsr.io/@std/bytes/{1.0.1 → 1.0.2}/last_index_of_needle.d.ts +0 -0
  46. /package/types/deps/jsr.io/@std/bytes/{1.0.1 → 1.0.2}/mod.d.ts +0 -0
  47. /package/types/deps/jsr.io/@std/bytes/{1.0.1 → 1.0.2}/repeat.d.ts +0 -0
  48. /package/types/deps/jsr.io/@std/bytes/{1.0.1 → 1.0.2}/starts_with.d.ts +0 -0
package/CHANGES.md CHANGED
@@ -77,6 +77,16 @@ To be released.
77
77
  - The last parameter of `Federation.sendActivity()` method is no longer
78
78
  optional. Also, it now takes the required `contextData` option.
79
79
 
80
+ - Removed `Context.getHandleFromActorUri()` method which was deprecated in
81
+ version 0.9.0. Use `Context.parseUri()` method instead.
82
+
83
+ - Removed `@fedify/fedify/httpsig` module which was deprecated in version
84
+ 0.9.0. Use `@fedify/fedify/sig` module instead.
85
+
86
+ - Removed `sign()` function.
87
+ - Removed `verify()` function.
88
+ - Removed `VerifyOptions` interface.
89
+
80
90
  - Fixed a SSRF vulnerability in the built-in document loader.
81
91
  [[CVE-2024-39687]]
82
92
 
@@ -99,6 +109,21 @@ To be released.
99
109
  [#92]: https://github.com/dahlia/fedify/pull/92
100
110
 
101
111
 
112
+ Version 0.11.2
113
+ --------------
114
+
115
+ Released on July 9, 2024.
116
+
117
+ - Fixed a vulnerability of SSRF via DNS rebinding in the built-in document
118
+ loader. [[CVE-2024-39687]]
119
+
120
+ - The `fetchDocumentLoader()` function now throws an error when the given
121
+ domain name has any records referring to a private network address.
122
+ - The `getAuthenticatedDocumentLoader()` function now returns a document
123
+ loader that throws an error when the given domain name has any records
124
+ referring to a private network address.
125
+
126
+
102
127
  Version 0.11.1
103
128
  --------------
104
129
 
@@ -297,6 +322,21 @@ Released on June 29, 2024.
297
322
  [#80]: https://github.com/dahlia/fedify/pull/80
298
323
 
299
324
 
325
+ Version 0.10.2
326
+ --------------
327
+
328
+ Released on July 9, 2024.
329
+
330
+ - Fixed a vulnerability of SSRF via DNS rebinding in the built-in document
331
+ loader. [[CVE-2024-39687]]
332
+
333
+ - The `fetchDocumentLoader()` function now throws an error when the given
334
+ domain name has any records referring to a private network address.
335
+ - The `getAuthenticatedDocumentLoader()` function now returns a document
336
+ loader that throws an error when the given domain name has any records
337
+ referring to a private network address.
338
+
339
+
300
340
  Version 0.10.1
301
341
  --------------
302
342
 
@@ -473,6 +513,21 @@ is now distributed under the [MIT License] to encourage wider adoption.
473
513
  [x-forwarded-fetch]: https://github.com/dahlia/x-forwarded-fetch
474
514
 
475
515
 
516
+ Version 0.9.3
517
+ -------------
518
+
519
+ Released on July 9, 2024.
520
+
521
+ - Fixed a vulnerability of SSRF via DNS rebinding in the built-in document
522
+ loader. [[CVE-2024-39687]]
523
+
524
+ - The `fetchDocumentLoader()` function now throws an error when the given
525
+ domain name has any records referring to a private network address.
526
+ - The `getAuthenticatedDocumentLoader()` function now returns a document
527
+ loader that throws an error when the given domain name has any records
528
+ referring to a private network address.
529
+
530
+
476
531
  Version 0.9.2
477
532
  -------------
478
533
 
@@ -1438,14 +1438,6 @@ class ContextImpl {
1438
1438
  }
1439
1439
  return null;
1440
1440
  }
1441
- getHandleFromActorUri(actorUri) {
1442
- getLogger(["fedify", "federation"]).warn("Context.getHandleFromActorUri() is deprecated; " +
1443
- "use Context.parseUri() instead.");
1444
- const result = this.parseUri(actorUri);
1445
- if (result?.type === "actor")
1446
- return result.handle;
1447
- return null;
1448
- }
1449
1441
  async getActorKeyPairs(handle) {
1450
1442
  const logger = getLogger(["fedify", "federation", "actor"]);
1451
1443
  if (this.#invokedFromActorKeyPairsDispatcher != null) {
package/esm/mod.js CHANGED
@@ -39,7 +39,6 @@
39
39
  * @module
40
40
  */
41
41
  export * from "./federation/mod.js";
42
- export { sign, verify } from "./httpsig/mod.js";
43
42
  export * from "./nodeinfo/mod.js";
44
43
  export * from "./runtime/mod.js";
45
44
  export * from "./sig/mod.js";
@@ -1,6 +1,6 @@
1
1
  import * as dntShim from "../_dnt.shims.js";
2
2
  import { createPublicKey } from "node:crypto";
3
- import { concat } from "../deps/jsr.io/@std/bytes/1.0.1/concat.js";
3
+ import { concat } from "../deps/jsr.io/@std/bytes/1.0.2/concat.js";
4
4
  import { decodeBase64, encodeBase64 } from "../deps/jsr.io/@std/encoding/0.224.3/base64.js";
5
5
  import { decodeBase64Url } from "../deps/jsr.io/@std/encoding/0.224.3/base64url.js";
6
6
  import { decodeHex } from "../deps/jsr.io/@std/encoding/0.224.3/hex.js";
@@ -30,11 +30,15 @@ export async function validatePublicUrl(url) {
30
30
  if (netPermission.state !== "granted")
31
31
  return;
32
32
  }
33
- const { address, family } = await lookup(hostname);
34
- if (family === 4 && !isValidPublicIPv4Address(address) ||
35
- family === 6 && !isValidPublicIPv6Address(address) ||
36
- family < 4 || family === 5 || family > 6) {
37
- throw new UrlError(`Invalid or private address: ${address}`);
33
+ // To prevent SSRF via DNS rebinding, we need to resolve all IP addresses
34
+ // and ensure that they are all public:
35
+ const addresses = await lookup(hostname, { all: true });
36
+ for (const { address, family } of addresses) {
37
+ if (family === 4 && !isValidPublicIPv4Address(address) ||
38
+ family === 6 && !isValidPublicIPv6Address(address) ||
39
+ family < 4 || family === 5 || family > 6) {
40
+ throw new UrlError(`Invalid or private address: ${address}`);
41
+ }
38
42
  }
39
43
  }
40
44
  export function isValidPublicIPv4Address(address) {
package/esm/sig/http.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as dntShim from "../_dnt.shims.js";
2
2
  import { getLogger } from "@logtape/logtape";
3
- import { equals } from "../deps/jsr.io/@std/bytes/1.0.1/mod.js";
3
+ import { equals } from "../deps/jsr.io/@std/bytes/1.0.2/mod.js";
4
4
  import { decodeBase64, encodeBase64 } from "../deps/jsr.io/@std/encoding/0.224.3/base64.js";
5
5
  import { CryptographicKey } from "../vocab/vocab.js";
6
6
  import { fetchKey, validateCryptoKey } from "./key.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/fedify",
3
- "version": "0.12.0-dev.278+8699f21b",
3
+ "version": "0.12.0-dev.283+1711224a",
4
4
  "description": "An ActivityPub server framework",
5
5
  "keywords": [
6
6
  "ActivityPub",
@@ -35,12 +35,6 @@
35
35
  "default": "./esm/federation/mod.js"
36
36
  }
37
37
  },
38
- "./httpsig": {
39
- "import": {
40
- "types": "./types/httpsig/mod.d.ts",
41
- "default": "./esm/httpsig/mod.js"
42
- }
43
- },
44
38
  "./nodeinfo": {
45
39
  "import": {
46
40
  "types": "./types/nodeinfo/mod.d.ts",
@@ -1 +1 @@
1
- {"version":3,"file":"concat.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.1/concat.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,MAAM,CAAC,OAAO,EAAE,UAAU,EAAE,GAAG,UAAU,CAaxD"}
1
+ {"version":3,"file":"concat.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.2/concat.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,MAAM,CAAC,OAAO,EAAE,UAAU,EAAE,GAAG,UAAU,CAaxD"}
@@ -1 +1 @@
1
- {"version":3,"file":"copy.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.1/copy.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,wBAAgB,IAAI,CAAC,GAAG,EAAE,UAAU,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,SAAI,GAAG,MAAM,CAQzE"}
1
+ {"version":3,"file":"copy.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.2/copy.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,wBAAgB,IAAI,CAAC,GAAG,EAAE,UAAU,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,SAAI,GAAG,MAAM,CAQzE"}
@@ -1 +1 @@
1
- {"version":3,"file":"ends_with.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.1/ends_with.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,QAAQ,CAAC,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,GAAG,OAAO,CAWxE"}
1
+ {"version":3,"file":"ends_with.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.2/ends_with.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,QAAQ,CAAC,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,GAAG,OAAO,CAWxE"}
@@ -1 +1 @@
1
- {"version":3,"file":"equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.1/equals.ts"],"names":[],"mappings":"AA6DA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,MAAM,CAAC,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,UAAU,GAAG,OAAO,CAQ5D"}
1
+ {"version":3,"file":"equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.2/equals.ts"],"names":[],"mappings":"AA6DA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,MAAM,CAAC,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,UAAU,GAAG,OAAO,CAQ5D"}
@@ -1 +1 @@
1
- {"version":3,"file":"includes_needle.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.1/includes_needle.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,UAAU,EAClB,MAAM,EAAE,UAAU,EAClB,KAAK,SAAI,GACR,OAAO,CAET"}
1
+ {"version":3,"file":"includes_needle.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.2/includes_needle.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,UAAU,EAClB,MAAM,EAAE,UAAU,EAClB,KAAK,SAAI,GACR,OAAO,CAET"}
@@ -1 +1 @@
1
- {"version":3,"file":"index_of_needle.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.1/index_of_needle.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,UAAU,EAClB,MAAM,EAAE,UAAU,EAClB,KAAK,SAAI,GACR,MAAM,CAqBR"}
1
+ {"version":3,"file":"index_of_needle.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.2/index_of_needle.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,UAAU,EAClB,MAAM,EAAE,UAAU,EAClB,KAAK,SAAI,GACR,MAAM,CAqBR"}
@@ -1 +1 @@
1
- {"version":3,"file":"last_index_of_needle.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.1/last_index_of_needle.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,UAAU,EAClB,MAAM,EAAE,UAAU,EAClB,KAAK,GAAE,MAA0B,GAChC,MAAM,CAuBR"}
1
+ {"version":3,"file":"last_index_of_needle.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.2/last_index_of_needle.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,UAAU,EAClB,MAAM,EAAE,UAAU,EAClB,KAAK,GAAE,MAA0B,GAChC,MAAM,CAuBR"}
@@ -1 +1 @@
1
- {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.1/mod.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.2/mod.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"repeat.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.1/repeat.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,MAAM,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,GAAG,UAAU,CAapE"}
1
+ {"version":3,"file":"repeat.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.2/repeat.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,MAAM,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,GAAG,UAAU,CAapE"}
@@ -1 +1 @@
1
- {"version":3,"file":"starts_with.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.1/starts_with.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,GAAG,OAAO,CAS1E"}
1
+ {"version":3,"file":"starts_with.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.2/starts_with.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,GAAG,OAAO,CAS1E"}
@@ -131,13 +131,6 @@ export interface Context<TContextData> {
131
131
  * @since 0.9.0
132
132
  */
133
133
  parseUri(uri: URL): ParseUriResult | null;
134
- /**
135
- * Extracts the actor's handle from an actor URI, if it is a valid actor URI.
136
- * @param actorUri The actor's URI.
137
- * @returns The actor's handle, or `null` if the URI is not a valid actor URI.
138
- * @deprecated Use {@link Context.parseUri} instead.
139
- */
140
- getHandleFromActorUri(actorUri: URL): string | null;
141
134
  /**
142
135
  * Gets the key pairs for an actor.
143
136
  * @param handle The actor's handle.
@@ -1 +1 @@
1
- {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/federation/context.ts"],"names":[],"mappings":";;AAAA,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,KAAK,EACV,QAAQ,EACR,gBAAgB,EAChB,QAAQ,EACR,MAAM,EACP,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAE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AO,CAAC,CAAC;CACrD;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB,CAAC,YAAY;IAChD;;;;;;OAMG;IACH,EAAE,CAAC,SAAS,SAAS,QAAQ,EAE3B,IAAI,EAAE,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,SAAS,EACvC,QAAQ,EAAE,aAAa,CAAC,YAAY,EAAE,SAAS,CAAC,GAC/C,oBAAoB,CAAC,YAAY,CAAC,CAAC;IAEtC;;;;;;OAMG;IACH,OAAO,CACL,OAAO,EAAE,iBAAiB,CAAC,YAAY,CAAC,GACvC,oBAAoB,CAAC,YAAY,CAAC,CAAC;IAEtC;;;;;;;;OAQG;IACH,sBAAsB,CACpB,UAAU,EAAE,wBAAwB,CAAC,YAAY,CAAC,GACjD,oBAAoB,CAAC,YAAY,CAAC,CAAC;CACvC;AAED,UAAU,2BAA2B,CAAC,YAAY,CAChD,SAAQ,mBAAmB;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,YAAY,CAAC;CAC3B"}
package/types/mod.d.ts CHANGED
@@ -39,7 +39,6 @@
39
39
  * @module
40
40
  */
41
41
  export * from "./federation/mod.js";
42
- export { sign, verify, type VerifyOptions } from "./httpsig/mod.js";
43
42
  export * from "./nodeinfo/mod.js";
44
43
  export * from "./runtime/mod.js";
45
44
  export * from "./sig/mod.js";
@@ -1 +1 @@
1
- {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,cAAc,qBAAqB,CAAC;AACpC,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACpE,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,eAAe,EAAE,KAAK,kBAAkB,EAAE,MAAM,oBAAoB,CAAC"}
1
+ {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,eAAe,EAAE,KAAK,kBAAkB,EAAE,MAAM,oBAAoB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"url.d.ts","sourceRoot":"","sources":["../../src/runtime/url.ts"],"names":[],"mappings":"AAIA,qBAAa,QAAS,SAAQ,KAAK;gBACrB,OAAO,EAAE,MAAM;CAI5B;AAED;;GAEG;AACH,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CA2BlE;AAED,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CASjE;AAED,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,MAAM,WASvD;AAED,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAWzD"}
1
+ {"version":3,"file":"url.d.ts","sourceRoot":"","sources":["../../src/runtime/url.ts"],"names":[],"mappings":"AAIA,qBAAa,QAAS,SAAQ,KAAK;gBACrB,OAAO,EAAE,MAAM;CAI5B;AAED;;GAEG;AACH,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CA+BlE;AAED,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CASjE;AAED,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,MAAM,WASvD;AAED,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAWzD"}
@@ -1 +1 @@
1
- {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/testing/context.ts"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAKxE,wBAAgB,aAAa,CAAC,YAAY,EACxC,EACE,GAAG,EACH,IAAI,EACJ,cAAc,EACd,aAAa,EACb,cAAc,EACd,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,eAAe,EACf,eAAe,EACf,WAAW,EACX,cAAc,EACd,kBAAkB,EAClB,QAAQ,EACR,gBAAgB,EAChB,WAAW,EACX,iBAAiB,EACjB,YAAY,GACb,EAAE,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,GAAG,CAAC;IAAC,IAAI,EAAE,YAAY,CAAA;CAAE,GACpE,OAAO,CAAC,YAAY,CAAC,CAgEvB;AAED,wBAAgB,oBAAoB,CAAC,YAAY,EAC/C,IAAI,EAAE,OAAO,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC,GAAG;IAC5C,GAAG,EAAE,GAAG,CAAC;IACT,IAAI,EAAE,YAAY,CAAC;CACpB,GACA,cAAc,CAAC,YAAY,CAAC,CAa9B"}
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/testing/context.ts"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAKxE,wBAAgB,aAAa,CAAC,YAAY,EACxC,EACE,GAAG,EACH,IAAI,EACJ,cAAc,EACd,aAAa,EACb,cAAc,EACd,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,eAAe,EACf,eAAe,EACf,WAAW,EACX,cAAc,EACd,kBAAkB,EAClB,QAAQ,EACR,gBAAgB,EAChB,WAAW,EACX,iBAAiB,EACjB,YAAY,GACb,EAAE,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,GAAG,CAAC;IAAC,IAAI,EAAE,YAAY,CAAA;CAAE,GACpE,OAAO,CAAC,YAAY,CAAC,CAuDvB;AAED,wBAAgB,oBAAoB,CAAC,YAAY,EAC/C,IAAI,EAAE,OAAO,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC,GAAG;IAC5C,GAAG,EAAE,GAAG,CAAC;IACT,IAAI,EAAE,YAAY,CAAC;CACpB,GACA,cAAc,CAAC,YAAY,CAAC,CAa9B"}
@@ -1,104 +0,0 @@
1
- import { getLogger } from "@logtape/logtape";
2
- import { signRequest, verifyRequest, } from "../sig/http.js";
3
- import { exportJwk as newExportJwk, generateCryptoKeyPair as newGenerateCryptoKeyPair, importJwk as newImportJwk, } from "../sig/key.js";
4
- import { doesActorOwnKey as newDoesActorOwnKey, getKeyOwner as newGetKeyOwner, } from "../sig/owner.js";
5
- /**
6
- * Signs a request using the given private key.
7
- * @param request The request to sign.
8
- * @param privateKey The private key to use for signing.
9
- * @param keyId The key ID to use for the signature. It will be used by the
10
- * verifier.
11
- * @returns The signed request.
12
- * @throws {TypeError} If the private key is invalid or unsupported.
13
- * @deprecated
14
- */
15
- export function sign(request, privateKey, keyId) {
16
- getLogger(["fedify", "httpsig", "sign"]).warn("The sign() function is deprecated. Use signRequest() instead.");
17
- return signRequest(request, privateKey, keyId);
18
- }
19
- /**
20
- * Verifies the signature of a request.
21
- *
22
- * Note that this function consumes the request body, so it should not be used
23
- * if the request body is already consumed. Consuming the request body after
24
- * calling this function is okay, since this function clones the request
25
- * under the hood.
26
- *
27
- * @param request The request to verify.
28
- * @param options Options for verifying the request.
29
- * @returns The public key of the verified signature, or `null` if the signature
30
- * could not be verified.
31
- * @deprecated
32
- */
33
- export function verify(request, options = {}) {
34
- getLogger(["fedify", "httpsig", "verify"]).warn("The verify() function is deprecated. Use verifyRequest() instead.");
35
- return verifyRequest(request, options);
36
- }
37
- /**
38
- * Checks if the actor of the given activity owns the specified key.
39
- * @param activity The activity to check.
40
- * @param key The public key to check.
41
- * @param options Options for checking the key ownership.
42
- * @returns Whether the actor is the owner of the key.
43
- * @deprecated
44
- */
45
- export function doesActorOwnKey(activity, key, options) {
46
- getLogger(["fedify", "httpsig"]).warn("The doesActorOwnKey() function from @fedify/fedify/httpsig is deprecated. " +
47
- "Use doesActorOwnKey() from @fedify/fedify/sig instead.");
48
- return newDoesActorOwnKey(activity, key, options);
49
- }
50
- /**
51
- * Gets the actor that owns the specified key. Returns `null` if the key has no
52
- * known owner.
53
- *
54
- * @param keyId The ID of the key to check, or the key itself.
55
- * @param options Options for getting the key owner.
56
- * @returns The actor that owns the key, or `null` if the key has no known
57
- * owner.
58
- * @since 0.7.0
59
- * @deprecated
60
- */
61
- export function getKeyOwner(keyId, options) {
62
- getLogger(["fedify", "httpsig"]).warn("The getKeyOwner() function from @fedify/fedify/httpsig is deprecated. " +
63
- "Use getKeyOwner() from @fedify/fedify/sig instead.");
64
- return newGetKeyOwner(keyId, options);
65
- }
66
- /**
67
- * Generates a key pair which is appropriate for Fedify.
68
- * @returns The generated key pair.
69
- * @since 0.3.0
70
- * @deprecated
71
- */
72
- export function generateCryptoKeyPair() {
73
- getLogger(["fedify", "httpsig", "key"]).warn("The generateCryptoKeyPair() from @fedify/fedify/httpsig is deprecated. " +
74
- "Please use generateKeyPair() from @fedify/fedify/sig instead.");
75
- return newGenerateCryptoKeyPair();
76
- }
77
- /**
78
- * Exports a key in JWK format.
79
- * @param key The key to export. Either public or private key.
80
- * @returns The exported key in JWK format. The key is suitable for
81
- * serialization and storage.
82
- * @throws {TypeError} If the key is invalid or unsupported.
83
- * @since 0.3.0
84
- * @deprecated
85
- */
86
- export function exportJwk(key) {
87
- getLogger(["fedify", "httpsig", "key"]).warn("The exportJwk() function from @fedify/fedify/httpsig is deprecated. " +
88
- "Please use exportJwk() from @fedify/fedify/sig instead.");
89
- return newExportJwk(key);
90
- }
91
- /**
92
- * Imports a key from JWK format.
93
- * @param jwk The key in JWK format.
94
- * @param type Which type of key to import, either `"public"`" or `"private"`".
95
- * @returns The imported key.
96
- * @throws {TypeError} If the key is invalid or unsupported.
97
- * @since 0.3.0
98
- * @deprecated
99
- */
100
- export function importJwk(jwk, type) {
101
- getLogger(["fedify", "httpsig", "key"]).warn("The importJwk() function from @fedify/fedify/httpsig is deprecated. " +
102
- "Please use importJwk() from @fedify/fedify/sig instead.");
103
- return newImportJwk(jwk, type);
104
- }
@@ -1,108 +0,0 @@
1
- /// <reference types="node" />
2
- /// <reference types="node" />
3
- /**
4
- * The implementation of the [HTTP
5
- * Signatures](https://datatracker.ietf.org/doc/html/draft-cavage-http-signatures-12).
6
- *
7
- * @module
8
- * @deprecated
9
- */
10
- import * as dntShim from "../_dnt.shims.js";
11
- import { type VerifyRequestOptions } from "../sig/http.js";
12
- import { type DoesActorOwnKeyOptions as NewDoesActorOwnKeyOptions, type GetKeyOwnerOptions as NewGetKeyOwnerOptions } from "../sig/owner.js";
13
- import type { Actor } from "../vocab/actor.js";
14
- import type { Activity, CryptographicKey } from "../vocab/vocab.js";
15
- /**
16
- * Signs a request using the given private key.
17
- * @param request The request to sign.
18
- * @param privateKey The private key to use for signing.
19
- * @param keyId The key ID to use for the signature. It will be used by the
20
- * verifier.
21
- * @returns The signed request.
22
- * @throws {TypeError} If the private key is invalid or unsupported.
23
- * @deprecated
24
- */
25
- export declare function sign(request: Request, privateKey: dntShim.CryptoKey, keyId: URL): Promise<Request>;
26
- /**
27
- * Options for {@link verify}.
28
- *
29
- * @since 0.9.0
30
- * @deprecated
31
- */
32
- export type VerifyOptions = VerifyRequestOptions;
33
- /**
34
- * Verifies the signature of a request.
35
- *
36
- * Note that this function consumes the request body, so it should not be used
37
- * if the request body is already consumed. Consuming the request body after
38
- * calling this function is okay, since this function clones the request
39
- * under the hood.
40
- *
41
- * @param request The request to verify.
42
- * @param options Options for verifying the request.
43
- * @returns The public key of the verified signature, or `null` if the signature
44
- * could not be verified.
45
- * @deprecated
46
- */
47
- export declare function verify(request: Request, options?: VerifyRequestOptions): Promise<CryptographicKey | null>;
48
- /**
49
- * Options for {@link doesActorOwnKey}.
50
- * @since 0.8.0
51
- * @deprecated
52
- */
53
- export type DoesActorOwnKeyOptions = NewDoesActorOwnKeyOptions;
54
- /**
55
- * Checks if the actor of the given activity owns the specified key.
56
- * @param activity The activity to check.
57
- * @param key The public key to check.
58
- * @param options Options for checking the key ownership.
59
- * @returns Whether the actor is the owner of the key.
60
- * @deprecated
61
- */
62
- export declare function doesActorOwnKey(activity: Activity, key: CryptographicKey, options: NewDoesActorOwnKeyOptions): Promise<boolean>;
63
- /**
64
- * Options for {@link getKeyOwner}.
65
- * @since 0.8.0
66
- * @deprecated
67
- */
68
- export type GetKeyOwnerOptions = NewGetKeyOwnerOptions;
69
- /**
70
- * Gets the actor that owns the specified key. Returns `null` if the key has no
71
- * known owner.
72
- *
73
- * @param keyId The ID of the key to check, or the key itself.
74
- * @param options Options for getting the key owner.
75
- * @returns The actor that owns the key, or `null` if the key has no known
76
- * owner.
77
- * @since 0.7.0
78
- * @deprecated
79
- */
80
- export declare function getKeyOwner(keyId: URL | CryptographicKey, options: NewGetKeyOwnerOptions): Promise<Actor | null>;
81
- /**
82
- * Generates a key pair which is appropriate for Fedify.
83
- * @returns The generated key pair.
84
- * @since 0.3.0
85
- * @deprecated
86
- */
87
- export declare function generateCryptoKeyPair(): Promise<dntShim.CryptoKeyPair>;
88
- /**
89
- * Exports a key in JWK format.
90
- * @param key The key to export. Either public or private key.
91
- * @returns The exported key in JWK format. The key is suitable for
92
- * serialization and storage.
93
- * @throws {TypeError} If the key is invalid or unsupported.
94
- * @since 0.3.0
95
- * @deprecated
96
- */
97
- export declare function exportJwk(key: dntShim.CryptoKey): Promise<dntShim.JsonWebKey>;
98
- /**
99
- * Imports a key from JWK format.
100
- * @param jwk The key in JWK format.
101
- * @param type Which type of key to import, either `"public"`" or `"private"`".
102
- * @returns The imported key.
103
- * @throws {TypeError} If the key is invalid or unsupported.
104
- * @since 0.3.0
105
- * @deprecated
106
- */
107
- export declare function importJwk(jwk: dntShim.JsonWebKey, type: "public" | "private"): Promise<dntShim.CryptoKey>;
108
- //# sourceMappingURL=mod.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../src/httpsig/mod.ts"],"names":[],"mappings":";;AAAA;;;;;;GAMG;AACH,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAG5C,OAAO,EAGL,KAAK,oBAAoB,EAC1B,MAAM,gBAAgB,CAAC;AAMxB,OAAO,EAEL,KAAK,sBAAsB,IAAI,yBAAyB,EAExD,KAAK,kBAAkB,IAAI,qBAAqB,EACjD,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,KAAK,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAEpE;;;;;;;;;GASG;AACH,wBAAgB,IAAI,CAClB,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,OAAO,CAAC,SAAS,EAC7B,KAAK,EAAE,GAAG,GACT,OAAO,CAAC,OAAO,CAAC,CAKlB;AAED;;;;;GAKG;AACH,MAAM,MAAM,aAAa,GAAG,oBAAoB,CAAC;AAEjD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,MAAM,CACpB,OAAO,EAAE,OAAO,EAChB,OAAO,GAAE,oBAAyB,GACjC,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAKlC;AAED;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAAG,yBAAyB,CAAC;AAE/D;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,QAAQ,EAClB,GAAG,EAAE,gBAAgB,EACrB,OAAO,EAAE,yBAAyB,GACjC,OAAO,CAAC,OAAO,CAAC,CAMlB;AAED;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG,qBAAqB,CAAC;AAEvD;;;;;;;;;;G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