progon-agent 1.0.1 → 1.1.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 +56 -11
- package/dist/supervisor/cli.js +34 -34
- package/extension-bundle.json +3 -3
- package/extension-dist/background/background.js +44 -44
- package/extension-dist/content/content.css +1 -1
- package/extension-dist/content/content.js +142 -152
- package/extension-dist/content/main-world-nav.js +1 -1
- package/extension-dist/manifest.json +1 -1
- package/extension-dist/popup/popup.css +1 -1
- package/extension-dist/popup/popup.js +21 -21
- package/extension-dist/sidepanel/sidepanel.css +1 -1
- package/extension-dist/sidepanel/sidepanel.js +87 -76
- package/package.json +5 -3
package/README.md
CHANGED
|
@@ -50,6 +50,40 @@ and Node escape hatches apply to the download exactly as they later apply to the
|
|
|
50
50
|
| `PLAYWRIGHT_DOWNLOAD_HOST` | The Playwright CDN is blocked — point this at an internal mirror |
|
|
51
51
|
| `PLAYWRIGHT_BROWSERS_PATH` | The browser cache must live somewhere other than the per-user default |
|
|
52
52
|
|
|
53
|
+
### Self-signed stands
|
|
54
|
+
|
|
55
|
+
An internal stand behind a certificate this machine does not trust is refused by the run browser,
|
|
56
|
+
and the run ends at the `entry_navigation` stage with `net::ERR_CERT_AUTHORITY_INVALID` naming the
|
|
57
|
+
address. There are two settings, and they cover **different connections** — read the table before
|
|
58
|
+
picking one:
|
|
59
|
+
|
|
60
|
+
| Variable | Whose TLS it affects |
|
|
61
|
+
| ----------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
62
|
+
| `PROGON_AGENT_ALLOW_INSECURE_HTTPS` | The **run browser**. Set it to `true` and Chromium opens the stand without verifying its certificate. |
|
|
63
|
+
| `PROGON_AGENT_EXTRA_CA_CERTS` | The **agent's own** calls to the Progon backend, when a corporate gateway re-signs their TLS. Absolute path to a PEM bundle; it is added to the public roots, never substituted for them. |
|
|
64
|
+
|
|
65
|
+
`PROGON_AGENT_EXTRA_CA_CERTS` does **not** make the browser trust anything: Chromium has no flag
|
|
66
|
+
for adding a certificate authority — its trust store is the operating system's. To have the browser
|
|
67
|
+
verify your stand properly rather than skip the check, install the root certificate into the OS
|
|
68
|
+
store; `PROGON_AGENT_ALLOW_INSECURE_HTTPS` is the escape hatch for when you cannot.
|
|
69
|
+
|
|
70
|
+
Both are **the machine operator's** settings and exist only here, on this machine. Neither is a
|
|
71
|
+
project, environment or per-run field, and nothing a Progon user dispatches can turn certificate
|
|
72
|
+
verification off on your machine.
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
PROGON_AGENT_ALLOW_INSECURE_HTTPS=true progon-agent start
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
Unlike `NODE_EXTRA_CA_CERTS`, which Node ignores with a warning when the path is wrong,
|
|
79
|
+
`PROGON_AGENT_EXTRA_CA_CERTS` is checked when the daemon starts: a relative path, a missing file, a
|
|
80
|
+
directory, or a file this daemon is not allowed to open is refused by name, before anything else
|
|
81
|
+
happens. The bundle is read during that check, so "the agent can use it" is established at startup
|
|
82
|
+
rather than assumed until the first call to the backend.
|
|
83
|
+
|
|
84
|
+
It also covers those calls when they go through a proxy: with `HTTPS_PROXY` set, the bundle is
|
|
85
|
+
applied both to the tunnelled connection to the backend and to the connection to the proxy itself.
|
|
86
|
+
|
|
53
87
|
---
|
|
54
88
|
|
|
55
89
|
## 2. Install
|
|
@@ -252,23 +286,26 @@ A `401` is _not_ revocation: it backs off and retries, and never wipes anything.
|
|
|
252
286
|
|
|
253
287
|
### Runtime
|
|
254
288
|
|
|
255
|
-
| Variable
|
|
256
|
-
|
|
|
257
|
-
| `PROGON_SERVER_URL`
|
|
258
|
-
| `PROGON_AGENT_TOKEN`
|
|
259
|
-
| `PROGON_AGENT_ENROLL_CODE`
|
|
260
|
-
| `PROGON_RUNNER_STATE_DIR`
|
|
261
|
-
| `PROGON_AGENT_EXTENSION_DIST`
|
|
262
|
-
| `PROGON_AGENT_HEADFUL`
|
|
263
|
-
| `
|
|
264
|
-
| `
|
|
289
|
+
| Variable | Required | Meaning |
|
|
290
|
+
| ----------------------------------- | --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
291
|
+
| `PROGON_SERVER_URL` | **yes** (`enroll`, `start`) | Base URL of the Progon backend. `https://` only, except loopback hosts. Scheme + host + optional path prefix — **no** embedded credentials, **no** query string, **no** fragment (the agent-gateway routes are appended to it). |
|
|
292
|
+
| `PROGON_AGENT_TOKEN` | no | An existing `pgat_` credential. Takes precedence over the state file — this is the rotation mechanism. Must match the `pgat_` wire format; set-but-empty is rejected. |
|
|
293
|
+
| `PROGON_AGENT_ENROLL_CODE` | no | One-shot enrollment code, the env form of `progon-agent enroll <code>`. Must be at least 32 characters. |
|
|
294
|
+
| `PROGON_RUNNER_STATE_DIR` | no | Overrides the platform state directory. **Required** on platforms other than darwin/linux/win32, and when the user has no home directory. |
|
|
295
|
+
| `PROGON_AGENT_EXTENSION_DIST` | no | Absolute path of an already agent-mode qa-extension dist, replacing the bundled one (dev/E2E). Relative paths are rejected. |
|
|
296
|
+
| `PROGON_AGENT_HEADFUL` | no | `true`/`false`/`1`/`0`. Shows the browser window on this machine's desktop. Default `false`. It can only turn headful **on** — the server still decides per run. Any other value is rejected. |
|
|
297
|
+
| `PROGON_AGENT_ALLOW_INSECURE_HTTPS` | no | `true`/`false`/`1`/`0`. The run browser opens a stand whose certificate it cannot verify — a self-signed internal stand. Default `false`. Any other value is rejected. See [Self-signed stands](#self-signed-stands). |
|
|
298
|
+
| `PROGON_AGENT_EXTRA_CA_CERTS` | no | Absolute path to a readable PEM bundle whose authority the **agent's own** connections to the backend trust, on top of the public roots. Refused at startup if the path is relative or the file cannot be read. Does not reach the browser. |
|
|
299
|
+
| `PROGON_LOG_LEVEL` | no | pino log level. Default: `info` when `NODE_ENV=production`, `debug` otherwise. |
|
|
300
|
+
| `NODE_ENV` | no | Default `production`. Anything else additionally switches logging to human-readable `pino-pretty` output. |
|
|
265
301
|
|
|
266
302
|
### Inherited by the Chromium installer and launch
|
|
267
303
|
|
|
268
304
|
`HTTPS_PROXY`, `NO_PROXY`, `NODE_EXTRA_CA_CERTS`, `PLAYWRIGHT_DOWNLOAD_HOST`,
|
|
269
305
|
`PLAYWRIGHT_BROWSERS_PATH` — see [Corporate networks](#corporate-networks). The agent reads none of
|
|
270
306
|
them itself; it passes the whole environment through, so they behave exactly as Playwright and Node
|
|
271
|
-
document.
|
|
307
|
+
document. For TLS specifically the agent has settings of its own, and they cover connections these
|
|
308
|
+
do not — see [Self-signed stands](#self-signed-stands).
|
|
272
309
|
|
|
273
310
|
---
|
|
274
311
|
|
|
@@ -304,6 +341,14 @@ A download killed at the 60-minute deadline is the known Playwright stall
|
|
|
304
341
|
(microsoft/playwright#40998) — usually a connection that went silent rather than failed. Nothing is
|
|
305
342
|
assumed installed: the next start simply downloads again.
|
|
306
343
|
|
|
344
|
+
**A run fails with `net::ERR_CERT_AUTHORITY_INVALID` (or another `net::ERR_CERT_*`).** The stand's
|
|
345
|
+
certificate is not one this machine trusts — typically a self-signed internal stand. The failure
|
|
346
|
+
now carries the network cause and the address all the way to the job's page in Progon, so the
|
|
347
|
+
address in it is the one the browser actually tried. Install the stand's root certificate into the
|
|
348
|
+
OS trust store, or start the agent with `PROGON_AGENT_ALLOW_INSECURE_HTTPS=true` — see
|
|
349
|
+
[Self-signed stands](#self-signed-stands). `NODE_EXTRA_CA_CERTS` and `PROGON_AGENT_EXTRA_CA_CERTS`
|
|
350
|
+
do **not** help here: neither reaches Chromium.
|
|
351
|
+
|
|
307
352
|
**`start` fails with "No extension dist is bundled in this package".** The installation is damaged:
|
|
308
353
|
every published package ships the extension inside it. Reinstall:
|
|
309
354
|
|