@driftsys/markspec 0.7.0 → 0.7.1
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.
- package/esm/mod.d.ts +2 -2
- package/esm/mod.d.ts.map +1 -1
- package/esm/mod.js +2 -2
- package/esm/self_upgrade/manifest.d.ts +59 -2
- package/esm/self_upgrade/manifest.d.ts.map +1 -1
- package/esm/self_upgrade/manifest.js +81 -2
- package/esm/self_upgrade/mod.d.ts +1 -1
- package/esm/self_upgrade/mod.d.ts.map +1 -1
- package/esm/self_upgrade/mod.js +1 -1
- package/package.json +1 -1
- package/script/mod.d.ts +2 -2
- package/script/mod.d.ts.map +1 -1
- package/script/mod.js +6 -2
- package/script/self_upgrade/manifest.d.ts +59 -2
- package/script/self_upgrade/manifest.d.ts.map +1 -1
- package/script/self_upgrade/manifest.js +84 -2
- package/script/self_upgrade/mod.d.ts +1 -1
- package/script/self_upgrade/mod.d.ts.map +1 -1
- package/script/self_upgrade/mod.js +5 -1
package/esm/mod.d.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* from core/mod.ts, never from internal paths.
|
|
9
9
|
*/
|
|
10
10
|
import "./_dnt.polyfills.js";
|
|
11
|
-
export declare const VERSION = "0.7.
|
|
11
|
+
export declare const VERSION = "0.7.1";
|
|
12
12
|
export declare const CORE_SCHEMA_VERSION = 1;
|
|
13
13
|
export { ConfigError, CORE_DISCIPLINE_REGISTRY, CORE_KINDS, CORE_RELATIONS, DEFAULT_PROJECT_CONFIG, descendantsOf, KNOWN_LINK_KINDS, LOCK_EXTRA_INVERSE_KEYS, makeDisplayId, makeUlid, MIXED_DISCIPLINE, PALETTE_HUES, REFHUB_URL, } from "./model/mod.js";
|
|
14
14
|
export type { Attribute, BodyToken, BodyTokenKind, Caption, CaptionConventions, CaptionPosition, ConfigFieldError, Diagnostic, Directive, Discipline, DisciplineRegistry, DisplayId, EarsTrigger, EffectiveProfile, EffectiveTypeDef, EntityRefConvention, Entry, EntryShape, EntrySource, ExtractorRule, InlineRef, KindDecl, LabelConcern, LabelConcernKind, LabelValue, Link, LinkKind, LoadedProfile, ModalCase, PaletteHue, ProfileChain, ProfileConvention, ProjectConfig, ProvenancedMap, ProvenancedMapEntry, ProvenancedValue, RelationDef, Severity, SourceLocation, Ulid, } from "./model/mod.js";
|
|
@@ -50,5 +50,5 @@ export { canonicalEdgeJson, checkDrift, extractEdgeQuads, hashCanonicalEdges, is
|
|
|
50
50
|
export type { BoundEntry as LockBoundEntry, BoundEntryBinding as LockBinding, EdgeQuad, FetchUrl, GeneratedCache, LockedAttributes, Lockfile, LockfileMeta, LockfileToolchain, ParseLockfileResult, ReadFile as LockReadFile, ResolvedBoundEntry, ResolvedProfile, ResolvedReference, ResolvedRegistry, ResolvedUpstreams, ResolveUpstreamsOptions, Upstream, UpstreamProfile, UpstreamReference, UpstreamRegistry, } from "./lock/mod.js";
|
|
51
51
|
export { aggregateStatusByState, encodeLogLine, inferLockedAttributes, parseLogLine, parseMapping, validateMappings, } from "./sync/mod.js";
|
|
52
52
|
export type { AttributeMapping, BoundEntryStatus, ConflictPolicy, Direction as SyncDirection, Mapping, ParseMappingResult, RemoteState, SyncLogEntry, } from "./sync/mod.js";
|
|
53
|
-
export { type Arch as SelfUpgradeArch, classifyInstallPath, type ClassifyResult as SelfUpgradeClassifyResult, compareVersions, type Comparison, detectTarget, type InstallSource, type Os as SelfUpgradeOs, parseSha256Line, type Platform as SelfUpgradePlatform, platformFromBuild, type ReleaseAssets, releaseAssets, type Target as SelfUpgradeTarget, } from "./self_upgrade/mod.js";
|
|
53
|
+
export { type Arch as SelfUpgradeArch, assertTrustedReleaseUrl, classifyInstallPath, type ClassifyResult as SelfUpgradeClassifyResult, compareVersions, type Comparison, DEFAULT_RELEASES_API, DEFAULT_RELEASES_DOWNLOAD_BASE, detectTarget, type InstallSource, type Os as SelfUpgradeOs, parseSha256Line, type Platform as SelfUpgradePlatform, platformFromBuild, type ReleaseAssets, releaseAssets, type ReleaseEndpoints, type ResolveEndpointsInput, resolveReleaseEndpoints, type Target as SelfUpgradeTarget, } from "./self_upgrade/mod.js";
|
|
54
54
|
//# sourceMappingURL=mod.d.ts.map
|
package/esm/mod.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,qBAAqB,CAAC;AAG7B,eAAO,MAAM,OAAO,UAAU,CAAC;AAC/B,eAAO,MAAM,mBAAmB,IAAI,CAAC;AAGrC,OAAO,EACL,WAAW,EACX,wBAAwB,EACxB,UAAU,EACV,cAAc,EACd,sBAAsB,EACtB,aAAa,EACb,gBAAgB,EAChB,uBAAuB,EACvB,aAAa,EACb,QAAQ,EACR,gBAAgB,EAChB,YAAY,EACZ,UAAU,GACX,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACV,SAAS,EACT,SAAS,EACT,aAAa,EACb,OAAO,EACP,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,UAAU,EACV,SAAS,EACT,UAAU,EACV,kBAAkB,EAClB,SAAS,EACT,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,EACnB,KAAK,EACL,UAAU,EACV,WAAW,EACX,aAAa,EACb,SAAS,EACT,QAAQ,EACR,YAAY,EACZ,gBAAgB,EAChB,UAAU,EACV,IAAI,EACJ,QAAQ,EACR,aAAa,EACb,SAAS,EACT,UAAU,EACV,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,cAAc,EACd,mBAAmB,EACnB,gBAAgB,EAChB,WAAW,EACX,QAAQ,EACR,cAAc,EACd,IAAI,GACL,MAAM,gBAAgB,CAAC;AAIxB,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,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,EACjB,gBAAgB,GACjB,MAAM,eAAe,CAAC;AAGvB,OAAO,EACL,sBAAsB,EACtB,aAAa,EACb,qBAAqB,EACrB,YAAY,EACZ,YAAY,EACZ,gBAAgB,GACjB,MAAM,eAAe,CAAC;AACvB,YAAY,EACV,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,SAAS,IAAI,aAAa,EAC1B,OAAO,EACP,kBAAkB,EAClB,WAAW,EACX,YAAY,GACb,MAAM,eAAe,CAAC;AAGvB,OAAO,EACL,KAAK,IAAI,IAAI,eAAe,EAC5B,mBAAmB,EACnB,KAAK,cAAc,IAAI,yBAAyB,EAChD,eAAe,EACf,KAAK,UAAU,EACf,YAAY,EACZ,KAAK,aAAa,EAClB,KAAK,EAAE,IAAI,aAAa,EACxB,eAAe,EACf,KAAK,QAAQ,IAAI,mBAAmB,EACpC,iBAAiB,EACjB,KAAK,aAAa,EAClB,aAAa,EACb,KAAK,MAAM,IAAI,iBAAiB,GACjC,MAAM,uBAAuB,CAAC"}
|
|
1
|
+
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,qBAAqB,CAAC;AAG7B,eAAO,MAAM,OAAO,UAAU,CAAC;AAC/B,eAAO,MAAM,mBAAmB,IAAI,CAAC;AAGrC,OAAO,EACL,WAAW,EACX,wBAAwB,EACxB,UAAU,EACV,cAAc,EACd,sBAAsB,EACtB,aAAa,EACb,gBAAgB,EAChB,uBAAuB,EACvB,aAAa,EACb,QAAQ,EACR,gBAAgB,EAChB,YAAY,EACZ,UAAU,GACX,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACV,SAAS,EACT,SAAS,EACT,aAAa,EACb,OAAO,EACP,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,UAAU,EACV,SAAS,EACT,UAAU,EACV,kBAAkB,EAClB,SAAS,EACT,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,E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
|
8
8
|
* from core/mod.ts, never from internal paths.
|
|
9
9
|
*/
|
|
10
10
|
import "./_dnt.polyfills.js";
|
|
11
|
-
export const VERSION = "0.7.
|
|
11
|
+
export const VERSION = "0.7.1";
|
|
12
12
|
export const CORE_SCHEMA_VERSION = 1;
|
|
13
13
|
// Model types
|
|
14
14
|
export { ConfigError, CORE_DISCIPLINE_REGISTRY, CORE_KINDS, CORE_RELATIONS, DEFAULT_PROJECT_CONFIG, descendantsOf, KNOWN_LINK_KINDS, LOCK_EXTRA_INVERSE_KEYS, makeDisplayId, makeUlid, MIXED_DISCIPLINE, PALETTE_HUES, REFHUB_URL, } from "./model/mod.js";
|
|
@@ -48,4 +48,4 @@ export { canonicalEdgeJson, checkDrift, extractEdgeQuads, hashCanonicalEdges, is
|
|
|
48
48
|
// ── External sync model (ADR-022) ────────────────────────────────────────
|
|
49
49
|
export { aggregateStatusByState, encodeLogLine, inferLockedAttributes, parseLogLine, parseMapping, validateMappings, } from "./sync/mod.js";
|
|
50
50
|
// ── Self-upgrade ─────────────────────────────────────────────────────────
|
|
51
|
-
export { classifyInstallPath, compareVersions, detectTarget, parseSha256Line, platformFromBuild, releaseAssets, } from "./self_upgrade/mod.js";
|
|
51
|
+
export { assertTrustedReleaseUrl, classifyInstallPath, compareVersions, DEFAULT_RELEASES_API, DEFAULT_RELEASES_DOWNLOAD_BASE, detectTarget, parseSha256Line, platformFromBuild, releaseAssets, resolveReleaseEndpoints, } from "./self_upgrade/mod.js";
|
|
@@ -2,18 +2,75 @@
|
|
|
2
2
|
* @module core/self_upgrade/manifest
|
|
3
3
|
*
|
|
4
4
|
* Build the release tarball + SHA-256 URLs for a (version, target) pair,
|
|
5
|
-
*
|
|
6
|
-
*
|
|
5
|
+
* parse the single-line .sha256 files produced by sha256sum / shasum -a 256
|
|
6
|
+
* in the release workflow, and pin the release endpoints to the canonical
|
|
7
|
+
* GitHub origin. Pure — no I/O.
|
|
7
8
|
*
|
|
8
9
|
* The .sha256 line format is the standard one shared by GNU coreutils
|
|
9
10
|
* sha256sum and BSD/macOS shasum: `<64-hex> <basename>` with a two-space
|
|
10
11
|
* separator. We accept a trailing newline and lowercase the digest so
|
|
11
12
|
* callers can compare strings directly.
|
|
13
|
+
*
|
|
14
|
+
* Release-endpoint pinning ({@linkcode resolveReleaseEndpoints} +
|
|
15
|
+
* {@linkcode assertTrustedReleaseUrl}) ensures a self-upgrade can only fetch
|
|
16
|
+
* from the canonical github.com origin in production — the env overrides are
|
|
17
|
+
* test-mode-only (issue #580).
|
|
12
18
|
*/
|
|
13
19
|
export interface ReleaseAssets {
|
|
14
20
|
readonly tarballUrl: string;
|
|
15
21
|
readonly checksumUrl: string;
|
|
16
22
|
}
|
|
23
|
+
/** Pinned GitHub releases API endpoint for the canonical markspec repo. */
|
|
24
|
+
export declare const DEFAULT_RELEASES_API = "https://api.github.com/repos/driftsys/markspec/releases";
|
|
25
|
+
/** Pinned GitHub release-asset download base for the canonical markspec repo. */
|
|
26
|
+
export declare const DEFAULT_RELEASES_DOWNLOAD_BASE = "https://github.com/driftsys/markspec/releases/download";
|
|
27
|
+
/** Inputs to {@linkcode resolveReleaseEndpoints}. */
|
|
28
|
+
export interface ResolveEndpointsInput {
|
|
29
|
+
/**
|
|
30
|
+
* `true` only when `MARKSPEC_TEST_MODE=1`. Gates the env overrides —
|
|
31
|
+
* see {@linkcode resolveReleaseEndpoints}.
|
|
32
|
+
*/
|
|
33
|
+
readonly testMode: boolean;
|
|
34
|
+
/** Value of `MARKSPEC_RELEASES_API`, if set. */
|
|
35
|
+
readonly apiOverride?: string;
|
|
36
|
+
/** Value of `MARKSPEC_RELEASES_DOWNLOAD_BASE`, if set. */
|
|
37
|
+
readonly downloadOverride?: string;
|
|
38
|
+
}
|
|
39
|
+
/** Resolved release endpoints. */
|
|
40
|
+
export interface ReleaseEndpoints {
|
|
41
|
+
readonly apiBase: string;
|
|
42
|
+
readonly downloadBase: string;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Resolve the releases-API and download-base URLs, honouring the
|
|
46
|
+
* `MARKSPEC_RELEASES_API` / `MARKSPEC_RELEASES_DOWNLOAD_BASE` overrides
|
|
47
|
+
* **only** under `MARKSPEC_TEST_MODE=1` (`input.testMode`). In production
|
|
48
|
+
* the pinned `DEFAULT_RELEASES_*` constants are always returned, so a stray
|
|
49
|
+
* or hostile env var in the user's shell cannot redirect a self-upgrade to
|
|
50
|
+
* an attacker-controlled origin (issue #580) — the same gating the
|
|
51
|
+
* `MARKSPEC_SELF_UPGRADE_BIN_PATH` override already uses. A missing override
|
|
52
|
+
* under test mode falls back to the pinned default for that endpoint.
|
|
53
|
+
*/
|
|
54
|
+
export declare function resolveReleaseEndpoints(input: ResolveEndpointsInput): ReleaseEndpoints;
|
|
55
|
+
/**
|
|
56
|
+
* Assert that a release-endpoint URL is safe to fetch from, throwing
|
|
57
|
+
* otherwise. Defence-in-depth for {@linkcode resolveReleaseEndpoints}: even
|
|
58
|
+
* if a future change reintroduces an unconditional override, no fetch can
|
|
59
|
+
* reach an insecure or non-GitHub origin.
|
|
60
|
+
*
|
|
61
|
+
* In production (`allowInsecure: false`) the URL MUST use `https:` and a
|
|
62
|
+
* host in the GitHub allowlist (`github.com`, `api.github.com`,
|
|
63
|
+
* `objects.githubusercontent.com`). Under test mode (`allowInsecure: true`)
|
|
64
|
+
* an `http(s)` URL to `localhost` / `127.0.0.1` / `[::1]` is additionally
|
|
65
|
+
* permitted so the e2e suite can point at a local mock server; every other
|
|
66
|
+
* host still falls through to the production https-+-allowlist check.
|
|
67
|
+
*
|
|
68
|
+
* @throws Error when the URL is malformed, uses a non-https scheme, or
|
|
69
|
+
* targets a host outside the allowlist.
|
|
70
|
+
*/
|
|
71
|
+
export declare function assertTrustedReleaseUrl(rawUrl: string, opts: {
|
|
72
|
+
allowInsecure: boolean;
|
|
73
|
+
}): void;
|
|
17
74
|
/** Build the tarball + checksum URLs for a (version, target). */
|
|
18
75
|
export declare function releaseAssets(baseUrl: string, version: string, target: string): ReleaseAssets;
|
|
19
76
|
/** Parse a single sha256sum-format line; return the lowercase hex digest. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../../src/self_upgrade/manifest.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../../src/self_upgrade/manifest.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B;AAED,2EAA2E;AAC3E,eAAO,MAAM,oBAAoB,4DAC0B,CAAC;AAE5D,iFAAiF;AACjF,eAAO,MAAM,8BAA8B,2DACe,CAAC;AAiB3D,qDAAqD;AACrD,MAAM,WAAW,qBAAqB;IACpC;;;OAGG;IACH,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,gDAAgD;IAChD,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,0DAA0D;IAC1D,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;CACpC;AAED,kCAAkC;AAClC,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;CAC/B;AAED;;;;;;;;;GASG;AACH,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,qBAAqB,GAC3B,gBAAgB,CAQlB;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,MAAM,EACd,IAAI,EAAE;IAAE,aAAa,EAAE,OAAO,CAAA;CAAE,GAC/B,IAAI,CA4BN;AAED,iEAAiE;AACjE,wBAAgB,aAAa,CAC3B,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,GACb,aAAa,CAKf;AAED,6EAA6E;AAC7E,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAIpD"}
|
|
@@ -2,15 +2,94 @@
|
|
|
2
2
|
* @module core/self_upgrade/manifest
|
|
3
3
|
*
|
|
4
4
|
* Build the release tarball + SHA-256 URLs for a (version, target) pair,
|
|
5
|
-
*
|
|
6
|
-
*
|
|
5
|
+
* parse the single-line .sha256 files produced by sha256sum / shasum -a 256
|
|
6
|
+
* in the release workflow, and pin the release endpoints to the canonical
|
|
7
|
+
* GitHub origin. Pure — no I/O.
|
|
7
8
|
*
|
|
8
9
|
* The .sha256 line format is the standard one shared by GNU coreutils
|
|
9
10
|
* sha256sum and BSD/macOS shasum: `<64-hex> <basename>` with a two-space
|
|
10
11
|
* separator. We accept a trailing newline and lowercase the digest so
|
|
11
12
|
* callers can compare strings directly.
|
|
13
|
+
*
|
|
14
|
+
* Release-endpoint pinning ({@linkcode resolveReleaseEndpoints} +
|
|
15
|
+
* {@linkcode assertTrustedReleaseUrl}) ensures a self-upgrade can only fetch
|
|
16
|
+
* from the canonical github.com origin in production — the env overrides are
|
|
17
|
+
* test-mode-only (issue #580).
|
|
18
|
+
*/
|
|
19
|
+
/** Pinned GitHub releases API endpoint for the canonical markspec repo. */
|
|
20
|
+
export const DEFAULT_RELEASES_API = "https://api.github.com/repos/driftsys/markspec/releases";
|
|
21
|
+
/** Pinned GitHub release-asset download base for the canonical markspec repo. */
|
|
22
|
+
export const DEFAULT_RELEASES_DOWNLOAD_BASE = "https://github.com/driftsys/markspec/releases/download";
|
|
23
|
+
/**
|
|
24
|
+
* Hosts the self-upgrade fetches are permitted to contact in production.
|
|
25
|
+
* `objects.githubusercontent.com` is GitHub's release-asset CDN — a
|
|
26
|
+
* `releases/download` URL 302-redirects there, and `fetch` follows the
|
|
27
|
+
* redirect, so it must be on the allowlist even though we never build a
|
|
28
|
+
* URL pointing at it directly.
|
|
12
29
|
*/
|
|
30
|
+
const TRUSTED_RELEASE_HOSTS = new Set([
|
|
31
|
+
"github.com",
|
|
32
|
+
"api.github.com",
|
|
33
|
+
"objects.githubusercontent.com",
|
|
34
|
+
]);
|
|
13
35
|
const SHA256_LINE_RE = /^([0-9a-fA-F]{64})\s+(\S.*?)\s*$/;
|
|
36
|
+
/**
|
|
37
|
+
* Resolve the releases-API and download-base URLs, honouring the
|
|
38
|
+
* `MARKSPEC_RELEASES_API` / `MARKSPEC_RELEASES_DOWNLOAD_BASE` overrides
|
|
39
|
+
* **only** under `MARKSPEC_TEST_MODE=1` (`input.testMode`). In production
|
|
40
|
+
* the pinned `DEFAULT_RELEASES_*` constants are always returned, so a stray
|
|
41
|
+
* or hostile env var in the user's shell cannot redirect a self-upgrade to
|
|
42
|
+
* an attacker-controlled origin (issue #580) — the same gating the
|
|
43
|
+
* `MARKSPEC_SELF_UPGRADE_BIN_PATH` override already uses. A missing override
|
|
44
|
+
* under test mode falls back to the pinned default for that endpoint.
|
|
45
|
+
*/
|
|
46
|
+
export function resolveReleaseEndpoints(input) {
|
|
47
|
+
const apiBase = input.testMode && input.apiOverride
|
|
48
|
+
? input.apiOverride
|
|
49
|
+
: DEFAULT_RELEASES_API;
|
|
50
|
+
const downloadBase = input.testMode && input.downloadOverride
|
|
51
|
+
? input.downloadOverride
|
|
52
|
+
: DEFAULT_RELEASES_DOWNLOAD_BASE;
|
|
53
|
+
return { apiBase, downloadBase };
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Assert that a release-endpoint URL is safe to fetch from, throwing
|
|
57
|
+
* otherwise. Defence-in-depth for {@linkcode resolveReleaseEndpoints}: even
|
|
58
|
+
* if a future change reintroduces an unconditional override, no fetch can
|
|
59
|
+
* reach an insecure or non-GitHub origin.
|
|
60
|
+
*
|
|
61
|
+
* In production (`allowInsecure: false`) the URL MUST use `https:` and a
|
|
62
|
+
* host in the GitHub allowlist (`github.com`, `api.github.com`,
|
|
63
|
+
* `objects.githubusercontent.com`). Under test mode (`allowInsecure: true`)
|
|
64
|
+
* an `http(s)` URL to `localhost` / `127.0.0.1` / `[::1]` is additionally
|
|
65
|
+
* permitted so the e2e suite can point at a local mock server; every other
|
|
66
|
+
* host still falls through to the production https-+-allowlist check.
|
|
67
|
+
*
|
|
68
|
+
* @throws Error when the URL is malformed, uses a non-https scheme, or
|
|
69
|
+
* targets a host outside the allowlist.
|
|
70
|
+
*/
|
|
71
|
+
export function assertTrustedReleaseUrl(rawUrl, opts) {
|
|
72
|
+
let url;
|
|
73
|
+
try {
|
|
74
|
+
url = new URL(rawUrl);
|
|
75
|
+
}
|
|
76
|
+
catch {
|
|
77
|
+
throw new Error(`invalid release URL: ${JSON.stringify(rawUrl)}`);
|
|
78
|
+
}
|
|
79
|
+
if (opts.allowInsecure) {
|
|
80
|
+
const isLoopback = url.hostname === "localhost" ||
|
|
81
|
+
url.hostname === "127.0.0.1" || url.hostname === "[::1]";
|
|
82
|
+
if (isLoopback && (url.protocol === "http:" || url.protocol === "https:")) {
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
if (url.protocol !== "https:") {
|
|
87
|
+
throw new Error(`refusing to self-upgrade over insecure transport: ${url.protocol}//${url.host} (only https: is permitted)`);
|
|
88
|
+
}
|
|
89
|
+
if (!TRUSTED_RELEASE_HOSTS.has(url.hostname)) {
|
|
90
|
+
throw new Error(`refusing to self-upgrade from untrusted host: ${url.host} (permitted: ${[...TRUSTED_RELEASE_HOSTS].join(", ")})`);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
14
93
|
/** Build the tarball + checksum URLs for a (version, target). */
|
|
15
94
|
export function releaseAssets(baseUrl, version, target) {
|
|
16
95
|
const tag = version.startsWith("v") ? version : `v${version}`;
|
|
@@ -7,6 +7,6 @@
|
|
|
7
7
|
*/
|
|
8
8
|
export { compareVersions, type Comparison } from "./compare.js";
|
|
9
9
|
export { classifyInstallPath, type ClassifyResult, type InstallSource, } from "./pm_detect.js";
|
|
10
|
-
export { parseSha256Line, type ReleaseAssets, releaseAssets, } from "./manifest.js";
|
|
10
|
+
export { assertTrustedReleaseUrl, DEFAULT_RELEASES_API, DEFAULT_RELEASES_DOWNLOAD_BASE, parseSha256Line, type ReleaseAssets, releaseAssets, type ReleaseEndpoints, type ResolveEndpointsInput, resolveReleaseEndpoints, } from "./manifest.js";
|
|
11
11
|
export { type Arch, detectTarget, type Os, type Platform, platformFromBuild, type Target, } from "./target.js";
|
|
12
12
|
//# sourceMappingURL=mod.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../src/self_upgrade/mod.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,eAAe,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,EACL,mBAAmB,EACnB,KAAK,cAAc,EACnB,KAAK,aAAa,GACnB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,eAAe,EACf,KAAK,aAAa,EAClB,aAAa,
|
|
1
|
+
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../src/self_upgrade/mod.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,eAAe,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,EACL,mBAAmB,EACnB,KAAK,cAAc,EACnB,KAAK,aAAa,GACnB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,uBAAuB,EACvB,oBAAoB,EACpB,8BAA8B,EAC9B,eAAe,EACf,KAAK,aAAa,EAClB,aAAa,EACb,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAC1B,uBAAuB,GACxB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,KAAK,IAAI,EACT,YAAY,EACZ,KAAK,EAAE,EACP,KAAK,QAAQ,EACb,iBAAiB,EACjB,KAAK,MAAM,GACZ,MAAM,aAAa,CAAC"}
|
package/esm/self_upgrade/mod.js
CHANGED
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
*/
|
|
8
8
|
export { compareVersions } from "./compare.js";
|
|
9
9
|
export { classifyInstallPath, } from "./pm_detect.js";
|
|
10
|
-
export { parseSha256Line, releaseAssets, } from "./manifest.js";
|
|
10
|
+
export { assertTrustedReleaseUrl, DEFAULT_RELEASES_API, DEFAULT_RELEASES_DOWNLOAD_BASE, parseSha256Line, releaseAssets, resolveReleaseEndpoints, } from "./manifest.js";
|
|
11
11
|
export { detectTarget, platformFromBuild, } from "./target.js";
|
package/package.json
CHANGED
package/script/mod.d.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* from core/mod.ts, never from internal paths.
|
|
9
9
|
*/
|
|
10
10
|
import "./_dnt.polyfills.js";
|
|
11
|
-
export declare const VERSION = "0.7.
|
|
11
|
+
export declare const VERSION = "0.7.1";
|
|
12
12
|
export declare const CORE_SCHEMA_VERSION = 1;
|
|
13
13
|
export { ConfigError, CORE_DISCIPLINE_REGISTRY, CORE_KINDS, CORE_RELATIONS, DEFAULT_PROJECT_CONFIG, descendantsOf, KNOWN_LINK_KINDS, LOCK_EXTRA_INVERSE_KEYS, makeDisplayId, makeUlid, MIXED_DISCIPLINE, PALETTE_HUES, REFHUB_URL, } from "./model/mod.js";
|
|
14
14
|
export type { Attribute, BodyToken, BodyTokenKind, Caption, CaptionConventions, CaptionPosition, ConfigFieldError, Diagnostic, Directive, Discipline, DisciplineRegistry, DisplayId, EarsTrigger, EffectiveProfile, EffectiveTypeDef, EntityRefConvention, Entry, EntryShape, EntrySource, ExtractorRule, InlineRef, KindDecl, LabelConcern, LabelConcernKind, LabelValue, Link, LinkKind, LoadedProfile, ModalCase, PaletteHue, ProfileChain, ProfileConvention, ProjectConfig, ProvenancedMap, ProvenancedMapEntry, ProvenancedValue, RelationDef, Severity, SourceLocation, Ulid, } from "./model/mod.js";
|
|
@@ -50,5 +50,5 @@ export { canonicalEdgeJson, checkDrift, extractEdgeQuads, hashCanonicalEdges, is
|
|
|
50
50
|
export type { BoundEntry as LockBoundEntry, BoundEntryBinding as LockBinding, EdgeQuad, FetchUrl, GeneratedCache, LockedAttributes, Lockfile, LockfileMeta, LockfileToolchain, ParseLockfileResult, ReadFile as LockReadFile, ResolvedBoundEntry, ResolvedProfile, ResolvedReference, ResolvedRegistry, ResolvedUpstreams, ResolveUpstreamsOptions, Upstream, UpstreamProfile, UpstreamReference, UpstreamRegistry, } from "./lock/mod.js";
|
|
51
51
|
export { aggregateStatusByState, encodeLogLine, inferLockedAttributes, parseLogLine, parseMapping, validateMappings, } from "./sync/mod.js";
|
|
52
52
|
export type { AttributeMapping, BoundEntryStatus, ConflictPolicy, Direction as SyncDirection, Mapping, ParseMappingResult, RemoteState, SyncLogEntry, } from "./sync/mod.js";
|
|
53
|
-
export { type Arch as SelfUpgradeArch, classifyInstallPath, type ClassifyResult as SelfUpgradeClassifyResult, compareVersions, type Comparison, detectTarget, type InstallSource, type Os as SelfUpgradeOs, parseSha256Line, type Platform as SelfUpgradePlatform, platformFromBuild, type ReleaseAssets, releaseAssets, type Target as SelfUpgradeTarget, } from "./self_upgrade/mod.js";
|
|
53
|
+
export { type Arch as SelfUpgradeArch, assertTrustedReleaseUrl, classifyInstallPath, type ClassifyResult as SelfUpgradeClassifyResult, compareVersions, type Comparison, DEFAULT_RELEASES_API, DEFAULT_RELEASES_DOWNLOAD_BASE, detectTarget, type InstallSource, type Os as SelfUpgradeOs, parseSha256Line, type Platform as SelfUpgradePlatform, platformFromBuild, type ReleaseAssets, releaseAssets, type ReleaseEndpoints, type ResolveEndpointsInput, resolveReleaseEndpoints, type Target as SelfUpgradeTarget, } from "./self_upgrade/mod.js";
|
|
54
54
|
//# sourceMappingURL=mod.d.ts.map
|
package/script/mod.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OA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AY,GACb,MAAM,eAAe,CAAC;AAGvB,OAAO,EACL,KAAK,IAAI,IAAI,eAAe,EAC5B,mBAAmB,EACnB,KAAK,cAAc,IAAI,yBAAyB,EAChD,eAAe,EACf,KAAK,UAAU,EACf,YAAY,EACZ,KAAK,aAAa,EAClB,KAAK,EAAE,IAAI,aAAa,EACxB,eAAe,EACf,KAAK,QAAQ,IAAI,mBAAmB,EACpC,iBAAiB,EACjB,KAAK,aAAa,EAClB,aAAa,EACb,KAAK,MAAM,IAAI,iBAAiB,GACjC,MAAM,uBAAuB,CAAC"}
|
|
1
|
+
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,qBAAqB,CAAC;AAG7B,eAAO,MAAM,OAAO,UAAU,CAAC;AAC/B,eAAO,MAAM,mBAAmB,IAAI,CAAC;AAGrC,OAAO,EACL,WAAW,EACX,wBAAwB,EACxB,UAAU,EACV,cAAc,EACd,sBAAsB,EACtB,aAAa,EACb,gBAAgB,EAChB,uBAAuB,EACvB,aAAa,EACb,QAAQ,EACR,gBAAgB,EAChB,YAAY,EACZ,UAAU,GACX,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACV,SAAS,EACT,SAAS,EACT,aAAa,EACb,OAAO,EACP,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,UAAU,EACV,SAAS,EACT,UAAU,EACV,kBAAkB,EAClB,SAAS,EACT,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,EACnB,KAAK,EACL,UAAU,EACV,WAAW,EACX,aAAa,EACb,SAAS,EACT,QAAQ,EACR,YAAY,EACZ,gBAAgB,EAChB,UAAU,EACV,IAAI,EACJ,QAAQ,EACR,aAAa,EACb,SAAS,EACT,UAAU,EACV,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,cAAc,EACd,mBAAmB,EACnB,gBAAgB,EAChB,WAAW,EACX,QAAQ,EACR,cAAc,EACd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R,YAAY,EACZ,iBAAiB,EACjB,mBAAmB,EACnB,QAAQ,IAAI,YAAY,EACxB,kBAAkB,EAClB,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,uBAAuB,EACvB,QAAQ,EACR,eAAe,EACf,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,eAAe,CAAC;AAGvB,OAAO,EACL,sBAAsB,EACtB,aAAa,EACb,qBAAqB,EACrB,YAAY,EACZ,YAAY,EACZ,gBAAgB,GACjB,MAAM,eAAe,CAAC;AACvB,YAAY,EACV,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,SAAS,IAAI,aAAa,EAC1B,OAAO,EACP,kBAAkB,EAClB,WAAW,EACX,YAAY,GACb,MAAM,eAAe,CAAC;AAGvB,OAAO,EACL,KAAK,IAAI,IAAI,eAAe,EAC5B,uBAAuB,EACvB,mBAAmB,EACnB,KAAK,cAAc,IAAI,yBAAyB,EAChD,eAAe,EACf,KAAK,UAAU,EACf,oBAAoB,EACpB,8BAA8B,EAC9B,YAAY,EACZ,KAAK,aAAa,EAClB,KAAK,EAAE,IAAI,aAAa,EACxB,eAAe,EACf,KAAK,QAAQ,IAAI,mBAAmB,EACpC,iBAAiB,EACjB,KAAK,aAAa,EAClB,aAAa,EACb,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAC1B,uBAAuB,EACvB,KAAK,MAAM,IAAI,iBAAiB,GACjC,MAAM,uBAAuB,CAAC"}
|
package/script/mod.js
CHANGED
|
@@ -35,7 +35,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.detectDirectives = exports.detectCaptions = exports.buildProfileIntrospection = exports.targetsForRelation = exports.filterEntriesByTraceTargets = exports.entryMatchesTargets = exports.parseDisplayIdPattern = exports.padDisplayIdNumber = exports.highestDisplayIdNumber = exports.formatDisplayId = exports.resolveDisciplineMode = exports.inferDisciplineMode = exports.buildEffectiveDisciplineRegistry = exports.resolveLocalSpecifier = exports.resolveGitSpecifier = exports.resolveEntryColor = exports.parseManifest = exports.mergeChain = exports.loadProfileForCommand = exports.loadChain = exports.ensureCacheGitignored = exports.defaultRunGit = exports.defaultAppendFile = exports.computeCacheLocation = exports.computeCacheKey = exports.readMarkspecYaml = exports.parseMarkspecYaml = exports.MARKSPEC_YAML_FILENAME = exports.addProfileSpecifier = exports.parseProjectConfig = exports.loadConfig = exports.discoverProjectRoot = exports.render = exports.normalizeBodyAst = exports.astEquivalent = exports.REFHUB_URL = exports.PALETTE_HUES = exports.MIXED_DISCIPLINE = exports.makeUlid = exports.makeDisplayId = exports.LOCK_EXTRA_INVERSE_KEYS = exports.KNOWN_LINK_KINDS = exports.descendantsOf = exports.DEFAULT_PROJECT_CONFIG = exports.CORE_RELATIONS = exports.CORE_KINDS = exports.CORE_DISCIPLINE_REGISTRY = exports.ConfigError = exports.CORE_SCHEMA_VERSION = exports.VERSION = void 0;
|
|
37
37
|
exports.aggregateStatusByState = exports.sha256String = exports.sha256Bytes = exports.serializeLockfile = exports.resolveUpstreams = exports.resolveRegistries = exports.resolveReferences = exports.resolveProfileChain = exports.resolveBoundEntries = exports.parseLockfile = exports.LOCKFILE_SCHEMA_VERSION = exports.isBelowFloor = exports.hashCanonicalEdges = exports.extractEdgeQuads = exports.checkDrift = exports.canonicalEdgeJson = exports.typl = exports.runLint = exports.isProseScope = exports.computeScoreRollup = exports.ANTI_PATTERN_NOTE = exports.report = exports.indexToJson = exports.buildEntriesNdjson = exports.buildEdgesNdjson = exports.buildManifest = exports.serializeCompileResult = exports.generateInverses = exports.compile = exports.validateValue = exports.validateTraceabilityForEntry = exports.validateListingDocuments = exports.validateAttributesForEntry = exports.validate = exports.suppressDeclaredAttrR010 = exports.runPipeline = exports.normalizeListValues = exports.matchesAnyTarget = exports.effectiveTraceRules = exports.effectiveScope = exports.compileDisplayIdPattern = exports.classifyEntry = exports.classifyEntriesStage = exports.format = exports.parseSource = exports.parseFile = exports.parse = exports.loadGrammar = exports.isSupportedExtension = exports.detectInlineRefs = void 0;
|
|
38
|
-
exports.releaseAssets = exports.platformFromBuild = exports.parseSha256Line = exports.detectTarget = exports.compareVersions = exports.classifyInstallPath = exports.validateMappings = exports.parseMapping = exports.parseLogLine = exports.inferLockedAttributes = exports.encodeLogLine = void 0;
|
|
38
|
+
exports.resolveReleaseEndpoints = exports.releaseAssets = exports.platformFromBuild = exports.parseSha256Line = exports.detectTarget = exports.DEFAULT_RELEASES_DOWNLOAD_BASE = exports.DEFAULT_RELEASES_API = exports.compareVersions = exports.classifyInstallPath = exports.assertTrustedReleaseUrl = exports.validateMappings = exports.parseMapping = exports.parseLogLine = exports.inferLockedAttributes = exports.encodeLogLine = void 0;
|
|
39
39
|
/**
|
|
40
40
|
* @module core
|
|
41
41
|
*
|
|
@@ -46,7 +46,7 @@ exports.releaseAssets = exports.platformFromBuild = exports.parseSha256Line = ex
|
|
|
46
46
|
* from core/mod.ts, never from internal paths.
|
|
47
47
|
*/
|
|
48
48
|
require("./_dnt.polyfills.js");
|
|
49
|
-
exports.VERSION = "0.7.
|
|
49
|
+
exports.VERSION = "0.7.1";
|
|
50
50
|
exports.CORE_SCHEMA_VERSION = 1;
|
|
51
51
|
// Model types
|
|
52
52
|
var mod_js_1 = require("./model/mod.js");
|
|
@@ -189,9 +189,13 @@ Object.defineProperty(exports, "parseMapping", { enumerable: true, get: function
|
|
|
189
189
|
Object.defineProperty(exports, "validateMappings", { enumerable: true, get: function () { return mod_js_16.validateMappings; } });
|
|
190
190
|
// ── Self-upgrade ─────────────────────────────────────────────────────────
|
|
191
191
|
var mod_js_17 = require("./self_upgrade/mod.js");
|
|
192
|
+
Object.defineProperty(exports, "assertTrustedReleaseUrl", { enumerable: true, get: function () { return mod_js_17.assertTrustedReleaseUrl; } });
|
|
192
193
|
Object.defineProperty(exports, "classifyInstallPath", { enumerable: true, get: function () { return mod_js_17.classifyInstallPath; } });
|
|
193
194
|
Object.defineProperty(exports, "compareVersions", { enumerable: true, get: function () { return mod_js_17.compareVersions; } });
|
|
195
|
+
Object.defineProperty(exports, "DEFAULT_RELEASES_API", { enumerable: true, get: function () { return mod_js_17.DEFAULT_RELEASES_API; } });
|
|
196
|
+
Object.defineProperty(exports, "DEFAULT_RELEASES_DOWNLOAD_BASE", { enumerable: true, get: function () { return mod_js_17.DEFAULT_RELEASES_DOWNLOAD_BASE; } });
|
|
194
197
|
Object.defineProperty(exports, "detectTarget", { enumerable: true, get: function () { return mod_js_17.detectTarget; } });
|
|
195
198
|
Object.defineProperty(exports, "parseSha256Line", { enumerable: true, get: function () { return mod_js_17.parseSha256Line; } });
|
|
196
199
|
Object.defineProperty(exports, "platformFromBuild", { enumerable: true, get: function () { return mod_js_17.platformFromBuild; } });
|
|
197
200
|
Object.defineProperty(exports, "releaseAssets", { enumerable: true, get: function () { return mod_js_17.releaseAssets; } });
|
|
201
|
+
Object.defineProperty(exports, "resolveReleaseEndpoints", { enumerable: true, get: function () { return mod_js_17.resolveReleaseEndpoints; } });
|
|
@@ -2,18 +2,75 @@
|
|
|
2
2
|
* @module core/self_upgrade/manifest
|
|
3
3
|
*
|
|
4
4
|
* Build the release tarball + SHA-256 URLs for a (version, target) pair,
|
|
5
|
-
*
|
|
6
|
-
*
|
|
5
|
+
* parse the single-line .sha256 files produced by sha256sum / shasum -a 256
|
|
6
|
+
* in the release workflow, and pin the release endpoints to the canonical
|
|
7
|
+
* GitHub origin. Pure — no I/O.
|
|
7
8
|
*
|
|
8
9
|
* The .sha256 line format is the standard one shared by GNU coreutils
|
|
9
10
|
* sha256sum and BSD/macOS shasum: `<64-hex> <basename>` with a two-space
|
|
10
11
|
* separator. We accept a trailing newline and lowercase the digest so
|
|
11
12
|
* callers can compare strings directly.
|
|
13
|
+
*
|
|
14
|
+
* Release-endpoint pinning ({@linkcode resolveReleaseEndpoints} +
|
|
15
|
+
* {@linkcode assertTrustedReleaseUrl}) ensures a self-upgrade can only fetch
|
|
16
|
+
* from the canonical github.com origin in production — the env overrides are
|
|
17
|
+
* test-mode-only (issue #580).
|
|
12
18
|
*/
|
|
13
19
|
export interface ReleaseAssets {
|
|
14
20
|
readonly tarballUrl: string;
|
|
15
21
|
readonly checksumUrl: string;
|
|
16
22
|
}
|
|
23
|
+
/** Pinned GitHub releases API endpoint for the canonical markspec repo. */
|
|
24
|
+
export declare const DEFAULT_RELEASES_API = "https://api.github.com/repos/driftsys/markspec/releases";
|
|
25
|
+
/** Pinned GitHub release-asset download base for the canonical markspec repo. */
|
|
26
|
+
export declare const DEFAULT_RELEASES_DOWNLOAD_BASE = "https://github.com/driftsys/markspec/releases/download";
|
|
27
|
+
/** Inputs to {@linkcode resolveReleaseEndpoints}. */
|
|
28
|
+
export interface ResolveEndpointsInput {
|
|
29
|
+
/**
|
|
30
|
+
* `true` only when `MARKSPEC_TEST_MODE=1`. Gates the env overrides —
|
|
31
|
+
* see {@linkcode resolveReleaseEndpoints}.
|
|
32
|
+
*/
|
|
33
|
+
readonly testMode: boolean;
|
|
34
|
+
/** Value of `MARKSPEC_RELEASES_API`, if set. */
|
|
35
|
+
readonly apiOverride?: string;
|
|
36
|
+
/** Value of `MARKSPEC_RELEASES_DOWNLOAD_BASE`, if set. */
|
|
37
|
+
readonly downloadOverride?: string;
|
|
38
|
+
}
|
|
39
|
+
/** Resolved release endpoints. */
|
|
40
|
+
export interface ReleaseEndpoints {
|
|
41
|
+
readonly apiBase: string;
|
|
42
|
+
readonly downloadBase: string;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Resolve the releases-API and download-base URLs, honouring the
|
|
46
|
+
* `MARKSPEC_RELEASES_API` / `MARKSPEC_RELEASES_DOWNLOAD_BASE` overrides
|
|
47
|
+
* **only** under `MARKSPEC_TEST_MODE=1` (`input.testMode`). In production
|
|
48
|
+
* the pinned `DEFAULT_RELEASES_*` constants are always returned, so a stray
|
|
49
|
+
* or hostile env var in the user's shell cannot redirect a self-upgrade to
|
|
50
|
+
* an attacker-controlled origin (issue #580) — the same gating the
|
|
51
|
+
* `MARKSPEC_SELF_UPGRADE_BIN_PATH` override already uses. A missing override
|
|
52
|
+
* under test mode falls back to the pinned default for that endpoint.
|
|
53
|
+
*/
|
|
54
|
+
export declare function resolveReleaseEndpoints(input: ResolveEndpointsInput): ReleaseEndpoints;
|
|
55
|
+
/**
|
|
56
|
+
* Assert that a release-endpoint URL is safe to fetch from, throwing
|
|
57
|
+
* otherwise. Defence-in-depth for {@linkcode resolveReleaseEndpoints}: even
|
|
58
|
+
* if a future change reintroduces an unconditional override, no fetch can
|
|
59
|
+
* reach an insecure or non-GitHub origin.
|
|
60
|
+
*
|
|
61
|
+
* In production (`allowInsecure: false`) the URL MUST use `https:` and a
|
|
62
|
+
* host in the GitHub allowlist (`github.com`, `api.github.com`,
|
|
63
|
+
* `objects.githubusercontent.com`). Under test mode (`allowInsecure: true`)
|
|
64
|
+
* an `http(s)` URL to `localhost` / `127.0.0.1` / `[::1]` is additionally
|
|
65
|
+
* permitted so the e2e suite can point at a local mock server; every other
|
|
66
|
+
* host still falls through to the production https-+-allowlist check.
|
|
67
|
+
*
|
|
68
|
+
* @throws Error when the URL is malformed, uses a non-https scheme, or
|
|
69
|
+
* targets a host outside the allowlist.
|
|
70
|
+
*/
|
|
71
|
+
export declare function assertTrustedReleaseUrl(rawUrl: string, opts: {
|
|
72
|
+
allowInsecure: boolean;
|
|
73
|
+
}): void;
|
|
17
74
|
/** Build the tarball + checksum URLs for a (version, target). */
|
|
18
75
|
export declare function releaseAssets(baseUrl: string, version: string, target: string): ReleaseAssets;
|
|
19
76
|
/** Parse a single sha256sum-format line; return the lowercase hex digest. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../../src/self_upgrade/manifest.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../../src/self_upgrade/manifest.ts"],"names":[],"mappings":"AAAA;;;;;;;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.sha256 files produced by sha256sum / shasum -a 256
|
|
7
|
+
* in the release workflow, and pin the release endpoints to the canonical
|
|
8
|
+
* GitHub origin. Pure — no I/O.
|
|
8
9
|
*
|
|
9
10
|
* The .sha256 line format is the standard one shared by GNU coreutils
|
|
10
11
|
* sha256sum and BSD/macOS shasum: `<64-hex> <basename>` with a two-space
|
|
11
12
|
* separator. We accept a trailing newline and lowercase the digest so
|
|
12
13
|
* callers can compare strings directly.
|
|
14
|
+
*
|
|
15
|
+
* Release-endpoint pinning ({@linkcode resolveReleaseEndpoints} +
|
|
16
|
+
* {@linkcode assertTrustedReleaseUrl}) ensures a self-upgrade can only fetch
|
|
17
|
+
* from the canonical github.com origin in production — the env overrides are
|
|
18
|
+
* test-mode-only (issue #580).
|
|
13
19
|
*/
|
|
14
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
exports.DEFAULT_RELEASES_DOWNLOAD_BASE = exports.DEFAULT_RELEASES_API = void 0;
|
|
22
|
+
exports.resolveReleaseEndpoints = resolveReleaseEndpoints;
|
|
23
|
+
exports.assertTrustedReleaseUrl = assertTrustedReleaseUrl;
|
|
15
24
|
exports.releaseAssets = releaseAssets;
|
|
16
25
|
exports.parseSha256Line = parseSha256Line;
|
|
26
|
+
/** Pinned GitHub releases API endpoint for the canonical markspec repo. */
|
|
27
|
+
exports.DEFAULT_RELEASES_API = "https://api.github.com/repos/driftsys/markspec/releases";
|
|
28
|
+
/** Pinned GitHub release-asset download base for the canonical markspec repo. */
|
|
29
|
+
exports.DEFAULT_RELEASES_DOWNLOAD_BASE = "https://github.com/driftsys/markspec/releases/download";
|
|
30
|
+
/**
|
|
31
|
+
* Hosts the self-upgrade fetches are permitted to contact in production.
|
|
32
|
+
* `objects.githubusercontent.com` is GitHub's release-asset CDN — a
|
|
33
|
+
* `releases/download` URL 302-redirects there, and `fetch` follows the
|
|
34
|
+
* redirect, so it must be on the allowlist even though we never build a
|
|
35
|
+
* URL pointing at it directly.
|
|
36
|
+
*/
|
|
37
|
+
const TRUSTED_RELEASE_HOSTS = new Set([
|
|
38
|
+
"github.com",
|
|
39
|
+
"api.github.com",
|
|
40
|
+
"objects.githubusercontent.com",
|
|
41
|
+
]);
|
|
17
42
|
const SHA256_LINE_RE = /^([0-9a-fA-F]{64})\s+(\S.*?)\s*$/;
|
|
43
|
+
/**
|
|
44
|
+
* Resolve the releases-API and download-base URLs, honouring the
|
|
45
|
+
* `MARKSPEC_RELEASES_API` / `MARKSPEC_RELEASES_DOWNLOAD_BASE` overrides
|
|
46
|
+
* **only** under `MARKSPEC_TEST_MODE=1` (`input.testMode`). In production
|
|
47
|
+
* the pinned `DEFAULT_RELEASES_*` constants are always returned, so a stray
|
|
48
|
+
* or hostile env var in the user's shell cannot redirect a self-upgrade to
|
|
49
|
+
* an attacker-controlled origin (issue #580) — the same gating the
|
|
50
|
+
* `MARKSPEC_SELF_UPGRADE_BIN_PATH` override already uses. A missing override
|
|
51
|
+
* under test mode falls back to the pinned default for that endpoint.
|
|
52
|
+
*/
|
|
53
|
+
function resolveReleaseEndpoints(input) {
|
|
54
|
+
const apiBase = input.testMode && input.apiOverride
|
|
55
|
+
? input.apiOverride
|
|
56
|
+
: exports.DEFAULT_RELEASES_API;
|
|
57
|
+
const downloadBase = input.testMode && input.downloadOverride
|
|
58
|
+
? input.downloadOverride
|
|
59
|
+
: exports.DEFAULT_RELEASES_DOWNLOAD_BASE;
|
|
60
|
+
return { apiBase, downloadBase };
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Assert that a release-endpoint URL is safe to fetch from, throwing
|
|
64
|
+
* otherwise. Defence-in-depth for {@linkcode resolveReleaseEndpoints}: even
|
|
65
|
+
* if a future change reintroduces an unconditional override, no fetch can
|
|
66
|
+
* reach an insecure or non-GitHub origin.
|
|
67
|
+
*
|
|
68
|
+
* In production (`allowInsecure: false`) the URL MUST use `https:` and a
|
|
69
|
+
* host in the GitHub allowlist (`github.com`, `api.github.com`,
|
|
70
|
+
* `objects.githubusercontent.com`). Under test mode (`allowInsecure: true`)
|
|
71
|
+
* an `http(s)` URL to `localhost` / `127.0.0.1` / `[::1]` is additionally
|
|
72
|
+
* permitted so the e2e suite can point at a local mock server; every other
|
|
73
|
+
* host still falls through to the production https-+-allowlist check.
|
|
74
|
+
*
|
|
75
|
+
* @throws Error when the URL is malformed, uses a non-https scheme, or
|
|
76
|
+
* targets a host outside the allowlist.
|
|
77
|
+
*/
|
|
78
|
+
function assertTrustedReleaseUrl(rawUrl, opts) {
|
|
79
|
+
let url;
|
|
80
|
+
try {
|
|
81
|
+
url = new URL(rawUrl);
|
|
82
|
+
}
|
|
83
|
+
catch {
|
|
84
|
+
throw new Error(`invalid release URL: ${JSON.stringify(rawUrl)}`);
|
|
85
|
+
}
|
|
86
|
+
if (opts.allowInsecure) {
|
|
87
|
+
const isLoopback = url.hostname === "localhost" ||
|
|
88
|
+
url.hostname === "127.0.0.1" || url.hostname === "[::1]";
|
|
89
|
+
if (isLoopback && (url.protocol === "http:" || url.protocol === "https:")) {
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
if (url.protocol !== "https:") {
|
|
94
|
+
throw new Error(`refusing to self-upgrade over insecure transport: ${url.protocol}//${url.host} (only https: is permitted)`);
|
|
95
|
+
}
|
|
96
|
+
if (!TRUSTED_RELEASE_HOSTS.has(url.hostname)) {
|
|
97
|
+
throw new Error(`refusing to self-upgrade from untrusted host: ${url.host} (permitted: ${[...TRUSTED_RELEASE_HOSTS].join(", ")})`);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
18
100
|
/** Build the tarball + checksum URLs for a (version, target). */
|
|
19
101
|
function releaseAssets(baseUrl, version, target) {
|
|
20
102
|
const tag = version.startsWith("v") ? version : `v${version}`;
|
|
@@ -7,6 +7,6 @@
|
|
|
7
7
|
*/
|
|
8
8
|
export { compareVersions, type Comparison } from "./compare.js";
|
|
9
9
|
export { classifyInstallPath, type ClassifyResult, type InstallSource, } from "./pm_detect.js";
|
|
10
|
-
export { parseSha256Line, type ReleaseAssets, releaseAssets, } from "./manifest.js";
|
|
10
|
+
export { assertTrustedReleaseUrl, DEFAULT_RELEASES_API, DEFAULT_RELEASES_DOWNLOAD_BASE, parseSha256Line, type ReleaseAssets, releaseAssets, type ReleaseEndpoints, type ResolveEndpointsInput, resolveReleaseEndpoints, } from "./manifest.js";
|
|
11
11
|
export { type Arch, detectTarget, type Os, type Platform, platformFromBuild, type Target, } from "./target.js";
|
|
12
12
|
//# sourceMappingURL=mod.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../src/self_upgrade/mod.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,eAAe,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,EACL,mBAAmB,EACnB,KAAK,cAAc,EACnB,KAAK,aAAa,GACnB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,eAAe,EACf,KAAK,aAAa,EAClB,aAAa,
|
|
1
|
+
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../src/self_upgrade/mod.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,eAAe,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,EACL,mBAAmB,EACnB,KAAK,cAAc,EACnB,KAAK,aAAa,GACnB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,uBAAuB,EACvB,oBAAoB,EACpB,8BAA8B,EAC9B,eAAe,EACf,KAAK,aAAa,EAClB,aAAa,EACb,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAC1B,uBAAuB,GACxB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,KAAK,IAAI,EACT,YAAY,EACZ,KAAK,EAAE,EACP,KAAK,QAAQ,EACb,iBAAiB,EACjB,KAAK,MAAM,GACZ,MAAM,aAAa,CAAC"}
|
|
@@ -7,14 +7,18 @@
|
|
|
7
7
|
* orchestrator and helpers that wire these into HTTP + filesystem.
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.platformFromBuild = exports.detectTarget = exports.releaseAssets = exports.parseSha256Line = exports.classifyInstallPath = exports.compareVersions = void 0;
|
|
10
|
+
exports.platformFromBuild = exports.detectTarget = exports.resolveReleaseEndpoints = exports.releaseAssets = exports.parseSha256Line = exports.DEFAULT_RELEASES_DOWNLOAD_BASE = exports.DEFAULT_RELEASES_API = exports.assertTrustedReleaseUrl = exports.classifyInstallPath = exports.compareVersions = void 0;
|
|
11
11
|
var compare_js_1 = require("./compare.js");
|
|
12
12
|
Object.defineProperty(exports, "compareVersions", { enumerable: true, get: function () { return compare_js_1.compareVersions; } });
|
|
13
13
|
var pm_detect_js_1 = require("./pm_detect.js");
|
|
14
14
|
Object.defineProperty(exports, "classifyInstallPath", { enumerable: true, get: function () { return pm_detect_js_1.classifyInstallPath; } });
|
|
15
15
|
var manifest_js_1 = require("./manifest.js");
|
|
16
|
+
Object.defineProperty(exports, "assertTrustedReleaseUrl", { enumerable: true, get: function () { return manifest_js_1.assertTrustedReleaseUrl; } });
|
|
17
|
+
Object.defineProperty(exports, "DEFAULT_RELEASES_API", { enumerable: true, get: function () { return manifest_js_1.DEFAULT_RELEASES_API; } });
|
|
18
|
+
Object.defineProperty(exports, "DEFAULT_RELEASES_DOWNLOAD_BASE", { enumerable: true, get: function () { return manifest_js_1.DEFAULT_RELEASES_DOWNLOAD_BASE; } });
|
|
16
19
|
Object.defineProperty(exports, "parseSha256Line", { enumerable: true, get: function () { return manifest_js_1.parseSha256Line; } });
|
|
17
20
|
Object.defineProperty(exports, "releaseAssets", { enumerable: true, get: function () { return manifest_js_1.releaseAssets; } });
|
|
21
|
+
Object.defineProperty(exports, "resolveReleaseEndpoints", { enumerable: true, get: function () { return manifest_js_1.resolveReleaseEndpoints; } });
|
|
18
22
|
var target_js_1 = require("./target.js");
|
|
19
23
|
Object.defineProperty(exports, "detectTarget", { enumerable: true, get: function () { return target_js_1.detectTarget; } });
|
|
20
24
|
Object.defineProperty(exports, "platformFromBuild", { enumerable: true, get: function () { return target_js_1.platformFromBuild; } });
|