artifacty 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -2
- package/SECURITY.md +49 -0
- package/docs/network-sharing.md +4 -0
- package/docs/release-checklist.md +6 -1
- package/docs/threat-model.md +128 -0
- package/package.json +3 -1
- package/src/cli.js +3 -0
- package/src/lib/security.js +23 -1
- package/src/server.js +6 -2
package/README.md
CHANGED
|
@@ -285,9 +285,11 @@ Schema and storage:
|
|
|
285
285
|
## Security Model
|
|
286
286
|
|
|
287
287
|
- The HTTP server binds to `127.0.0.1` by default.
|
|
288
|
-
- If `ARTIFACTY_API_TOKEN` is set, HTTP API routes require `Authorization: Bearer <token>` or `x-artifacty-token
|
|
288
|
+
- If `ARTIFACTY_API_TOKEN` is set, HTTP API routes require `Authorization: Bearer <token>` or `x-artifacty-token`; scripts should prefer headers over `?token=...` URLs.
|
|
289
|
+
- API token checks use timing-safe digest comparison.
|
|
289
290
|
- Binding outside localhost requires both `ARTIFACTY_SHARE_MODE=lan` or `team` and `ARTIFACTY_API_TOKEN`.
|
|
290
291
|
- Non-local sharing is intended for trusted LAN or VPN sessions. Prefer a specific interface IP over `0.0.0.0`, keep React rendering disabled, and see [docs/network-sharing.md](docs/network-sharing.md).
|
|
292
|
+
- Non-local binding prints a startup warning because Artifacty does not terminate TLS.
|
|
291
293
|
- Artifact content is scanned for common API keys and private keys before storage. Use `--allow-secrets` or `ARTIFACTY_ALLOW_SECRETS=true` only for intentional exceptions.
|
|
292
294
|
- Creates, updates, reads, imports, archives, and restores write audit events to SQLite.
|
|
293
295
|
- CodeMirror editor/viewer and renderer assets are served from local npm dependencies through a package allowlist, not from a public CDN. JavaScript asset routes answer `Origin: null` requests with `Access-Control-Allow-Origin: null` so sandboxed renderer iframes can import local ESM without `allow-same-origin`.
|
|
@@ -300,5 +302,6 @@ Schema and storage:
|
|
|
300
302
|
- CSV artifacts render as an escaped, bounded table; `/raw` preserves the original text.
|
|
301
303
|
- Image and video artifacts store base64 media inline, render safe previews, and decode bytes through `/raw`.
|
|
302
304
|
- Artifact content should still be treated as untrusted; use the raw view when handing content back to an agent.
|
|
305
|
+
- npm releases are published with GitHub Actions OIDC Trusted Publishing after lint, test, and smoke checks pass.
|
|
303
306
|
|
|
304
|
-
See [docs/release-checklist.md](docs/release-checklist.md) before publishing or running a shared instance.
|
|
307
|
+
See [SECURITY.md](SECURITY.md), [docs/threat-model.md](docs/threat-model.md), and [docs/release-checklist.md](docs/release-checklist.md) before publishing or running a shared instance.
|
package/SECURITY.md
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Security Policy
|
|
2
|
+
|
|
3
|
+
## Supported Versions
|
|
4
|
+
|
|
5
|
+
Artifacty is pre-1.0. Security fixes are provided for the latest published
|
|
6
|
+
minor release. Upgrade to the latest `artifacty` version before reporting a
|
|
7
|
+
suspected issue.
|
|
8
|
+
|
|
9
|
+
## Reporting a Vulnerability
|
|
10
|
+
|
|
11
|
+
Use GitHub private vulnerability reporting if it is enabled for this repository.
|
|
12
|
+
If private reporting is unavailable, open a GitHub issue with a minimal summary
|
|
13
|
+
and avoid including exploit details, secrets, private artifacts, or sensitive
|
|
14
|
+
network information.
|
|
15
|
+
|
|
16
|
+
Please include:
|
|
17
|
+
|
|
18
|
+
- Artifacty version and install method.
|
|
19
|
+
- Node.js version and operating system.
|
|
20
|
+
- Whether the HTTP server was localhost-only, LAN/team mode, or behind a proxy.
|
|
21
|
+
- Whether `ARTIFACTY_API_TOKEN` and `ARTIFACTY_ENABLE_REACT_RENDERER` were set.
|
|
22
|
+
- Reproduction steps using non-sensitive sample content.
|
|
23
|
+
|
|
24
|
+
## Security Model
|
|
25
|
+
|
|
26
|
+
Artifacty is local-first. The default HTTP server binds to `127.0.0.1`; binding
|
|
27
|
+
outside loopback requires `ARTIFACTY_SHARE_MODE=lan|team` and an API token.
|
|
28
|
+
|
|
29
|
+
The project treats artifact content as untrusted:
|
|
30
|
+
|
|
31
|
+
- HTML, SVG, Mermaid, and React rendering use sandboxed frames and scoped CSP.
|
|
32
|
+
- React execution is disabled unless `ARTIFACTY_ENABLE_REACT_RENDERER=true`.
|
|
33
|
+
- Mutating browser routes reject non-local `Origin` headers.
|
|
34
|
+
- API token checks use constant-time digest comparison.
|
|
35
|
+
- Artifact content is scanned for common API keys and private keys before
|
|
36
|
+
storage unless explicitly allowed.
|
|
37
|
+
|
|
38
|
+
Artifacty does not provide TLS termination, remote OAuth, multi-user access
|
|
39
|
+
control, or a hosted sync service. Do not expose the server directly to the
|
|
40
|
+
public internet.
|
|
41
|
+
|
|
42
|
+
## Supply Chain
|
|
43
|
+
|
|
44
|
+
npm releases are published through GitHub Actions using npm Trusted Publishing
|
|
45
|
+
OIDC. The release workflow runs lint, tests, and smoke checks on supported Node
|
|
46
|
+
versions before publishing.
|
|
47
|
+
|
|
48
|
+
See [docs/threat-model.md](docs/threat-model.md) and
|
|
49
|
+
[docs/network-sharing.md](docs/network-sharing.md) for operational guidance.
|
package/docs/network-sharing.md
CHANGED
|
@@ -30,6 +30,8 @@ The generated token protects HTTP API routes and browser write forms. Prefer the
|
|
|
30
30
|
|
|
31
31
|
Artifacty does not terminate TLS. Do not expose it directly on the public internet. If a shared instance must cross an untrusted network, put it behind a TLS reverse proxy or a private VPN.
|
|
32
32
|
|
|
33
|
+
When Artifacty binds outside loopback, startup output includes a warning that the server is reachable beyond the local machine and that TLS is not provided by Artifacty.
|
|
34
|
+
|
|
33
35
|
## Browser Write Behavior
|
|
34
36
|
|
|
35
37
|
Remote browsers can read shared pages, but write actions are intentionally conservative. Mutating browser routes reject non-local `Origin` headers to reduce CSRF risk. For LAN sharing, prefer API or MCP writes with an explicit token header.
|
|
@@ -39,3 +41,5 @@ Do not relax the origin check just to make remote browser writes easier. A futur
|
|
|
39
41
|
## Renderer Guidance
|
|
40
42
|
|
|
41
43
|
Artifact content is untrusted. HTML, SVG, Mermaid, and React artifacts are rendered with sandboxing and CSP controls, but shared viewing still means content reaches another user's browser. Keep `ARTIFACTY_ENABLE_REACT_RENDERER` disabled for LAN sessions unless every viewer trusts the artifact source.
|
|
44
|
+
|
|
45
|
+
See [threat-model.md](threat-model.md) for the full trust-boundary summary.
|
|
@@ -8,7 +8,7 @@ Use this checklist before publishing or distributing Artifacty.
|
|
|
8
8
|
npm run release:check
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
This runs syntax checks, the full Node test suite, and a local smoke test that starts the HTTP server with token auth enabled, creates an artifact, verifies secret blocking, reads audit logs, writes a backup, and checks MCP tool discovery.
|
|
11
|
+
This runs syntax checks, the full Node test suite, and a local smoke test that starts the HTTP server with token auth enabled, creates an artifact, verifies secret blocking, reads audit logs, writes a backup, and checks MCP tool/resource/prompt discovery.
|
|
12
12
|
|
|
13
13
|
## Packaging
|
|
14
14
|
|
|
@@ -23,7 +23,10 @@ This runs syntax checks, the full Node test suite, and a local smoke test that s
|
|
|
23
23
|
|
|
24
24
|
- Keep the default HTTP bind address at `127.0.0.1`.
|
|
25
25
|
- Require `ARTIFACTY_API_TOKEN` and `ARTIFACTY_SHARE_MODE=lan` or `team` before binding to `0.0.0.0`.
|
|
26
|
+
- Confirm non-loopback startup output includes the LAN/team warning.
|
|
27
|
+
- Prefer `x-artifacty-token` or `Authorization: Bearer <token>` over query tokens in scripts.
|
|
26
28
|
- Review secret-scan bypasses. `--allow-secrets` and `ARTIFACTY_ALLOW_SECRETS=true` should be deliberate and temporary.
|
|
29
|
+
- Review [../SECURITY.md](../SECURITY.md) and [threat-model.md](threat-model.md) when changing auth, rendering, MCP, or network-sharing behavior.
|
|
27
30
|
- Treat artifact HTML and imported agent payloads as untrusted content.
|
|
28
31
|
- Confirm scripted artifact iframes never include `allow-same-origin`.
|
|
29
32
|
- Confirm `/assets/*` and `/vendor/npm/*` JavaScript responses return
|
|
@@ -35,6 +38,8 @@ This runs syntax checks, the full Node test suite, and a local smoke test that s
|
|
|
35
38
|
not prove Mermaid or React rendered inside the iframe.
|
|
36
39
|
- Keep `ARTIFACTY_ENABLE_REACT_RENDERER` disabled by default. Enable it only when the operator accepts arbitrary component execution risk.
|
|
37
40
|
- Confirm parent app CSP does not include `unsafe-eval`; it should appear only on the React frame response CSP.
|
|
41
|
+
- Confirm CodeQL, Scorecard, and Dependabot configuration changes are intentional.
|
|
42
|
+
- Confirm npm publish still uses OIDC Trusted Publishing rather than a long-lived npm token.
|
|
38
43
|
|
|
39
44
|
## Operations
|
|
40
45
|
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
# Threat Model
|
|
2
|
+
|
|
3
|
+
Artifacty is a local artifact exchange for LLM agents. It is designed for one
|
|
4
|
+
operator, one local store, and trusted local MCP clients by default.
|
|
5
|
+
|
|
6
|
+
## Assets
|
|
7
|
+
|
|
8
|
+
- Artifact content, including generated code, reports, screenshots, and media.
|
|
9
|
+
- Artifact metadata, tags, audit records, and version history.
|
|
10
|
+
- API tokens and generated startup tokens.
|
|
11
|
+
- Local MCP client configuration files.
|
|
12
|
+
- The Artifacty SQLite database and immutable version files.
|
|
13
|
+
|
|
14
|
+
## Trust Boundaries
|
|
15
|
+
|
|
16
|
+
- **HTTP browser server**: local by default, optionally reachable on LAN/team
|
|
17
|
+
networks when explicitly configured.
|
|
18
|
+
- **MCP stdio server**: local process launched by an MCP client. It inherits the
|
|
19
|
+
local user account's filesystem permissions.
|
|
20
|
+
- **Artifact renderers**: untrusted content is rendered inside browser sandbox
|
|
21
|
+
boundaries where practical.
|
|
22
|
+
- **Storage**: Artifacty stores content under `ARTIFACTY_HOME`; anyone with
|
|
23
|
+
filesystem access to that directory can read artifacts.
|
|
24
|
+
- **npm package**: published through GitHub Actions OIDC after automated checks.
|
|
25
|
+
|
|
26
|
+
## Primary Threats and Controls
|
|
27
|
+
|
|
28
|
+
### Accidental Network Exposure
|
|
29
|
+
|
|
30
|
+
Risk: binding to `0.0.0.0` exposes Artifacty on every interface, including VPNs
|
|
31
|
+
or cloud VM public interfaces.
|
|
32
|
+
|
|
33
|
+
Controls:
|
|
34
|
+
|
|
35
|
+
- Default host is `127.0.0.1`.
|
|
36
|
+
- Non-loopback binding requires `ARTIFACTY_SHARE_MODE=lan|team`.
|
|
37
|
+
- Non-loopback binding also requires `ARTIFACTY_API_TOKEN`.
|
|
38
|
+
- Startup logs warn when the server binds outside loopback.
|
|
39
|
+
|
|
40
|
+
Guidance: prefer a specific private interface IP over `0.0.0.0`. Do not expose
|
|
41
|
+
Artifacty directly to the public internet.
|
|
42
|
+
|
|
43
|
+
### Token Leakage
|
|
44
|
+
|
|
45
|
+
Risk: query-string tokens can appear in browser history, shell history, logs, or
|
|
46
|
+
referrers.
|
|
47
|
+
|
|
48
|
+
Controls:
|
|
49
|
+
|
|
50
|
+
- Scripts should use `x-artifacty-token` or `Authorization: Bearer <token>`.
|
|
51
|
+
- Browser form token URLs exist only for local convenience.
|
|
52
|
+
- Token comparisons use timing-safe digest comparison.
|
|
53
|
+
|
|
54
|
+
Guidance: rotate tokens after sharing sessions and prefer foreground generated
|
|
55
|
+
tokens for temporary LAN use.
|
|
56
|
+
|
|
57
|
+
### Cross-Site Request Forgery
|
|
58
|
+
|
|
59
|
+
Risk: a remote website could attempt to submit writes to an Artifacty server
|
|
60
|
+
reachable from the user's browser.
|
|
61
|
+
|
|
62
|
+
Controls:
|
|
63
|
+
|
|
64
|
+
- Mutating browser routes reject non-local `Origin` headers.
|
|
65
|
+
- API routes require a token when configured.
|
|
66
|
+
- LAN/team mode does not relax browser-origin checks.
|
|
67
|
+
|
|
68
|
+
### Untrusted Artifact Rendering
|
|
69
|
+
|
|
70
|
+
Risk: HTML, SVG, Mermaid, or React content could execute code in a viewer's
|
|
71
|
+
browser.
|
|
72
|
+
|
|
73
|
+
Controls:
|
|
74
|
+
|
|
75
|
+
- HTML artifacts render in sandboxed iframes.
|
|
76
|
+
- SVG artifacts render in scriptless sandboxed iframes after viewer-side
|
|
77
|
+
sanitization.
|
|
78
|
+
- Mermaid renders in a sandboxed iframe without `allow-same-origin`.
|
|
79
|
+
- React is source-only unless `ARTIFACTY_ENABLE_REACT_RENDERER=true`.
|
|
80
|
+
- React rendering, when enabled, runs in a separate sandboxed frame with
|
|
81
|
+
frame-scoped CSP.
|
|
82
|
+
|
|
83
|
+
Guidance: keep React rendering disabled for shared sessions unless all viewers
|
|
84
|
+
trust the source.
|
|
85
|
+
|
|
86
|
+
### Secret Storage
|
|
87
|
+
|
|
88
|
+
Risk: agents may accidentally publish API keys or private keys into artifacts.
|
|
89
|
+
|
|
90
|
+
Controls:
|
|
91
|
+
|
|
92
|
+
- Common API key and private key patterns are scanned before storage.
|
|
93
|
+
- Writes fail unless `allowSecrets` or `ARTIFACTY_ALLOW_SECRETS=true` is set.
|
|
94
|
+
- Stored scan status is recorded in version metadata.
|
|
95
|
+
|
|
96
|
+
Limitations: pattern scanning is best-effort and does not prove content is free
|
|
97
|
+
of sensitive data.
|
|
98
|
+
|
|
99
|
+
### MCP Tool Abuse
|
|
100
|
+
|
|
101
|
+
Risk: an MCP client can create, update, import, archive, restore, and read local
|
|
102
|
+
artifacts through stdio.
|
|
103
|
+
|
|
104
|
+
Controls:
|
|
105
|
+
|
|
106
|
+
- MCP is local stdio only.
|
|
107
|
+
- MCP writes go through the same secret scan and audit paths as CLI/HTTP writes.
|
|
108
|
+
- MCP resources are read-only.
|
|
109
|
+
|
|
110
|
+
Guidance: install Artifacty MCP only in clients and workspaces you trust.
|
|
111
|
+
|
|
112
|
+
## Out of Scope
|
|
113
|
+
|
|
114
|
+
- Public internet hosting without a separate TLS/auth proxy.
|
|
115
|
+
- Multi-user browser write access.
|
|
116
|
+
- OAuth or remote MCP authorization.
|
|
117
|
+
- Per-artifact ACLs.
|
|
118
|
+
- Encrypted-at-rest storage.
|
|
119
|
+
- Malware analysis of arbitrary artifact content.
|
|
120
|
+
|
|
121
|
+
## Security Review Checklist
|
|
122
|
+
|
|
123
|
+
- Run `npm run release:check`.
|
|
124
|
+
- Run `artifacty integrity` against important stores.
|
|
125
|
+
- Confirm non-local sharing uses a token and trusted LAN/VPN.
|
|
126
|
+
- Keep `ARTIFACTY_ENABLE_REACT_RENDERER` disabled unless required.
|
|
127
|
+
- Prefer token headers over query tokens in scripts.
|
|
128
|
+
- Review generated MCP configs before committing workspace files.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "artifacty",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Local artifact exchange for heterogeneous LLM agents via HTTP and MCP.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -41,9 +41,11 @@
|
|
|
41
41
|
"docs/network-sharing.md",
|
|
42
42
|
"docs/release-checklist.md",
|
|
43
43
|
"docs/sarif-csv-artifact-plan.md",
|
|
44
|
+
"docs/threat-model.md",
|
|
44
45
|
"scripts/smoke.sh",
|
|
45
46
|
"README.md",
|
|
46
47
|
"LICENSE",
|
|
48
|
+
"SECURITY.md",
|
|
47
49
|
"THIRD_PARTY_NOTICES.md",
|
|
48
50
|
"AGENTS.md",
|
|
49
51
|
"CLAUDE.md"
|
package/src/cli.js
CHANGED
|
@@ -68,6 +68,9 @@ async function main() {
|
|
|
68
68
|
});
|
|
69
69
|
process.stderr.write(`Artifacty listening on ${server.url}\n`);
|
|
70
70
|
process.stderr.write(`Store: ${server.store.home}\n`);
|
|
71
|
+
if (server.securityWarning) {
|
|
72
|
+
process.stderr.write(`${server.securityWarning}\n`);
|
|
73
|
+
}
|
|
71
74
|
if (generatedToken) {
|
|
72
75
|
process.stderr.write(`API token: ${generatedToken.token}\n`);
|
|
73
76
|
process.stderr.write(`HTTP header: ${generatedToken.header}\n`);
|
package/src/lib/security.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { createHash, timingSafeEqual } from "node:crypto";
|
|
2
|
+
|
|
1
3
|
const TOKEN_HEADER = "x-artifacty-token";
|
|
2
4
|
|
|
3
5
|
const SECRET_PATTERNS = [
|
|
@@ -31,12 +33,23 @@ export function validateServerExposure({ host, config = securityConfig() }) {
|
|
|
31
33
|
}
|
|
32
34
|
}
|
|
33
35
|
|
|
36
|
+
export function exposureWarning({ host, config = securityConfig() }) {
|
|
37
|
+
if (isLoopbackHost(host)) {
|
|
38
|
+
return "";
|
|
39
|
+
}
|
|
40
|
+
return [
|
|
41
|
+
`Warning: Artifacty is listening on ${host} in ${config.shareMode} share mode.`,
|
|
42
|
+
"HTTP is not encrypted by Artifacty; use only a trusted LAN/VPN or place it behind TLS.",
|
|
43
|
+
"Prefer x-artifacty-token or Authorization headers for scripts, and keep React rendering disabled unless every viewer trusts the artifact source."
|
|
44
|
+
].join(" ");
|
|
45
|
+
}
|
|
46
|
+
|
|
34
47
|
export function requireToken({ request, url, body = {}, config = securityConfig() }) {
|
|
35
48
|
if (!config.apiToken) {
|
|
36
49
|
return;
|
|
37
50
|
}
|
|
38
51
|
const provided = extractToken({ request, url, body });
|
|
39
|
-
if (provided
|
|
52
|
+
if (!tokensEqual(provided, config.apiToken)) {
|
|
40
53
|
throw Object.assign(new Error("Artifacty API token required"), {
|
|
41
54
|
code: "AUTH_REQUIRED",
|
|
42
55
|
statusCode: 401
|
|
@@ -87,6 +100,15 @@ export function assertNoSecrets(input = {}, options = {}) {
|
|
|
87
100
|
};
|
|
88
101
|
}
|
|
89
102
|
|
|
103
|
+
export function tokensEqual(provided, expected) {
|
|
104
|
+
const providedText = String(provided ?? "");
|
|
105
|
+
const expectedText = String(expected ?? "");
|
|
106
|
+
const providedDigest = createHash("sha256").update(providedText).digest();
|
|
107
|
+
const expectedDigest = createHash("sha256").update(expectedText).digest();
|
|
108
|
+
return timingSafeEqual(providedDigest, expectedDigest) &&
|
|
109
|
+
Buffer.byteLength(providedText) === Buffer.byteLength(expectedText);
|
|
110
|
+
}
|
|
111
|
+
|
|
90
112
|
export function isLoopbackHost(host) {
|
|
91
113
|
const normalized = String(host || "").toLowerCase();
|
|
92
114
|
return normalized === "localhost" ||
|
package/src/server.js
CHANGED
|
@@ -19,7 +19,7 @@ import { convertAgentArtifact } from "./lib/converters.js";
|
|
|
19
19
|
import { createLineDiff } from "./lib/diff.js";
|
|
20
20
|
import { EDITOR_CLIENT_PATH, VIEWER_CLIENT_PATH, editorClientFilePath, editorVendorPath, viewerClientFilePath } from "./lib/editor-assets.js";
|
|
21
21
|
import { localeFromBodyOrUrl, localeFromUrl, localizedHref } from "./lib/i18n.js";
|
|
22
|
-
import { requireToken, securityConfig, validateServerExposure } from "./lib/security.js";
|
|
22
|
+
import { exposureWarning, requireToken, securityConfig, validateServerExposure } from "./lib/security.js";
|
|
23
23
|
import { writeServerState } from "./lib/server-state.js";
|
|
24
24
|
import { generateToken } from "./lib/token.js";
|
|
25
25
|
import {
|
|
@@ -78,6 +78,7 @@ export async function startServer(options = {}) {
|
|
|
78
78
|
requestedPort,
|
|
79
79
|
port: actualPort,
|
|
80
80
|
portFallback: usedPortFallback,
|
|
81
|
+
securityWarning: exposureWarning({ host, config: security }),
|
|
81
82
|
close: () => new Promise((resolve, reject) => server.close((error) => (error ? reject(error) : resolve())))
|
|
82
83
|
};
|
|
83
84
|
}
|
|
@@ -674,12 +675,15 @@ async function runServerMain(options) {
|
|
|
674
675
|
throw new Error("Use either --api-token or --generate-token, not both");
|
|
675
676
|
}
|
|
676
677
|
const generatedToken = options.generateToken ? generateToken(options) : null;
|
|
677
|
-
const { url, store } = await startServer({
|
|
678
|
+
const { url, store, securityWarning } = await startServer({
|
|
678
679
|
...options,
|
|
679
680
|
apiToken: generatedToken?.token || options.apiToken
|
|
680
681
|
});
|
|
681
682
|
process.stderr.write(`Artifacty listening on ${url}\n`);
|
|
682
683
|
process.stderr.write(`Store: ${store.home}\n`);
|
|
684
|
+
if (securityWarning) {
|
|
685
|
+
process.stderr.write(`${securityWarning}\n`);
|
|
686
|
+
}
|
|
683
687
|
if (generatedToken) {
|
|
684
688
|
process.stderr.write(`API token: ${generatedToken.token}\n`);
|
|
685
689
|
process.stderr.write(`HTTP header: ${generatedToken.header}\n`);
|