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

Sign up to get free protection for your applications and to get access to all the features.
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
 
@@ -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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/fedify",
3
- "version": "0.12.0-dev.282+410cc775",
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",
@@ -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,aAAa,EAAE,MAAM,WAAW,CAAC;AAE/C;;GAEG;AACH,MAAM,WAAW,OAAO,CAAC,YAAY;IACnC;;;;OAIG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAExB;;;;;OAKG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAEtB;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC;IAE5B;;OAEG;IACH,QAAQ,CAAC,c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,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":"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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