@rocket.chat/houston 0.27.0-next.3 → 2.1.9
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/LICENSE +1 -1
- package/README.md +109 -15
- package/bin/houston +62 -0
- package/data/docs/ARCHITECTURE.md +387 -0
- package/data/docs/automation.md +107 -0
- package/data/docs/e2ee.md +76 -0
- package/data/docs/eks.md +258 -0
- package/data/docs/gui.md +282 -0
- package/data/docs/guide.md +642 -0
- package/data/docs/kubernetes.md +138 -0
- package/data/docs/loadtest.md +264 -0
- package/data/docs/troubleshooting.md +203 -0
- package/data/docs/upgrading.md +84 -0
- package/data/docs/voice.md +253 -0
- package/data/iam/engineer-policy.json +11 -0
- package/data/iam/engineer-rbac.yaml +42 -0
- package/data/iam/operator-policy.json +211 -0
- package/data/loadtest/badbot.js +22 -0
- package/data/loadtest/common.js +170 -0
- package/data/loadtest/custom.js +20 -0
- package/data/loadtest/journey.js +58 -0
- package/data/loadtest/login.js +18 -0
- package/data/loadtest/messages.js +13 -0
- package/data/loadtest/mixed.js +57 -0
- package/data/loadtest/read.js +12 -0
- package/data/loadtest/webhook.js +20 -0
- package/data/monitoring/houston-logs.json +98 -0
- package/data/monitoring/k6-loadtest.json +610 -0
- package/data/monitoring/mongodb-exporter.json +3007 -0
- package/data/monitoring/node-exporter-full.json +16114 -0
- package/data/monitoring/rocketchat-metrics.json +6471 -0
- package/data/presets/airgapped.yaml +16 -0
- package/data/presets/default.yaml +9 -0
- package/data/seed/avatar-0.png +0 -0
- package/data/seed/avatar-1.png +0 -0
- package/data/seed/avatar-2.png +0 -0
- package/data/seed/avatar-3.png +0 -0
- package/data/seed/avatar-4.png +0 -0
- package/data/seed/avatar-5.png +0 -0
- package/data/seed/avatar-6.png +0 -0
- package/data/seed/avatar-7.png +0 -0
- package/data/seed/seed-metrics.csv +3 -0
- package/data/seed/seed-preview.png +0 -0
- package/data/seed/seed-report.pdf +32 -0
- package/data/seed/seed-runbook.txt +3 -0
- package/data/skill/SKILL.md +399 -0
- package/data/versions.yaml +55 -0
- package/data/voice/freeswitch/drachtio.xml +52 -0
- package/data/voice/freeswitch/public.xml +87 -0
- package/data/webui/app.css +2003 -0
- package/data/webui/index.html +678 -0
- package/data/webui/js/api.js +561 -0
- package/data/webui/js/boot.js +44 -0
- package/data/webui/js/clusters-tail.js +1377 -0
- package/data/webui/js/clusters.js +896 -0
- package/data/webui/js/create.js +276 -0
- package/data/webui/js/detail.js +507 -0
- package/data/webui/js/jobs.js +636 -0
- package/data/webui/js/logs.js +634 -0
- package/data/webui/js/main.js +14 -0
- package/data/webui/js/options.js +408 -0
- package/data/webui/js/people.js +438 -0
- package/data/webui/js/perf.js +303 -0
- package/data/webui/js/render.js +438 -0
- package/data/webui/js/shared.js +3 -0
- package/data/webui/js/state.js +583 -0
- package/data/webui/js/theme.js +123 -0
- package/data/webui/js/util.js +584 -0
- package/dist/cli/app.js +593 -0
- package/dist/cli/capabilities.js +76 -0
- package/dist/cli/cell-widths.js +495 -0
- package/dist/cli/entry.js +10 -0
- package/dist/cli/error-panel.js +492 -0
- package/dist/cli/handlers/actor.js +84 -0
- package/dist/cli/handlers/https.js +614 -0
- package/dist/cli/handlers/prompt.js +299 -0
- package/dist/cli/handlers/users.js +226 -0
- package/dist/cli/handlers.js +3694 -0
- package/dist/cli/help.js +183 -0
- package/dist/cli/index.js +15 -0
- package/dist/cli/perf.js +814 -0
- package/dist/cli/render.js +254 -0
- package/dist/cli/serve.js +858 -0
- package/dist/cli/spec-data.js +2599 -0
- package/dist/cli/spec-types.js +8 -0
- package/dist/cli/usage-error.js +520 -0
- package/dist/cli/wire.js +70 -0
- package/dist/core/audit.js +346 -0
- package/dist/core/backup-compat.js +85 -0
- package/dist/core/backup.js +1639 -0
- package/dist/core/cluster.js +1398 -0
- package/dist/core/configimport.js +345 -0
- package/dist/core/data.js +267 -0
- package/dist/core/database-of.js +82 -0
- package/dist/core/diagnose.js +159 -0
- package/dist/core/doctor.js +1518 -0
- package/dist/core/edge/acme.js +338 -0
- package/dist/core/edge/engine.js +500 -0
- package/dist/core/edge/networks.js +174 -0
- package/dist/core/edge/paths.js +107 -0
- package/dist/core/edge/routes.js +251 -0
- package/dist/core/edge/routeyml.js +195 -0
- package/dist/core/edge/runtime.js +493 -0
- package/dist/core/edge/spec.js +305 -0
- package/dist/core/edge/types.js +202 -0
- package/dist/core/eks-docs.js +135 -0
- package/dist/core/eks.js +2240 -0
- package/dist/core/envvars.js +562 -0
- package/dist/core/eventlog.js +541 -0
- package/dist/core/firstrun.js +153 -0
- package/dist/core/journal.js +694 -0
- package/dist/core/kube/ask.js +231 -0
- package/dist/core/kube/capabilities.js +269 -0
- package/dist/core/kube/certmanager.js +452 -0
- package/dist/core/kube/chart.js +413 -0
- package/dist/core/kube/cluster.js +196 -0
- package/dist/core/kube/context.js +545 -0
- package/dist/core/kube/endpoints.js +448 -0
- package/dist/core/kube/exec.js +195 -0
- package/dist/core/kube/forward.js +732 -0
- package/dist/core/kube/grafana-ingress.js +110 -0
- package/dist/core/kube/ingress.js +218 -0
- package/dist/core/kube/manifests.js +361 -0
- package/dist/core/kube/monitoring.js +768 -0
- package/dist/core/kube/names.js +237 -0
- package/dist/core/kube/namespace.js +678 -0
- package/dist/core/kube/operator.js +941 -0
- package/dist/core/kube/probe.js +202 -0
- package/dist/core/kube/reachability.js +163 -0
- package/dist/core/kube/release.js +439 -0
- package/dist/core/kube/replicaset.js +180 -0
- package/dist/core/kube/scale.js +398 -0
- package/dist/core/kube/status.js +633 -0
- package/dist/core/kube/tools.js +238 -0
- package/dist/core/kube/transfer.js +173 -0
- package/dist/core/kube/workspace.js +423 -0
- package/dist/core/lifecycle/admin.js +64 -0
- package/dist/core/lifecycle/create-docker.js +1549 -0
- package/dist/core/lifecycle/create-k8s.js +960 -0
- package/dist/core/lifecycle/destroy.js +339 -0
- package/dist/core/lifecycle/inspect.js +636 -0
- package/dist/core/lifecycle/naming.js +298 -0
- package/dist/core/lifecycle/notes.js +862 -0
- package/dist/core/lifecycle/ownership.js +313 -0
- package/dist/core/lifecycle/payload.js +401 -0
- package/dist/core/lifecycle/ports.js +388 -0
- package/dist/core/lifecycle/preconditions.js +367 -0
- package/dist/core/lifecycle/pruning.js +551 -0
- package/dist/core/lifecycle/ready.js +818 -0
- package/dist/core/lifecycle/request.js +510 -0
- package/dist/core/lifecycle/seeding.js +281 -0
- package/dist/core/lifecycle/sizing.js +392 -0
- package/dist/core/lifecycle/state.js +286 -0
- package/dist/core/lifecycle/tlsplan.js +704 -0
- package/dist/core/lifecycle/types.js +232 -0
- package/dist/core/loadtest.js +1051 -0
- package/dist/core/migrate.js +612 -0
- package/dist/core/monitor.js +494 -0
- package/dist/core/postready.js +976 -0
- package/dist/core/promote.js +804 -0
- package/dist/core/rcapi.js +1336 -0
- package/dist/core/recovery.js +75 -0
- package/dist/core/runner/engine.js +394 -0
- package/dist/core/runner/host.js +298 -0
- package/dist/core/runner/locks.js +129 -0
- package/dist/core/runner/paths.js +173 -0
- package/dist/core/runner/ports.js +172 -0
- package/dist/core/runner/queries.js +612 -0
- package/dist/core/runner/record.js +563 -0
- package/dist/core/scaleseed.js +271 -0
- package/dist/core/seed-db.js +208 -0
- package/dist/core/sessions.js +472 -0
- package/dist/core/skill.js +326 -0
- package/dist/core/sso-identities.js +172 -0
- package/dist/core/sso.js +703 -0
- package/dist/core/tls-local.js +311 -0
- package/dist/core/tls.js +878 -0
- package/dist/core/topology.js +482 -0
- package/dist/core/upgrade.js +877 -0
- package/dist/core/users.js +739 -0
- package/dist/lib/audit.js +100 -0
- package/dist/lib/close-matches.js +238 -0
- package/dist/lib/compose.js +672 -0
- package/dist/lib/config.js +1398 -0
- package/dist/lib/context.js +18 -0
- package/dist/lib/errors.js +305 -0
- package/dist/lib/events.js +208 -0
- package/dist/lib/float-text.js +126 -0
- package/dist/lib/format.js +1320 -0
- package/dist/lib/home.js +325 -0
- package/dist/lib/journal.js +122 -0
- package/dist/lib/json-text.js +733 -0
- package/dist/lib/jsonout.js +382 -0
- package/dist/lib/lock.js +516 -0
- package/dist/lib/login-name.js +202 -0
- package/dist/lib/map-limit.js +29 -0
- package/dist/lib/mkdir-parents.js +90 -0
- package/dist/lib/mongo-kernel.js +67 -0
- package/dist/lib/monitoring.js +492 -0
- package/dist/lib/platform-name.js +59 -0
- package/dist/lib/presets/common.js +390 -0
- package/dist/lib/presets/composite.js +326 -0
- package/dist/lib/presets/e2ee.js +143 -0
- package/dist/lib/presets/email.js +172 -0
- package/dist/lib/presets/guides.js +27 -0
- package/dist/lib/presets/index.js +490 -0
- package/dist/lib/presets/keycloak.js +371 -0
- package/dist/lib/presets/ldap.js +1285 -0
- package/dist/lib/presets/livechat.js +220 -0
- package/dist/lib/presets/multi-instance.js +124 -0
- package/dist/lib/presets/oidc.js +161 -0
- package/dist/lib/presets/public.js +496 -0
- package/dist/lib/presets/registry.js +64 -0
- package/dist/lib/presets/s3-minio.js +300 -0
- package/dist/lib/presets/saml.js +149 -0
- package/dist/lib/presets/scenario.js +51 -0
- package/dist/lib/presets/types.js +86 -0
- package/dist/lib/presets/voice-pbx.js +320 -0
- package/dist/lib/presets/voice.js +345 -0
- package/dist/lib/presets/webhooks.js +182 -0
- package/dist/lib/redact.js +106 -0
- package/dist/lib/seed-options.js +68 -0
- package/dist/lib/seed-profiles.js +59 -0
- package/dist/lib/targz.js +1383 -0
- package/dist/lib/teammode.js +25 -0
- package/dist/lib/tempdir.js +162 -0
- package/dist/lib/unicode-tables.js +2335 -0
- package/dist/lib/version-spec.js +357 -0
- package/dist/lib/versions.js +463 -0
- package/dist/lib/yaml-dump.js +1361 -0
- package/dist/perf/baseline.js +168 -0
- package/dist/perf/constrain.js +299 -0
- package/dist/perf/k6.js +235 -0
- package/dist/perf/mongoprof.js +171 -0
- package/dist/perf/rcmetrics.js +191 -0
- package/dist/perf/report.js +386 -0
- package/dist/perf/resources.js +236 -0
- package/dist/perf/slo.js +111 -0
- package/dist/perf/timeline.js +187 -0
- package/dist/perf/timings.js +85 -0
- package/dist/perf/verdict.js +201 -0
- package/dist/seams/aws-cli.js +126 -0
- package/dist/seams/docker-cli.js +280 -0
- package/dist/seams/exec.js +861 -0
- package/dist/seams/fs/lock.js +528 -0
- package/dist/seams/kubectl.js +83 -0
- package/dist/seams/rc-http.js +921 -0
- package/dist/seed/apply.js +190 -0
- package/dist/seed/assets.js +76 -0
- package/dist/seed/check.js +391 -0
- package/dist/seed/client.js +172 -0
- package/dist/seed/executor.js +726 -0
- package/dist/seed/history.js +281 -0
- package/dist/seed/kinds.js +91 -0
- package/dist/seed/plan.js +432 -0
- package/dist/seed/receipt.js +339 -0
- package/dist/seed/repairs.js +75 -0
- package/dist/seed/verification.js +363 -0
- package/dist/seed/wording.js +248 -0
- package/dist/web/app.js +326 -0
- package/dist/web/jobs.js +510 -0
- package/dist/web/route-deps.js +211 -0
- package/dist/web/route-table.js +213 -0
- package/dist/web/routes/backup.js +244 -0
- package/dist/web/routes/clusters.js +303 -0
- package/dist/web/routes/data.js +187 -0
- package/dist/web/routes/edge.js +82 -0
- package/dist/web/routes/index.js +63 -0
- package/dist/web/routes/jobs.js +95 -0
- package/dist/web/routes/logs.js +297 -0
- package/dist/web/routes/meta.js +191 -0
- package/dist/web/routes/people.js +151 -0
- package/dist/web/routes/perf.js +95 -0
- package/dist/web/routes/repros.js +550 -0
- package/dist/web/routes/session.js +361 -0
- package/dist/web/routes/spa.js +198 -0
- package/dist/web/security.js +475 -0
- package/dist/web/signin.js +246 -0
- package/package.json +70 -32
- package/.eslintrc +0 -94
- package/.swcrc +0 -18
- package/dist/bin.js +0 -3
- package/dist/cli.js +0 -184
- package/dist/commands/createBranch.js +0 -194
- package/dist/outputCI.js +0 -59
- package/src/bin.js +0 -4
- package/src/cli.ts +0 -25
- package/src/commands/createBranch.ts +0 -28
- package/src/outputCI.ts +0 -12
- package/src-old/logs.js +0 -323
- package/src-old/md.js +0 -191
- package/src-old/release-table.js +0 -60
- package/src-old/set-version.js +0 -614
- package/src-old/utils.js +0 -15
|
@@ -0,0 +1,678 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
+
<title>houston</title>
|
|
7
|
+
<link rel="stylesheet" href="app.css">
|
|
8
|
+
</head>
|
|
9
|
+
<body class="shell">
|
|
10
|
+
<header class="topbar">
|
|
11
|
+
<button class="brand" title="Back to Home"><span class="dollar">$</span> houston</button>
|
|
12
|
+
<!-- Status on the left, account on the right. Both badges keep the position
|
|
13
|
+
they have always had; only the ground under them changed. -->
|
|
14
|
+
<!-- The DOCTOR button, named for what it does. It said "docker: up", which was
|
|
15
|
+
the whole environment when Docker was the only runtime and is now one engine
|
|
16
|
+
of two -- and it made the one control that answers "is this box usable"
|
|
17
|
+
look like a status label. What each engine is doing moved to the footer. -->
|
|
18
|
+
<button id="doctor-badge" class="chip" title="Run the environment check">doctor</button>
|
|
19
|
+
<button id="edge-badge" class="chip" title="The shared HTTPS front door serving every HTTPS name" hidden></button>
|
|
20
|
+
<!-- The cluster ledger's at-a-glance half. Hidden when this box knows of no
|
|
21
|
+
cluster at all; amber when one is past its date or would not answer, which
|
|
22
|
+
is what amber MEANS here. Never red: red is for destroying something, and a
|
|
23
|
+
cluster that is merely expensive is not that. -->
|
|
24
|
+
<button id="cluster-badge" class="chip" title="Clusters, and what they are costing" hidden></button>
|
|
25
|
+
<div class="topbar-actions">
|
|
26
|
+
<!-- ONE set of links, in a wrapper the narrow layout turns into a popover. A
|
|
27
|
+
second copy behind a hamburger is two things to keep in step, and they
|
|
28
|
+
drift: this is the same four buttons either way, moved by CSS. -->
|
|
29
|
+
<div id="toplinks" class="toplinks">
|
|
30
|
+
<button id="btn-home" class="toplink">Home</button>
|
|
31
|
+
<button id="btn-jobs" class="toplink">Activity</button>
|
|
32
|
+
<button id="btn-clusters" class="toplink">Clusters</button>
|
|
33
|
+
<button id="btn-scenarios" class="toplink">Presets</button>
|
|
34
|
+
<button id="btn-backups" class="toplink">Backups</button>
|
|
35
|
+
<button id="btn-refresh" class="toplink">Refresh</button>
|
|
36
|
+
</div>
|
|
37
|
+
<!-- Shown only where the four links would wrap onto a second row of chrome,
|
|
38
|
+
which on a 430px screen is a quarter of the height before anything is said
|
|
39
|
+
about a workspace. -->
|
|
40
|
+
<button id="nav-toggle" class="chip iconbtn navtoggle" title="Menu"
|
|
41
|
+
aria-haspopup="menu" aria-expanded="false">☰</button>
|
|
42
|
+
<button id="theme-toggle" class="chip iconbtn" title="Switch between the light and dark theme"></button>
|
|
43
|
+
<!-- The account menu. Clicking the name used to open the sessions DIALOG,
|
|
44
|
+
which meant "sign out" and "change your password" were behind a modal
|
|
45
|
+
about something else. A menu is what a name in a corner is for. -->
|
|
46
|
+
<div class="menuwrap">
|
|
47
|
+
<button id="whoami" class="whoami" hidden aria-haspopup="menu"
|
|
48
|
+
aria-expanded="false" title="Your account"></button>
|
|
49
|
+
<div id="me-menu" class="memenu" role="menu" hidden>
|
|
50
|
+
<div class="me-head"><b id="me-name"></b><span id="me-role"></span></div>
|
|
51
|
+
<button type="button" id="me-sessions" role="menuitem">Your sessions
|
|
52
|
+
<small id="me-sessions-n"></small></button>
|
|
53
|
+
<button type="button" id="me-people" role="menuitem" hidden>People & roles
|
|
54
|
+
<small>admin</small></button>
|
|
55
|
+
<button type="button" id="me-passwd" role="menuitem">Change your houston password</button>
|
|
56
|
+
<hr>
|
|
57
|
+
<button type="button" id="me-out" role="menuitem" class="danger">Sign out</button>
|
|
58
|
+
</div>
|
|
59
|
+
</div>
|
|
60
|
+
</div>
|
|
61
|
+
</header>
|
|
62
|
+
|
|
63
|
+
<div class="panes">
|
|
64
|
+
<!-- The rail is for SCANNING: one row per workspace, whole name, no buttons.
|
|
65
|
+
Six used to need 780px of cards; the same six are 300px of rows, and forty
|
|
66
|
+
would still fit. Actions moved to the stage, where the thing they act on
|
|
67
|
+
is actually on screen. -->
|
|
68
|
+
<nav class="rail" aria-label="Workspaces">
|
|
69
|
+
<div class="rail-head">
|
|
70
|
+
<span class="rail-title">Workspaces</span>
|
|
71
|
+
<span id="running-pill" class="pill running">0 running</span>
|
|
72
|
+
</div>
|
|
73
|
+
<div class="rail-controls">
|
|
74
|
+
<button id="btn-new" class="btn solid block">+ New workspace</button>
|
|
75
|
+
<input id="filter" class="input" placeholder="Filter by ticket or version…" aria-label="Filter workspaces by name">
|
|
76
|
+
<div class="rail-two">
|
|
77
|
+
<select id="scope-filter" class="input" aria-label="Whose workspaces" hidden>
|
|
78
|
+
<option value="all">Everyone</option>
|
|
79
|
+
<option value="mine">Mine</option>
|
|
80
|
+
</select>
|
|
81
|
+
<select id="status-filter" class="input" aria-label="Filter by status">
|
|
82
|
+
<option value="">All statuses</option>
|
|
83
|
+
<option value="running">Running</option>
|
|
84
|
+
<option value="stopped">Stopped</option>
|
|
85
|
+
<option value="down">Down</option>
|
|
86
|
+
<option value="restarting">Restarting</option>
|
|
87
|
+
<option value="paused">Paused</option>
|
|
88
|
+
<option value="created">Created</option>
|
|
89
|
+
<option value="dead">Dead</option>
|
|
90
|
+
<option value="?">Unknown (docker down)</option>
|
|
91
|
+
</select>
|
|
92
|
+
<select id="sort-by" class="input" aria-label="Sort workspaces">
|
|
93
|
+
<option value="name">Sort: name</option>
|
|
94
|
+
<option value="state">Sort: state</option>
|
|
95
|
+
<option value="port">Sort: port</option>
|
|
96
|
+
</select>
|
|
97
|
+
</div>
|
|
98
|
+
</div>
|
|
99
|
+
<section id="repros" class="rows"></section>
|
|
100
|
+
<div class="rail-foot">
|
|
101
|
+
<button id="btn-prune" class="btn danger block small">Delete taken-down workspaces</button>
|
|
102
|
+
</div>
|
|
103
|
+
</nav>
|
|
104
|
+
<main id="detail" class="stage"></main>
|
|
105
|
+
<aside id="actpane" class="actpane" aria-label="Actions for this workspace"></aside>
|
|
106
|
+
</div>
|
|
107
|
+
|
|
108
|
+
<footer class="statusbar">
|
|
109
|
+
<span id="sb-count">—</span>
|
|
110
|
+
<span id="sb-refreshed">Last refreshed: —</span>
|
|
111
|
+
<!-- Both engines, because a workspace can run in either and the answer for one
|
|
112
|
+
says nothing about the other. -->
|
|
113
|
+
<span class="sb-right" id="sb-engines">docker: ? · k8s: ?</span>
|
|
114
|
+
</footer>
|
|
115
|
+
|
|
116
|
+
<!-- Create a workspace: two steps, then its progress. Step 1 asks only where it runs,
|
|
117
|
+
with the same cards the Clusters page shows, so the picture is learned once.
|
|
118
|
+
Step 2 is the details, in named sections. On Create the dialog becomes the job's
|
|
119
|
+
progress rather than handing off to a second dialog. Every field keeps its name,
|
|
120
|
+
so the request the form sends is the one it always sent. -->
|
|
121
|
+
<dialog id="create-dialog" class="wzd" aria-labelledby="create-title">
|
|
122
|
+
<form id="create-form" method="dialog">
|
|
123
|
+
<header class="wzd-h">
|
|
124
|
+
<div><h2 id="create-title">Create a workspace</h2>
|
|
125
|
+
<div class="wzd-steps" id="create-steps"></div></div>
|
|
126
|
+
<button type="button" class="wzd-x" id="create-x" aria-label="Close">✕</button>
|
|
127
|
+
</header>
|
|
128
|
+
<div class="wzd-b" id="create-body">
|
|
129
|
+
<!-- Shown only when this GUI is open at a NON-loopback address: a workspace
|
|
130
|
+
binds 127.0.0.1 and will not answer the browser it was created from. -->
|
|
131
|
+
<p id="create-bind-hint" class="banner warn" hidden></p>
|
|
132
|
+
|
|
133
|
+
<section class="wzd-step" id="create-step-1">
|
|
134
|
+
<p class="wzd-q" tabindex="-1">Where should it run?</p>
|
|
135
|
+
<div id="dest-cards" role="radiogroup" aria-label="Where it runs"></div>
|
|
136
|
+
<p id="dest-note" class="callout" hidden></p>
|
|
137
|
+
<input type="hidden" name="runtime" id="runtime-value">
|
|
138
|
+
<!-- The context the cards chose. A select, so the value sent is always one
|
|
139
|
+
the server listed; the cards set it and nothing downstream changed. -->
|
|
140
|
+
<select name="context" id="context-select" hidden aria-hidden="true" tabindex="-1"></select>
|
|
141
|
+
</section>
|
|
142
|
+
|
|
143
|
+
<section class="wzd-step" id="create-step-2" hidden>
|
|
144
|
+
<div class="wzd-summary"><span id="create-summary"></span><span class="sp"></span>
|
|
145
|
+
<button type="button" class="linkbtn" id="create-change">Change</button></div>
|
|
146
|
+
<div class="fsec"><div class="fsec-l">Rocket.Chat</div><div class="fsec-f two">
|
|
147
|
+
<div><label class="f">Version <span class="pill plain" id="version-pill" hidden>CI build</span>
|
|
148
|
+
<input name="version" placeholder="8.5.1" required autocomplete="off"></label>
|
|
149
|
+
<p id="version-hint" class="hint"></p></div>
|
|
150
|
+
<div><label class="f">Name <span class="opt">(optional)</span>
|
|
151
|
+
<input name="name" placeholder="derived from the version" autocomplete="off"></label>
|
|
152
|
+
<p class="hint">Used in commands, e.g. <code>houston logs <name></code>.</p></div>
|
|
153
|
+
<!-- The license: pasted or read from a file, then masked. Never shown again. -->
|
|
154
|
+
<div class="lic span-all" id="lic">
|
|
155
|
+
<div class="lic-h">
|
|
156
|
+
<span class="f">Enterprise license <span class="opt">(optional)</span></span>
|
|
157
|
+
<span class="pill plain" id="lic-pill" hidden>Licensed</span>
|
|
158
|
+
<span class="sp"></span>
|
|
159
|
+
<button type="button" class="linkbtn" id="lic-add">Add a license</button>
|
|
160
|
+
<button type="button" class="linkbtn" id="lic-cancel" hidden>Cancel</button>
|
|
161
|
+
</div>
|
|
162
|
+
<p class="hint" id="lic-policy" hidden>Limited to admins on this server (<code>gui.create_policy admin</code>).</p>
|
|
163
|
+
<div class="lic-sum" id="lic-sum" hidden>
|
|
164
|
+
<span id="lic-sum-t"></span>
|
|
165
|
+
<span class="sp"></span>
|
|
166
|
+
<button type="button" class="linkbtn" id="lic-replace">Replace</button>
|
|
167
|
+
<button type="button" class="linkbtn" id="lic-remove">Remove</button>
|
|
168
|
+
</div>
|
|
169
|
+
<div class="lic-b" id="lic-b" hidden>
|
|
170
|
+
<label class="f" for="lic-text">Paste the license</label>
|
|
171
|
+
<textarea id="lic-text" rows="3" spellcheck="false" autocomplete="off" placeholder="Paste the license"></textarea>
|
|
172
|
+
<p class="hint">or <label class="linkbtn" for="lic-file">choose a file</label><input type="file" id="lic-file" hidden> · Kept in its own file on the server, never shown again.</p>
|
|
173
|
+
</div>
|
|
174
|
+
</div>
|
|
175
|
+
</div></div>
|
|
176
|
+
<div class="fsec"><div class="fsec-l">Presets</div><div class="fsec-f">
|
|
177
|
+
<!-- Several presets at once, each with its own settings (options.js). -->
|
|
178
|
+
<div class="plist" id="plist" role="group" aria-label="Presets"></div>
|
|
179
|
+
<p class="hint" id="pnone">Nothing ticked: a plain Rocket.Chat.</p>
|
|
180
|
+
<div class="callout pcombo" id="pcombo" hidden></div>
|
|
181
|
+
<p class="banner warn" id="v9" hidden></p>
|
|
182
|
+
<div class="ppanels" id="ppanels"></div>
|
|
183
|
+
<div class="checks">
|
|
184
|
+
<label><input type="checkbox" name="seed"> Sample data <span class="opt">(users, channels, messages)</span></label>
|
|
185
|
+
<label><input type="checkbox" name="monitor"> Monitoring <span class="opt">(Prometheus + Grafana)</span></label>
|
|
186
|
+
<label id="create-seed-profile-row" class="f" hidden>Sample data size
|
|
187
|
+
<select name="seed_profile">
|
|
188
|
+
<option value="small">small</option>
|
|
189
|
+
<option value="standard">standard</option>
|
|
190
|
+
<option value="large">large</option>
|
|
191
|
+
</select>
|
|
192
|
+
</label>
|
|
193
|
+
<div id="create-seed-options" hidden>
|
|
194
|
+
<div class="checks seed-scenarios" data-prefix="seed_"></div>
|
|
195
|
+
<div class="checks"><label><input type="checkbox" name="seed_history"> Historical messages</label></div>
|
|
196
|
+
<label class="f">History in days <input type="number" name="seed_history_days" value="180" min="1" max="36500" disabled></label>
|
|
197
|
+
<p class="hint">Dates are synthetic. Existing messages keep their dates.</p>
|
|
198
|
+
</div>
|
|
199
|
+
</div>
|
|
200
|
+
</div></div>
|
|
201
|
+
<!-- HTTPS stays visible and outside the collapsible: how a workspace is reached
|
|
202
|
+
is part of where it runs, and on a managed cluster without a name it is
|
|
203
|
+
reachable only by a port-forward. -->
|
|
204
|
+
<div class="fsec"><div class="fsec-l">Access</div><div class="fsec-f">
|
|
205
|
+
<p id="cluster-note" class="callout money" hidden></p>
|
|
206
|
+
<div id="create-https-block">
|
|
207
|
+
<label class="f">HTTPS
|
|
208
|
+
<select name="https_mode" id="https-mode">
|
|
209
|
+
<option value="">Off: plain http on a port of this server, no certificate</option>
|
|
210
|
+
<option value="acme">Let's Encrypt: a public name that reaches this server</option>
|
|
211
|
+
<option value="local">Local certificate: a browser on this server only, no domain (run houston trust-ca once)</option>
|
|
212
|
+
</select>
|
|
213
|
+
</label>
|
|
214
|
+
<p class="hint" id="https-mode-hint"></p>
|
|
215
|
+
<div class="two https-acme" hidden>
|
|
216
|
+
<label class="f">Domain <input name="domain" placeholder="rc1.example.com"></label>
|
|
217
|
+
<label class="f">Contact email for Let's Encrypt <input name="acme_email" type="email" placeholder="you@example.com"></label>
|
|
218
|
+
</div>
|
|
219
|
+
<p class="hint https-acme" hidden>The domain has to resolve to this server with port 443
|
|
220
|
+
reachable: Let's Encrypt validates by connecting to it. If a wildcard DNS record
|
|
221
|
+
(<code>*.example.com</code>) already points here, any name under it works with no DNS
|
|
222
|
+
change; any other name needs its own record first. On a managed cluster, point
|
|
223
|
+
it at the load balancer <b>Prepare</b> reports. Check it with <b>Check the certificate</b> once
|
|
224
|
+
the workspace is up.</p>
|
|
225
|
+
</div>
|
|
226
|
+
</div></div>
|
|
227
|
+
<div class="fsec"><div class="fsec-l">Shape</div><div class="fsec-f">
|
|
228
|
+
<div><div class="seg" id="deployment-seg" role="group" aria-label="Shape"></div></div>
|
|
229
|
+
<input type="hidden" name="deployment" id="deployment-value">
|
|
230
|
+
<p id="runtime-hint" class="hint"></p>
|
|
231
|
+
</div></div>
|
|
232
|
+
<details class="adv">
|
|
233
|
+
<summary>More options</summary>
|
|
234
|
+
<!-- Filled from the server's own refusal registry, so this never claims a
|
|
235
|
+
field is unavailable that has since been built. -->
|
|
236
|
+
<p id="adv-gone" class="adv-gone" hidden></p>
|
|
237
|
+
<p id="adv-policy" class="adv-gone" hidden>The Rocket.Chat image, registration token and bind host are limited to admins on this server (<code>gui.create_policy admin</code>).</p>
|
|
238
|
+
<div class="grid3">
|
|
239
|
+
<label class="f">Host port <input name="port" type="number" min="1024" max="65535" placeholder="auto"></label>
|
|
240
|
+
<label class="f">Bind host <input name="bind" placeholder="127.0.0.1"></label>
|
|
241
|
+
<label class="f">Root URL <input name="root_url" placeholder="http://localhost:PORT"></label>
|
|
242
|
+
<label class="f">Rocket.Chat image <input name="rc_image" placeholder="registry/…/rocket.chat"></label>
|
|
243
|
+
<label class="f">MongoDB version <input name="mongo" placeholder="e.g. 8.0"></label>
|
|
244
|
+
<label class="f">Registration token <input name="reg_token" placeholder="cloud reg token"></label>
|
|
245
|
+
<label class="f" id="replicas-row" hidden>Instances <input name="replicas" type="number" min="1" max="9" placeholder="1"></label>
|
|
246
|
+
<label class="f span2">If the name already exists
|
|
247
|
+
<select name="existing">
|
|
248
|
+
<option value="reuse">Reuse it: start the existing workspace as it is</option>
|
|
249
|
+
<option value="force">Rebuild it from these settings, keeping its data</option>
|
|
250
|
+
<option value="fresh">Rebuild it and DELETE its data: users, channels, messages, uploads</option>
|
|
251
|
+
</select>
|
|
252
|
+
</label>
|
|
253
|
+
</div>
|
|
254
|
+
<div class="checks">
|
|
255
|
+
<label><input type="checkbox" name="wait" checked> Wait until ready</label>
|
|
256
|
+
<label><input type="checkbox" name="pin"> Keep: “Delete taken-down workspaces” skips it (on Docker it also becomes this server's default for CLI commands)</label>
|
|
257
|
+
<span id="runtime-extra" class="checks-inline"></span>
|
|
258
|
+
</div>
|
|
259
|
+
</details>
|
|
260
|
+
</section>
|
|
261
|
+
|
|
262
|
+
<!-- The job's own events, as they arrive. -->
|
|
263
|
+
<section class="wzd-step" id="create-step-3" hidden>
|
|
264
|
+
<p class="wzd-q" id="create-progress-title" tabindex="-1">Creating…</p>
|
|
265
|
+
<ul class="checklist" id="create-progress" aria-live="polite"></ul>
|
|
266
|
+
<div id="create-result"></div>
|
|
267
|
+
</section>
|
|
268
|
+
</div>
|
|
269
|
+
<footer class="wzd-f">
|
|
270
|
+
<button type="button" class="btn" id="create-back" hidden>← Back</button>
|
|
271
|
+
<span class="hint wzd-hint" id="create-foot-hint"></span>
|
|
272
|
+
<button type="button" class="btn" id="create-stop" hidden>Stop</button>
|
|
273
|
+
<button type="button" class="btn" id="create-cancel">Cancel</button>
|
|
274
|
+
<button type="button" class="btn solid" id="create-next">Next →</button>
|
|
275
|
+
<button value="ok" class="btn solid" id="create-submit" hidden>Create workspace</button>
|
|
276
|
+
<button type="button" class="btn" id="create-open-ws" hidden>Open workspace</button>
|
|
277
|
+
<a class="btn solid" id="create-open-rc" hidden target="_blank" rel="noreferrer">Open Rocket.Chat</a>
|
|
278
|
+
</footer>
|
|
279
|
+
</form>
|
|
280
|
+
</dialog>
|
|
281
|
+
|
|
282
|
+
<!-- Seed dialog -->
|
|
283
|
+
<dialog id="seed-dialog">
|
|
284
|
+
<form id="seed-form" method="dialog">
|
|
285
|
+
<h2 id="seed-title">Add sample data</h2>
|
|
286
|
+
<label>Mode
|
|
287
|
+
<select name="mode" id="seed-mode">
|
|
288
|
+
<option value="profile">Realistic: users you can sign in as, rooms, messages (slower)</option>
|
|
289
|
+
<option value="scale">Bulk volume, fast: its users cannot sign in, no notifications</option>
|
|
290
|
+
</select>
|
|
291
|
+
</label>
|
|
292
|
+
<label id="seed-profile-row">Profile
|
|
293
|
+
<select name="profile"><option>small</option><option>standard</option><option>large</option></select>
|
|
294
|
+
</label>
|
|
295
|
+
<div id="seed-options">
|
|
296
|
+
<div class="checks seed-scenarios" data-prefix=""></div>
|
|
297
|
+
<div class="checks"><label><input type="checkbox" name="history"> Historical messages</label></div>
|
|
298
|
+
<label>History in days <input type="number" name="history_days" value="180" min="1" max="36500" disabled></label>
|
|
299
|
+
<p class="hint">Dates are synthetic. Existing messages keep their dates.</p>
|
|
300
|
+
</div>
|
|
301
|
+
<label id="seed-scale-row" hidden>Scale spec
|
|
302
|
+
<input name="scale" placeholder="users=50000,messages=800000@team-chat">
|
|
303
|
+
</label>
|
|
304
|
+
<p class="hint" id="seed-hint"></p>
|
|
305
|
+
<menu>
|
|
306
|
+
<button type="button" id="seed-cancel" class="btn">Cancel</button>
|
|
307
|
+
<button type="button" id="seed-clear" class="btn danger">Remove bulk test data</button>
|
|
308
|
+
<button class="btn primary" id="seed-submit">Seed</button>
|
|
309
|
+
</menu>
|
|
310
|
+
</form>
|
|
311
|
+
</dialog>
|
|
312
|
+
|
|
313
|
+
<!-- Upgrade dialog. Reachable only from a RUNNING workspace: the pre-upgrade
|
|
314
|
+
backup needs MongoDB up, and Rocket.Chat runs its migrations on boot. -->
|
|
315
|
+
<dialog id="upgrade-dialog">
|
|
316
|
+
<form id="upgrade-form" method="dialog">
|
|
317
|
+
<h2 id="upgrade-title">Upgrade</h2>
|
|
318
|
+
<p class="hint">Currently running <b id="upgrade-current">?</b>. Rocket.Chat
|
|
319
|
+
migrates its database on boot, so this is a one-way change — which is why a
|
|
320
|
+
backup is taken first.</p>
|
|
321
|
+
<label>Target version
|
|
322
|
+
<input name="to" id="upgrade-to" placeholder="8.6.1" autocomplete="off">
|
|
323
|
+
</label>
|
|
324
|
+
<p class="hint" id="upgrade-plan"></p>
|
|
325
|
+
<div class="checks">
|
|
326
|
+
<label><input type="checkbox" id="upgrade-nobackup"> Skip the pre-upgrade
|
|
327
|
+
backup (nothing to roll back to)</label>
|
|
328
|
+
</div>
|
|
329
|
+
<menu>
|
|
330
|
+
<button type="button" id="upgrade-cancel" class="btn">Cancel</button>
|
|
331
|
+
<button type="button" class="btn primary" id="upgrade-go" disabled>Upgrade</button>
|
|
332
|
+
</menu>
|
|
333
|
+
</form>
|
|
334
|
+
</dialog>
|
|
335
|
+
|
|
336
|
+
<!-- Roll back the last upgrade: POST /api/repros/{name}/upgrade/rollback. Offered only
|
|
337
|
+
when the panel's read says one can be made (`rollback_to`: the pre-upgrade backup is
|
|
338
|
+
recorded and still on disk). Red, because it replaces the database with the one that
|
|
339
|
+
backup holds: whatever happened in the workspace after the upgrade is gone. -->
|
|
340
|
+
<dialog id="rollback-dialog">
|
|
341
|
+
<form id="rollback-form" method="dialog">
|
|
342
|
+
<h2 id="rollback-title">Roll back</h2>
|
|
343
|
+
<p class="banner bad" id="rollback-what"></p>
|
|
344
|
+
<p class="hint">It runs as a job, like the upgrade did, and the panel is read again when
|
|
345
|
+
it ends.</p>
|
|
346
|
+
<menu>
|
|
347
|
+
<button type="button" id="rollback-cancel" class="btn">Cancel</button>
|
|
348
|
+
<button type="button" id="rollback-go" class="btn danger">Roll back</button>
|
|
349
|
+
</menu>
|
|
350
|
+
</form>
|
|
351
|
+
</dialog>
|
|
352
|
+
|
|
353
|
+
<!-- Take down or Delete, from the pane's two buttons: DELETE /api/repros/{name}. One dialog
|
|
354
|
+
replacing two browser confirm boxes whose second read Cancel as "keep the data". Delete
|
|
355
|
+
is enabled once the name is typed. -->
|
|
356
|
+
<dialog id="down-dialog">
|
|
357
|
+
<form id="down-form" method="dialog">
|
|
358
|
+
<h2 id="down-title">Take it down?</h2>
|
|
359
|
+
<p class="hint" id="down-what"></p>
|
|
360
|
+
<p class="hint" id="down-whose" hidden></p>
|
|
361
|
+
<label id="down-typed" hidden>Type <b id="down-name"></b> to delete it
|
|
362
|
+
<input id="down-input" autocomplete="off" spellcheck="false"></label>
|
|
363
|
+
<menu>
|
|
364
|
+
<button type="button" id="down-cancel" class="btn">Cancel</button>
|
|
365
|
+
<button type="button" id="down-go" class="btn">Take down</button>
|
|
366
|
+
</menu>
|
|
367
|
+
</form>
|
|
368
|
+
</dialog>
|
|
369
|
+
|
|
370
|
+
<!-- Hand a workspace over: POST /api/repros/{name}/owner. Offered to whoever the server's
|
|
371
|
+
ownership gate lets (the owner, an admin, or anyone under `gui.destroy_policy
|
|
372
|
+
anyone`); its refusal is shown here rather than in a toast behind the dialog. An
|
|
373
|
+
admin picks from the people list, which only an admin may read; anyone else types
|
|
374
|
+
the name. -->
|
|
375
|
+
<dialog id="owner-dialog">
|
|
376
|
+
<form id="owner-form" method="dialog">
|
|
377
|
+
<h2 id="owner-title">Hand over</h2>
|
|
378
|
+
<p class="hint" id="owner-now"></p>
|
|
379
|
+
<label id="owner-pick-row">New owner <select id="owner-pick"></select></label>
|
|
380
|
+
<label id="owner-to-row">New owner's sign-in name
|
|
381
|
+
<input id="owner-to" autocomplete="off" spellcheck="false"></label>
|
|
382
|
+
<p id="owner-err" class="banner bad" hidden></p>
|
|
383
|
+
<menu>
|
|
384
|
+
<button type="button" id="owner-cancel" class="btn">Cancel</button>
|
|
385
|
+
<button type="submit" id="owner-go" class="btn primary">Hand over</button>
|
|
386
|
+
</menu>
|
|
387
|
+
</form>
|
|
388
|
+
</dialog>
|
|
389
|
+
|
|
390
|
+
<!-- Restore a backup as a NEW workspace. The server is asked first whether this viewer may
|
|
391
|
+
use the bundle (its owner or an admin), so the dialog says who can before a click is
|
|
392
|
+
refused. The copy gets side ports of its own. -->
|
|
393
|
+
<dialog id="restore-dialog">
|
|
394
|
+
<form id="restore-form" method="dialog">
|
|
395
|
+
<h2>Restore as a new workspace</h2>
|
|
396
|
+
<p class="hint" id="restore-what"></p>
|
|
397
|
+
<menu>
|
|
398
|
+
<button type="button" id="restore-cancel" class="btn">Cancel</button>
|
|
399
|
+
<button type="button" id="restore-go" class="btn primary">Restore</button>
|
|
400
|
+
</menu>
|
|
401
|
+
</form>
|
|
402
|
+
</dialog>
|
|
403
|
+
|
|
404
|
+
<!-- Config-import dialog -->
|
|
405
|
+
<dialog id="import-dialog">
|
|
406
|
+
<form id="import-form" method="dialog">
|
|
407
|
+
<h2 id="import-title">Import settings</h2>
|
|
408
|
+
<label>Support-dump settings file (*-settings.json)
|
|
409
|
+
<input type="file" name="file" id="import-file" accept=".json,application/json">
|
|
410
|
+
</label>
|
|
411
|
+
<label>Only these id prefixes (optional, comma-separated)
|
|
412
|
+
<input name="only" placeholder="Livechat,LDAP,Accounts">
|
|
413
|
+
</label>
|
|
414
|
+
<div id="import-plan" class="plan" hidden></div>
|
|
415
|
+
<menu>
|
|
416
|
+
<button type="button" id="import-cancel" class="btn">Cancel</button>
|
|
417
|
+
<button id="import-preview" class="btn">Preview plan</button>
|
|
418
|
+
<button type="button" class="btn primary" id="import-apply" disabled>Apply</button>
|
|
419
|
+
</menu>
|
|
420
|
+
</form>
|
|
421
|
+
</dialog>
|
|
422
|
+
|
|
423
|
+
<!-- Load-test dialog -->
|
|
424
|
+
<dialog id="perf-dialog">
|
|
425
|
+
<form id="perf-form" method="dialog">
|
|
426
|
+
<h2 id="perf-title">Load test</h2>
|
|
427
|
+
<label>Scenario
|
|
428
|
+
<select name="scenario">
|
|
429
|
+
<option>messages</option><option>login</option><option>read</option>
|
|
430
|
+
<option>mixed</option><option>journey</option><option>badbot</option>
|
|
431
|
+
</select>
|
|
432
|
+
</label>
|
|
433
|
+
<div class="row2">
|
|
434
|
+
<label>VUs <input name="vus" type="number" min="1" value="10"></label>
|
|
435
|
+
<label>Duration <input name="duration" value="30s"></label>
|
|
436
|
+
</div>
|
|
437
|
+
<div class="row2">
|
|
438
|
+
<label>Seed users (0 = admin) <input name="users_n" type="number" min="0" value="10"></label>
|
|
439
|
+
<label>SLO (optional) <input name="slo" placeholder="p95=300ms,error=1%"></label>
|
|
440
|
+
</div>
|
|
441
|
+
<label>Constrain (optional) <input name="constrain" placeholder="rc=2cpu/2g,mongo=1cpu/1g"></label>
|
|
442
|
+
<div class="checks">
|
|
443
|
+
<label><input type="checkbox" name="diag" checked> Server-side diagnosis (lag, slow queries, verdict)</label>
|
|
444
|
+
<label><input type="checkbox" name="stats"> Container CPU/RAM</label>
|
|
445
|
+
<label id="perf-live-row"><input type="checkbox" name="live"> Stream to Grafana (needs monitoring)</label>
|
|
446
|
+
</div>
|
|
447
|
+
<menu>
|
|
448
|
+
<button type="button" id="perf-cancel" class="btn">Cancel</button>
|
|
449
|
+
<button type="button" class="btn primary" id="perf-submit">Run</button>
|
|
450
|
+
</menu>
|
|
451
|
+
</form>
|
|
452
|
+
</dialog>
|
|
453
|
+
|
|
454
|
+
<!-- Capacity dialog -->
|
|
455
|
+
<dialog id="cap-dialog">
|
|
456
|
+
<form id="cap-form" method="dialog">
|
|
457
|
+
<h2 id="cap-title">Capacity search</h2>
|
|
458
|
+
<p class="hint">Doubles VUs until the SLO breaks, then bisects — "handles ~N concurrent VUs".</p>
|
|
459
|
+
<label>Scenario
|
|
460
|
+
<select name="scenario">
|
|
461
|
+
<option>journey</option><option>messages</option><option>read</option>
|
|
462
|
+
<option>mixed</option><option>login</option><option>badbot</option>
|
|
463
|
+
</select>
|
|
464
|
+
</label>
|
|
465
|
+
<label>SLO <input name="slo" value="p95=500ms,error=2%"></label>
|
|
466
|
+
<div class="row2">
|
|
467
|
+
<label>Start VUs <input name="start" type="number" min="1" value="10"></label>
|
|
468
|
+
<label>Max VUs <input name="max_vus" type="number" min="1" value="640"></label>
|
|
469
|
+
</div>
|
|
470
|
+
<div class="row2">
|
|
471
|
+
<label>Step duration <input name="step_duration" value="20s"></label>
|
|
472
|
+
<label>Seed users <input name="users_n" type="number" min="0" value="10"></label>
|
|
473
|
+
</div>
|
|
474
|
+
<label>Constrain (optional) <input name="constrain" placeholder="rc=2cpu/2g"></label>
|
|
475
|
+
<menu>
|
|
476
|
+
<button type="button" id="cap-cancel" class="btn">Cancel</button>
|
|
477
|
+
<button type="button" class="btn primary" id="cap-submit">Run search</button>
|
|
478
|
+
</menu>
|
|
479
|
+
</form>
|
|
480
|
+
</dialog>
|
|
481
|
+
|
|
482
|
+
|
|
483
|
+
<!-- API token. Its own dialog rather than reusing the job log, which a
|
|
484
|
+
detached background job may still be writing into. -->
|
|
485
|
+
<dialog id="pat-dialog">
|
|
486
|
+
<h2 id="pat-title">API token</h2>
|
|
487
|
+
<p class="hint">Personal Access Token with “Ignore Two Factor Authentication”. Pass both
|
|
488
|
+
headers on every API call.</p>
|
|
489
|
+
<pre id="pat-body" class="log"></pre>
|
|
490
|
+
<menu>
|
|
491
|
+
<button type="button" id="pat-copy" class="btn">Copy headers</button>
|
|
492
|
+
<button type="button" id="pat-close" class="btn primary">Close</button>
|
|
493
|
+
</menu>
|
|
494
|
+
</dialog>
|
|
495
|
+
|
|
496
|
+
<!-- API call console: the GUI's `houston api`. The response renders in place,
|
|
497
|
+
so app.js cancels the submit to keep the dialog open. method="dialog" is
|
|
498
|
+
still the right fallback: if that handler never ran, this closes the dialog
|
|
499
|
+
rather than attempting a navigation the CSP's `form-action 'none'` blocks. -->
|
|
500
|
+
<dialog id="call-dialog">
|
|
501
|
+
<form id="call-form" method="dialog">
|
|
502
|
+
<h2 id="call-title">API call</h2>
|
|
503
|
+
<p class="hint">An authenticated REST call against this workspace, as its admin —
|
|
504
|
+
the same request <code>houston api</code> makes.</p>
|
|
505
|
+
<div class="row2">
|
|
506
|
+
<label class="narrow">Method
|
|
507
|
+
<select name="method">
|
|
508
|
+
<option>GET</option><option>POST</option><option>PUT</option>
|
|
509
|
+
<option>DELETE</option><option>PATCH</option>
|
|
510
|
+
</select>
|
|
511
|
+
</label>
|
|
512
|
+
<label>Path <input name="path" value="/api/v1/me" placeholder="/api/v1/users.list"></label>
|
|
513
|
+
</div>
|
|
514
|
+
<label>JSON body (POST / PUT / PATCH)
|
|
515
|
+
<textarea name="data" rows="3" spellcheck="false"
|
|
516
|
+
placeholder='{"userId": "…", "data": {"name": "New Name"}}'></textarea></label>
|
|
517
|
+
<div class="checks">
|
|
518
|
+
<label><input type="checkbox" name="pat"> Auth with a PAT, like a customer script</label>
|
|
519
|
+
<label><input type="checkbox" name="two_fa"> Add the 2FA password header</label>
|
|
520
|
+
</div>
|
|
521
|
+
<pre id="call-out" class="log" hidden></pre>
|
|
522
|
+
<menu>
|
|
523
|
+
<button type="button" id="call-copy" class="btn">Copy response</button>
|
|
524
|
+
<button type="button" id="call-close" class="btn">Close</button>
|
|
525
|
+
<button type="submit" id="call-send" class="btn primary">Send</button>
|
|
526
|
+
</menu>
|
|
527
|
+
</form>
|
|
528
|
+
</dialog>
|
|
529
|
+
|
|
530
|
+
<!-- Doctor: the preflight report, same checks as `houston doctor` -->
|
|
531
|
+
<dialog id="doctor-dialog">
|
|
532
|
+
<h2>Environment check</h2>
|
|
533
|
+
<p class="hint">The same preflight as <code>houston doctor</code>: Docker, Compose, engine
|
|
534
|
+
kernel, registry auth, disk, connectivity and ports.</p>
|
|
535
|
+
<div id="doctor-body" class="plan"></div>
|
|
536
|
+
<menu>
|
|
537
|
+
<button type="button" id="doctor-recheck" class="btn">Re-check</button>
|
|
538
|
+
<button type="button" id="doctor-close" class="btn primary">Close</button>
|
|
539
|
+
</menu>
|
|
540
|
+
</dialog>
|
|
541
|
+
|
|
542
|
+
<!-- The edge: one Traefik serving every https name. Its own dialog rather than
|
|
543
|
+
the doctor one, whose heading, hint and Re-check button all belong to a
|
|
544
|
+
different question. -->
|
|
545
|
+
<dialog id="edge-dialog">
|
|
546
|
+
<h2>HTTPS front door</h2>
|
|
547
|
+
<p class="hint">One shared HTTPS front door (Traefik) on ports 80 and 443 for every HTTPS
|
|
548
|
+
workspace on this server. It is not a workspace: an admin manages it with
|
|
549
|
+
<code>houston edge</code> in a shell on the server.</p>
|
|
550
|
+
<div id="edge-body" class="plan"></div>
|
|
551
|
+
<menu>
|
|
552
|
+
<button type="button" id="edge-close" class="btn primary">Close</button>
|
|
553
|
+
</menu>
|
|
554
|
+
</dialog>
|
|
555
|
+
|
|
556
|
+
<!-- Set up Amazon EKS: one guided path for an admin. ① AWS on the server (the tools
|
|
557
|
+
and the identity the AWS CLI finds there; keys are never typed here), ② build a
|
|
558
|
+
cluster, or check the account for one houston built, ③ ready. Rendered by
|
|
559
|
+
clusters-tail.js, step by step. -->
|
|
560
|
+
<dialog id="eks-setup" class="wzd narrow" aria-labelledby="eks-title">
|
|
561
|
+
<form id="eks-form" method="dialog">
|
|
562
|
+
<header class="wzd-h">
|
|
563
|
+
<div><h2 id="eks-title">Set up Amazon EKS</h2>
|
|
564
|
+
<div class="wzd-steps" id="eks-steps"></div></div>
|
|
565
|
+
<button type="button" class="wzd-x" id="eks-x" aria-label="Close">✕</button>
|
|
566
|
+
</header>
|
|
567
|
+
<div class="wzd-b" id="eks-body"></div>
|
|
568
|
+
<footer class="wzd-f" id="eks-foot"></footer>
|
|
569
|
+
</form>
|
|
570
|
+
</dialog>
|
|
571
|
+
|
|
572
|
+
<!-- A cluster's public names: its DNS zone and the load balancer to point it at. -->
|
|
573
|
+
<dialog id="cluster-build" class="wiz">
|
|
574
|
+
<form id="cluster-build-form" method="dialog">
|
|
575
|
+
<h2 id="cluster-build-title">Public names</h2>
|
|
576
|
+
<div class="wizsteps" id="cluster-build-steps"></div>
|
|
577
|
+
<div id="cluster-build-body"></div>
|
|
578
|
+
<menu id="cluster-build-menu"></menu>
|
|
579
|
+
</form>
|
|
580
|
+
</dialog>
|
|
581
|
+
|
|
582
|
+
<!-- Destroying one. The name has to be typed: every other destructive control in
|
|
583
|
+
this GUI acts on something you can see on screen, and this one acts on a thing
|
|
584
|
+
that may be holding colleagues' work on machines this box has never seen. -->
|
|
585
|
+
<dialog id="cluster-delete-dialog">
|
|
586
|
+
<form id="cluster-delete-form" method="dialog">
|
|
587
|
+
<h2>Delete cluster</h2>
|
|
588
|
+
<p id="cluster-delete-what" class="banner bad"></p>
|
|
589
|
+
<div id="cluster-delete-holds" class="plan"></div>
|
|
590
|
+
<label>Type the cluster's name to confirm
|
|
591
|
+
<input name="confirm" autocomplete="off" spellcheck="false"></label>
|
|
592
|
+
<label class="toggle"><input type="checkbox" name="force">
|
|
593
|
+
Delete without reading what it holds (<code>--force</code>)</label>
|
|
594
|
+
<p class="hint" id="cluster-delete-force-hint">Force skips only that look inside, so any
|
|
595
|
+
workspaces still in the cluster go with it. It never skips the other checks: houston
|
|
596
|
+
deletes only a cluster it built, in the AWS account it is signed in to.</p>
|
|
597
|
+
<p class="hint">houston releases its load balancers before the delete, then lists
|
|
598
|
+
anything AWS still holds for this cluster.</p>
|
|
599
|
+
<menu>
|
|
600
|
+
<button type="button" id="cluster-delete-cancel" class="btn">Cancel</button>
|
|
601
|
+
<button type="submit" id="cluster-delete-go" class="btn danger" disabled>Delete it</button>
|
|
602
|
+
</menu>
|
|
603
|
+
</form>
|
|
604
|
+
</dialog>
|
|
605
|
+
|
|
606
|
+
<!-- Activity: running + recent jobs, reopenable -->
|
|
607
|
+
<!-- Activity used to live in a dialog. It is a stage view now (see openJobs);
|
|
608
|
+
only the per-job OUTPUT stays modal, because that one is a live stream you
|
|
609
|
+
open, watch and dismiss. -->
|
|
610
|
+
|
|
611
|
+
<!-- People: who may sign in, and what they may do. Admin only -- a member
|
|
612
|
+
gets a 403 from every endpoint behind it, so the button is not rendered. -->
|
|
613
|
+
<dialog id="people-dialog">
|
|
614
|
+
<h2>People</h2>
|
|
615
|
+
<p class="hint">Everyone here can sign in to this server. Roles bound the
|
|
616
|
+
<b>GUI</b> only — anyone with a shell on this server is already in the docker
|
|
617
|
+
group, so a readonly user with an ssh key is not readonly.</p>
|
|
618
|
+
<div id="people-body" class="people"></div>
|
|
619
|
+
<div class="row2" id="people-add">
|
|
620
|
+
<input id="new-user" class="input" placeholder="name" aria-label="new user name">
|
|
621
|
+
<select id="new-role" class="input" aria-label="role">
|
|
622
|
+
<option value="member">member</option>
|
|
623
|
+
<option value="readonly">readonly</option>
|
|
624
|
+
<option value="admin">admin</option>
|
|
625
|
+
</select>
|
|
626
|
+
<button id="people-add-btn" class="btn primary" type="button">Add person</button>
|
|
627
|
+
</div>
|
|
628
|
+
<p class="hint">houston generates the password and shows it once — an admin
|
|
629
|
+
who types a colleague's password also knows it, which makes every audit line
|
|
630
|
+
signed with that name deniable.</p>
|
|
631
|
+
<menu><button type="button" id="people-close" class="btn">Close</button></menu>
|
|
632
|
+
</dialog>
|
|
633
|
+
|
|
634
|
+
<!-- Your account: the sessions you have open, and the way out. Server-side
|
|
635
|
+
sessions are what make "sign out" and "sign out everywhere" possible at
|
|
636
|
+
all -- HTTP Basic had neither. -->
|
|
637
|
+
<!-- Changing your own password. POST /api/me/password has existed since
|
|
638
|
+
v0.23.0 -- role-gated, throttled like a login, ends every other session and
|
|
639
|
+
keeps this one -- and NOTHING in the browser called it. It was built and
|
|
640
|
+
unreachable; this is the two fields it was missing. -->
|
|
641
|
+
<dialog id="passwd-dialog">
|
|
642
|
+
<h2>Change your houston password</h2>
|
|
643
|
+
<p class="hint">Every other session you are signed in on ends. This one stays,
|
|
644
|
+
so you are not signed out of the tab you changed it in.</p>
|
|
645
|
+
<form id="passwd-form" method="dialog">
|
|
646
|
+
<label>Current password <input name="old" type="password" autocomplete="current-password" required></label>
|
|
647
|
+
<label>New password <input name="new" type="password" autocomplete="new-password" required></label>
|
|
648
|
+
<p class="hint">At least 12 characters. houston keeps only a scrypt hash, so
|
|
649
|
+
nobody — including an admin — can read it back.</p>
|
|
650
|
+
<p id="passwd-err" class="banner bad" hidden></p>
|
|
651
|
+
<menu>
|
|
652
|
+
<button type="button" id="passwd-cancel" class="btn">Cancel</button>
|
|
653
|
+
<button type="button" id="passwd-go" class="btn primary">Change password</button>
|
|
654
|
+
</menu>
|
|
655
|
+
</form>
|
|
656
|
+
</dialog>
|
|
657
|
+
|
|
658
|
+
<dialog id="session-dialog">
|
|
659
|
+
<h2 id="session-title">Your sessions</h2>
|
|
660
|
+
<p class="hint">Each row is a browser you have signed in from. Revoking one
|
|
661
|
+
ends it immediately on the server, not just in that browser.</p>
|
|
662
|
+
<div id="session-body" class="plan"></div>
|
|
663
|
+
<menu>
|
|
664
|
+
<button type="button" id="session-all" class="btn danger">Sign out everywhere</button>
|
|
665
|
+
<button type="button" id="session-close" class="btn primary">Close</button>
|
|
666
|
+
</menu>
|
|
667
|
+
</dialog>
|
|
668
|
+
|
|
669
|
+
<!-- Job/progress + logs dialog -->
|
|
670
|
+
<dialog id="job-dialog">
|
|
671
|
+
<h2 id="job-title">Working…</h2>
|
|
672
|
+
<pre id="job-log" class="log" aria-live="polite"></pre>
|
|
673
|
+
<menu><button id="job-stop" class="btn" hidden>Stop job</button><button id="job-close" class="btn">Close</button></menu>
|
|
674
|
+
</dialog>
|
|
675
|
+
|
|
676
|
+
<script type="module" src="js/boot.js"></script>
|
|
677
|
+
</body>
|
|
678
|
+
</html>
|