@rocket.chat/houston 0.27.0-next.3 → 2.1.8
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 +108 -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 +669 -0
- package/data/docs/kubernetes.md +138 -0
- package/data/docs/troubleshooting.md +193 -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 +168 -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 +39 -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 +3678 -0
- package/dist/cli/help.js +183 -0
- package/dist/cli/index.js +15 -0
- package/dist/cli/perf.js +810 -0
- package/dist/cli/render.js +254 -0
- package/dist/cli/serve.js +858 -0
- package/dist/cli/spec-data.js +2593 -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 +344 -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 +691 -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 +1533 -0
- package/dist/core/lifecycle/create-k8s.js +939 -0
- package/dist/core/lifecycle/destroy.js +339 -0
- package/dist/core/lifecycle/inspect.js +635 -0
- package/dist/core/lifecycle/naming.js +298 -0
- package/dist/core/lifecycle/notes.js +726 -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 +753 -0
- package/dist/core/lifecycle/request.js +525 -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 +995 -0
- package/dist/core/migrate.js +612 -0
- package/dist/core/monitor.js +494 -0
- package/dist/core/postready.js +969 -0
- package/dist/core/promote.js +804 -0
- package/dist/core/rcapi.js +1285 -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 +868 -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 +369 -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 +296 -0
- package/dist/perf/k6.js +235 -0
- package/dist/perf/mongoprof.js +171 -0
- package/dist/perf/rcmetrics.js +178 -0
- package/dist/perf/report.js +386 -0
- package/dist/perf/resources.js +224 -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 +67 -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,16 @@
|
|
|
1
|
+
name: airgapped
|
|
2
|
+
description: >-
|
|
3
|
+
Simulates an air-gapped workspace with no Rocket.Chat Cloud connectivity. The
|
|
4
|
+
Cloud URL and workspace credentials point at non-routable placeholders, so
|
|
5
|
+
cloud sync, registration and marketplace calls never reach out. Use to
|
|
6
|
+
reproduce offline / disconnected-workspace behaviour.
|
|
7
|
+
requires_license: false
|
|
8
|
+
env:
|
|
9
|
+
# Fake cloud endpoint + pre-set workspace credentials => the workspace looks
|
|
10
|
+
# registered and never phones home to cloud.rocket.chat.
|
|
11
|
+
OVERWRITE_SETTING_Cloud_Url: https://airgapped-workspace.rocket.chat
|
|
12
|
+
OVERWRITE_SETTING_Cloud_Workspace_Client_Id: airgapped
|
|
13
|
+
OVERWRITE_SETTING_Cloud_Workspace_Client_Secret: airgapped
|
|
14
|
+
depends_on: []
|
|
15
|
+
services: {}
|
|
16
|
+
rocketchat: {}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
%PDF-1.4
|
|
2
|
+
1 0 obj
|
|
3
|
+
<< /Type /Catalog /Pages 2 0 R >>
|
|
4
|
+
endobj
|
|
5
|
+
2 0 obj
|
|
6
|
+
<< /Type /Pages /Kids [3 0 R] /Count 1 >>
|
|
7
|
+
endobj
|
|
8
|
+
3 0 obj
|
|
9
|
+
<< /Type /Page /Parent 2 0 R /MediaBox [0 0 300 180] /Contents 4 0 R /Resources << /Font << /F1 5 0 R >> >> >>
|
|
10
|
+
endobj
|
|
11
|
+
4 0 obj
|
|
12
|
+
<< /Length 58 >>
|
|
13
|
+
stream
|
|
14
|
+
BT /F1 18 Tf 20 100 Td (INC-4821 deployment report) Tj ET
|
|
15
|
+
endstream
|
|
16
|
+
endobj
|
|
17
|
+
5 0 obj
|
|
18
|
+
<< /Type /Font /Subtype /Type1 /BaseFont /Helvetica >>
|
|
19
|
+
endobj
|
|
20
|
+
xref
|
|
21
|
+
0 6
|
|
22
|
+
0000000000 65535 f
|
|
23
|
+
0000000009 00000 n
|
|
24
|
+
0000000058 00000 n
|
|
25
|
+
0000000115 00000 n
|
|
26
|
+
0000000241 00000 n
|
|
27
|
+
0000000348 00000 n
|
|
28
|
+
trailer
|
|
29
|
+
<< /Size 6 /Root 1 0 R >>
|
|
30
|
+
startxref
|
|
31
|
+
418
|
|
32
|
+
%%EOF
|
|
@@ -0,0 +1,399 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: houston
|
|
3
|
+
description: Use when someone asks to create, spin up, boot or start a Rocket.Chat workspace or server, on a given version ("a workspace on 7.4.1") or a pull request's build, or when a task needs one running - reproduce a support ticket or reported behaviour, check whether a bug is version-specific, or compare two versions; try a feature or setting, test an integration (LDAP, SAML, OIDC, email, S3/MinIO, livechat, E2EE, Voice/SIP/PBX, HTTPS, air-gapped), demo or train with sample data, or call its REST API; on Docker, Kubernetes or EKS. Also to list, inspect, read the logs of, back up, restore, upgrade or tear down those workspaces. Drives the `houston` CLI, which runs a version-matched Rocket.Chat and MongoDB.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# houston
|
|
7
|
+
|
|
8
|
+
houston boots a version-matched Rocket.Chat paired with a compatible MongoDB, on
|
|
9
|
+
Docker Compose or Kubernetes, with optional backing services (LDAP, SAML/OIDC,
|
|
10
|
+
email, S3, several instances) and sample data. Each workspace is disposable: made for
|
|
11
|
+
one purpose, then removed.
|
|
12
|
+
|
|
13
|
+
**When it helps:** whenever seeing Rocket.Chat run matters. Reproducing a support ticket
|
|
14
|
+
or a reported behaviour on the exact version it was seen on, checking whether a bug is
|
|
15
|
+
version-specific, comparing two versions, trying a feature or a setting, testing an
|
|
16
|
+
integration, checking a pull request's build, or a demo or training workspace.
|
|
17
|
+
|
|
18
|
+
**When it does not:** a question the documentation or the source code answers needs no
|
|
19
|
+
workspace, so answer it without booting one. houston only manages the workspaces it
|
|
20
|
+
creates; it cannot reach a Rocket.Chat deployment somebody else runs.
|
|
21
|
+
|
|
22
|
+
If `houston` is not found, it is not installed: `npm install -g @rocket.chat/houston` installs it
|
|
23
|
+
(Node 24.10.0 or later), and Docker with `docker compose` v2 must be running. Then
|
|
24
|
+
`houston doctor` names anything else a boot would trip on. Its guides ship in the
|
|
25
|
+
package's `data/docs/` (`$(npm root -g)/@rocket.chat/houston/data/docs/`).
|
|
26
|
+
|
|
27
|
+
## Requests and the commands they mean
|
|
28
|
+
|
|
29
|
+
`<n>` is the workspace's name: what you pass to `--name` when you create it, and
|
|
30
|
+
`data.name` from the `up` reply when you report it (see [Naming](#naming)). Add `--json` where the
|
|
31
|
+
command takes it and read the last line (see [The output contract](#the-output-contract)).
|
|
32
|
+
`houston capabilities` always prints JSON and takes no `--json`.
|
|
33
|
+
|
|
34
|
+
| The person asks | Run | Then |
|
|
35
|
+
|---|---|---|
|
|
36
|
+
| a workspace on 7.4.1 | `houston up --version 7.4.1 --name <n> --wait --json` | `houston info --name <n> --json`, and report back |
|
|
37
|
+
| the same with LDAP | `houston up --version 7.4.1 --name <n>-ldap --preset ldap --wait --json` | a **new name**: an existing one is reused as it was |
|
|
38
|
+
| SAML, OIDC, email, S3, livechat, offline | `--preset saml`, `oidc`, `email`, `s3_minio`, `livechat` or `airgapped` on `up` | `oidc`: ask the person to add `127.0.0.1 keycloak` to `/etc/hosts` |
|
|
39
|
+
| encrypted conversations | `houston up --version 8.8.0 --name <n> --preset e2ee --wait --json` | the person signs in as `e2e-alice` and `e2e-bob` in two browser profiles ([E2EE](#e2ee)) |
|
|
40
|
+
| Voice calls | `houston up --version 8.7.0 --name <n> --preset voice --license <file> --wait --json` | the person signs in as `voice-alice` and `voice-bob` and calls; `--set sip_integration=on` adds the SIP integration ([Voice](#voice)) |
|
|
41
|
+
| an integration or a webhook | `houston up --version 8.6.3 --name <n> --preset webhooks --wait --json` | `houston info --name <n> --json` gives the inbox URL and the incoming hook; the inbox UI is on the machine running houston only; `--set capture=all` repoints a restored dump's outgoing integrations at the inbox |
|
|
42
|
+
| a pull request's build, or develop | `houston up --version pr-42617 --name <n> --wait --json` | a CI build, not a partial version ([Versions](#versions)) |
|
|
43
|
+
| HTTPS on this machine | `houston up --version 8.5.1 --name <n> --https --wait --json` | for OAuth, SAML and anything that needs a secure origin; the person runs `houston trust-ca` once first ([HTTPS](#https)) |
|
|
44
|
+
| HTTPS for a phone or another machine | `houston up --version 8.5.1 --name <n> --domain <host> --email <address> --wait --json` | ask for the name; it must already point at this machine ([HTTPS](#https)) |
|
|
45
|
+
| a specific MongoDB version too | `houston up --version 7.4.1 --mongo 6.0 --name <n> --wait --json` | only when the request names one |
|
|
46
|
+
| several Rocket.Chat instances | `houston up --version 7.4.1 --name <n> --deployment multi-instance --replicas 3 --wait --json` | Docker only |
|
|
47
|
+
| put some data in it | `houston seed --name <n> --profile standard --verify-seed` | exit 0 means the readback matched ([Sample data](#sample-data)) |
|
|
48
|
+
| 50k users, a huge room | `houston seed --name <n> --scale users=50000,messages=800000@general` | undo with `houston seed --name <n> --clear-scale`; Docker only |
|
|
49
|
+
| what's running | `houston list --json` | `data.repros[]`: `name`, `owner`, `rc_version`, `state`, `links[0].url`; every workspace on the machine |
|
|
50
|
+
| show the logs | `houston logs --name <n> --tail 200` | never `-f`: it does not return |
|
|
51
|
+
| is it up yet | `houston ready --name <n> --json` | one call waits up to `--timeout` seconds (300); on exit 5 read `houston logs --name <n> --tail 200` before asking again |
|
|
52
|
+
| upgrade it to 8.0.0 | `houston upgrade --name <n> --to 8.0.0 --dry-run`, then without `--dry-run` | it must be running; if the dry-run refuses, stop and tell the person what it said, otherwise go ahead; it backs up first; `houston upgrade --name <n> --rollback` undoes it; a version needing another MongoDB major is refused |
|
|
53
|
+
| back it up | `houston backup --name <n> --label "<why>"` | `houston backups --name <n>` lists the bundles |
|
|
54
|
+
| restore a bundle | `houston restore <bundle> --new` | only `.rcbak` bundles `houston backup` made; restoring in place replaces data: ask first |
|
|
55
|
+
| change a setting | `houston api --name <n> --2fa POST /api/v1/settings/<Id> -d '{"value":<v>}'` | or `houston env --name <n> --setting <Id>=<v>` on Docker |
|
|
56
|
+
| call the REST API | `houston api --name <n> GET /api/v1/me` | `--pat` calls it as a personal access token would; `houston token --name <n>` prints headers for curl |
|
|
57
|
+
| import a settings export | `houston config-import <file> --name <n> --dry-run`, then without `--dry-run` | report what was skipped |
|
|
58
|
+
| compare 7.4.1 and 8.0.0 | two `up`s with different names, one after the other | report both, remove both |
|
|
59
|
+
| pause it, resume it | `houston stop --name <n>`, `houston start --name <n>` | |
|
|
60
|
+
| tear it down | `houston down --name <n> --volumes --yes --json` | only workspaces you created; backup bundles in `~/.houston/backups/` are kept |
|
|
61
|
+
| which MongoDB goes with a version | `houston versions 7.4.1` | |
|
|
62
|
+
| what clusters there are, and their cost | `houston cluster overview --json` | the safe read: every cluster, its state, cost a day, reminder date and next step; it changes nothing and buys nothing |
|
|
63
|
+
|
|
64
|
+
### Checking how a version behaves
|
|
65
|
+
|
|
66
|
+
For a support ticket or reported behaviour, a bug that may be version-specific, a feature
|
|
67
|
+
to try, or a pull request to check:
|
|
68
|
+
|
|
69
|
+
1. **Take the facts from the request:** the full Rocket.Chat version, and the MongoDB
|
|
70
|
+
version, deployment (several instances, microservices, Kubernetes) and sign-in method
|
|
71
|
+
only when the request names them. Without a full version, ask ([Versions](#versions)).
|
|
72
|
+
2. **Boot the smallest match:** one `up` with a name that says what it is for, only the
|
|
73
|
+
presets the behaviour involves, and `--seed --seed-profile standard` when the steps
|
|
74
|
+
need rooms, users or messages.
|
|
75
|
+
3. **Run the steps.** In a browser that is the person's part: give them the URL and the
|
|
76
|
+
logins. Over the REST API you can do it yourself with `houston api`.
|
|
77
|
+
4. **Report what was observed:** say a behaviour happens on 7.4.1 only when it was seen
|
|
78
|
+
on that workspace; otherwise say it was not seen there, and what was tried. Attach the
|
|
79
|
+
record ([The record to share](#the-record-to-share)) and the `houston logs` lines that
|
|
80
|
+
show it.
|
|
81
|
+
5. **Narrow it by version** when the person needs to know where a behaviour started or
|
|
82
|
+
whether it is fixed: the last version reported good and the first reported bad, under different
|
|
83
|
+
names; for a fix, its pull-request build or the release it ships in. Boot them one after
|
|
84
|
+
the other, and bisect between releases only when the person asks: each boot takes
|
|
85
|
+
minutes and about 1.1 GB.
|
|
86
|
+
6. **Clean up** as [Tear it down](#tear-it-down) says.
|
|
87
|
+
|
|
88
|
+
### Naming
|
|
89
|
+
|
|
90
|
+
- **Always pass `--name`**, one that says what the workspace is for: an issue or
|
|
91
|
+
pull-request id when there is one (`--name pr-42617`, `--name issue-1234`), otherwise
|
|
92
|
+
`rc` plus the version with dashes, plus the preset: `rc7-4-1-ldap`.
|
|
93
|
+
- Names are lowercased, and anything outside `a-z`, `0-9` and `-` becomes `-`, up to
|
|
94
|
+
64 characters. With accounts on the machine, houston puts the owner (`HOUSTON_USER`)
|
|
95
|
+
in front: `lucy-issue-1234`. Later commands accept the name you typed as well, and
|
|
96
|
+
`data.name` from the `up` reply is the name to report. Build a new name (`<n>-ldap`)
|
|
97
|
+
from the name you chose, not from `data.name`, or the owner prefix is applied twice.
|
|
98
|
+
- **An existing name is reused exactly as it was.** A different version, preset, port,
|
|
99
|
+
`--set` or other flag is ignored, with a `VERSION_IGNORED_ON_REUSE` warning in the reply
|
|
100
|
+
naming each. A new preset needs a
|
|
101
|
+
new name; a new version means `upgrade`.
|
|
102
|
+
|
|
103
|
+
### Versions
|
|
104
|
+
|
|
105
|
+
**Never boot a partial version.** "7.4" is not a release: it boots a `7.4` image tag
|
|
106
|
+
that may not be the patch that was meant. Ask for the full version, or run
|
|
107
|
+
`houston versions 7.4.1`: `resolved via : releases.rocket.chat` is a real release, and
|
|
108
|
+
`map (no such release)` means ask the person. `versions` confirms a version you have; it
|
|
109
|
+
cannot find the right patch for you. The same applies to `upgrade --to`.
|
|
110
|
+
|
|
111
|
+
**A CI build is named, not partial:** `--version develop` or `--version pr-<number>` (either
|
|
112
|
+
with `-fips` or `-cov`) boots that build from `ghcr.io/rocketchat/rocket.chat`, and
|
|
113
|
+
`houston versions pr-42617` shows the release it is recorded as and its MongoDB. It needs
|
|
114
|
+
the network; offline, `up` stops and names the way round.
|
|
115
|
+
|
|
116
|
+
### What to tell the person afterwards
|
|
117
|
+
|
|
118
|
+
From `houston info --name <n> --json`:
|
|
119
|
+
|
|
120
|
+
- the URL: `data.links[0].url`;
|
|
121
|
+
- the admin login: `data.login.user` and `data.login.password`. It is `admin` /
|
|
122
|
+
`admin123` only for a workspace on loopback; one with `--domain` or a wider `--bind`
|
|
123
|
+
gets a generated password, so always read it;
|
|
124
|
+
- a preset's own logins and consoles, from `data.notes` (`ldap`, `saml` and `oidc` users
|
|
125
|
+
are `user1` / `user1`);
|
|
126
|
+
- the Rocket.Chat and MongoDB versions it runs (`data.rc_version`, `data.mongo_tag`);
|
|
127
|
+
- that it is still running, and the command that removes it.
|
|
128
|
+
|
|
129
|
+
### Ask a person first
|
|
130
|
+
|
|
131
|
+
- anything that touches a cloud cluster: `cluster create`, `cluster delete`,
|
|
132
|
+
`cluster keep` (it moves the date a cluster is meant to go by), `cluster share` (it
|
|
133
|
+
grants somebody access in AWS and in the cluster), `up` with `--context` naming a
|
|
134
|
+
cloud cluster, or `up --runtime kubernetes` without `--context`
|
|
135
|
+
when `houston doctor --json` names a cloud cluster as the one it would use. If a task
|
|
136
|
+
needs EKS and no cluster exists, say so and ask; never create one. A local Kubernetes
|
|
137
|
+
workspace is a stand-in only if the person agrees;
|
|
138
|
+
- `--bind` beyond `127.0.0.1`, or `houston config set bind_host`;
|
|
139
|
+
- `--reg-token`: a registration token is a real licence, never paste one into an issue,
|
|
140
|
+
a ticket or a chat;
|
|
141
|
+
- `down --volumes`, `prune`, or an in-place `restore` of a workspace you did not create.
|
|
142
|
+
`down --volumes`, `prune` and `cluster delete` ask for confirmation; pass `--yes` only
|
|
143
|
+
once the person has agreed, or for a workspace you started for your own checks;
|
|
144
|
+
- stopping or removing a workspace the person asked for, even one you created, for instance
|
|
145
|
+
to free a port. There is none to free for a second workspace with the same `ldap`,
|
|
146
|
+
`saml`, `oidc`, `email`, `s3_minio`, `livechat` or `webhooks` preset: its side service gets
|
|
147
|
+
the next free port, and `houston info` gives its addresses. Two `voice` workspaces with
|
|
148
|
+
`sip_integration=on` clash on their RTP ports, whose numbers phones dial: give the second
|
|
149
|
+
its own range with `--set rtp_ports=21000-21046` rather than removing the first. Only one
|
|
150
|
+
with `pbx=on` can run per machine;
|
|
151
|
+
- exit 6: show `error.gate.approve_with` to the person, never run it yourself;
|
|
152
|
+
- `houston trust-ca`, or editing `/etc/hosts`.
|
|
153
|
+
|
|
154
|
+
## Three standing rules
|
|
155
|
+
|
|
156
|
+
1. **Read `houston capabilities` first.** It is JSON, needs no container engine,
|
|
157
|
+
and is the authority for *this build* on which commands exist, which accept
|
|
158
|
+
`--json`, which stream progress, what the error codes are and what each exit
|
|
159
|
+
code means. Do not assume a flag exists because it did in another version.
|
|
160
|
+
2. **Branch on the exit code and `error.code`, never on prose.** Messages get
|
|
161
|
+
reworded between releases; codes do not.
|
|
162
|
+
- `1` internal — an unhandled failure. There is still an envelope on stdout;
|
|
163
|
+
the stack trace is on stderr. Retrying unchanged will not help.
|
|
164
|
+
- `2` usage — fix the call; retrying unchanged will not help.
|
|
165
|
+
- `3` preflight — the environment is not usable. Run `houston doctor --json`.
|
|
166
|
+
- `4` not found — no such workspace.
|
|
167
|
+
- `5` not ready — from `ready` or `up --wait`, it is still starting: poll again.
|
|
168
|
+
From `down --volumes`, it is still there: read the warning, do not retry.
|
|
169
|
+
- `6` gate — an action needs a human decision houston is not authorised to make.
|
|
170
|
+
Never retryable and never auto-approvable: `error.gate.approve_with` is what to ask a
|
|
171
|
+
PERSON to run, not something you may run yourself.
|
|
172
|
+
- `7` create failed — known dead. Stop; do not retry in a loop.
|
|
173
|
+
- `8` conflict — the name or port is taken. Pick another.
|
|
174
|
+
|
|
175
|
+
`capabilities.exit_codes` is the whole table, and `capabilities.error_codes` says
|
|
176
|
+
which are advertised.
|
|
177
|
+
3. **Never import houston's internals and never scrape human output.**
|
|
178
|
+
Use `--json` on the commands that have it — `capabilities.commands[].json` says
|
|
179
|
+
which, and it is a minority, not all of them: `capabilities`, `cluster`, `doctor`, `down`, `info`, `list`, `ready`, `skill install`, `skill status`, `up` (`capabilities` prints
|
|
180
|
+
JSON without the flag). For the rest (`seed`, `logs`,
|
|
181
|
+
`env`, `backup`, `restore`, `upgrade`, `prune`, `tls-status`, …) the **exit code** is
|
|
182
|
+
the machine-readable part. stdout is the document; anything on stderr is for a
|
|
183
|
+
person.
|
|
184
|
+
|
|
185
|
+
## The output contract
|
|
186
|
+
|
|
187
|
+
Every `--json` reply is one envelope:
|
|
188
|
+
|
|
189
|
+
```json
|
|
190
|
+
{"schema":"houston.info.v1","contract":2,"houston_version":"2.1.8",
|
|
191
|
+
"generated_at":"...","ok":true,"data":{...},"warnings":[],"error":null}
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
Only `ready` and `up` stream: NDJSON `houston.event.v1` progress lines first, then exactly
|
|
195
|
+
one envelope as the **last line**. Read to the end of the output and parse the last
|
|
196
|
+
line, which is the right way to read every reply. A failure is the same envelope with
|
|
197
|
+
`ok: false` and `error.code` set; there is always exactly one, even when the failure
|
|
198
|
+
was unexpected (its stack trace goes to stderr, never stdout).
|
|
199
|
+
|
|
200
|
+
`contract` is the wire generation: if you do not recognise it, refuse rather than
|
|
201
|
+
guess. New keys may appear in `data` or `warnings`; ignore ones you do not know.
|
|
202
|
+
`down --volumes --json` needs `--yes`, because there is nobody to prompt.
|
|
203
|
+
|
|
204
|
+
## Details by topic
|
|
205
|
+
|
|
206
|
+
### Presets
|
|
207
|
+
|
|
208
|
+
`capabilities.presets` lists what this build has: `airgapped`, `default`, `e2ee`, `email`, `ldap`, `livechat`, `oidc`, `s3_minio`, `saml`, `voice`, `webhooks`. A preset starts the side
|
|
209
|
+
service, wires Rocket.Chat to it and turns the feature on, so it is ready when you
|
|
210
|
+
arrive: an `ldap` workspace has users, an `email` one catches every message Rocket.Chat
|
|
211
|
+
sends, a `webhooks` one catches every outgoing integration call and Omnichannel webhook
|
|
212
|
+
in a web inbox, `airgapped` has no route to Rocket.Chat Cloud.
|
|
213
|
+
`houston presets` prints each
|
|
214
|
+
preset's `--set` parameters; `--set users=130000` on `ldap` is the large-directory case.
|
|
215
|
+
|
|
216
|
+
- `--preset` takes a **name from that list, never a path**.
|
|
217
|
+
- **Presets combine:** repeat `--preset` (`--preset ldap --preset email`). Qualify a shared
|
|
218
|
+
parameter with the preset's name (`--set ldap.users=500`). `saml` and `oidc` cannot be
|
|
219
|
+
combined; a conflict between two presets' settings is refused until `--setting`/`--env`
|
|
220
|
+
says which.
|
|
221
|
+
- Several instances is `--deployment multi-instance`, not a preset; a preset combines with
|
|
222
|
+
it. `--preset multi-instance` is the old spelling; it still works, and warns.
|
|
223
|
+
|
|
224
|
+
### E2EE
|
|
225
|
+
|
|
226
|
+
The `e2ee` preset only sets Rocket.Chat's E2E settings and creates `e2e-alice`, `e2e-bob`
|
|
227
|
+
and `e2e-carol` (password = username); keys and E2EE passwords are made in each person's
|
|
228
|
+
browser, so you cannot send or read encrypted messages yourself. Options:
|
|
229
|
+
`policy=optional|default|enforced` (`enforced` needs 8.8.0 or later and is refused on an
|
|
230
|
+
older version), `files=on|off`, `allow_unencrypted=on|off`, `users=on|off`. The browser
|
|
231
|
+
must reach Rocket.Chat on localhost or over HTTPS. `data/docs/e2ee.md` has the rest.
|
|
232
|
+
|
|
233
|
+
### Voice
|
|
234
|
+
|
|
235
|
+
The `voice` preset creates `voice-alice` and `voice-bob` (password = username) for
|
|
236
|
+
Rocket.Chat Voice calls. It needs Rocket.Chat 8.0.0 or later and a licence with the Voice
|
|
237
|
+
add-on: without `--license` the workspace boots with a warning and no call button.
|
|
238
|
+
`--set sip_integration=on` (Docker only) adds Drachtio and FreeSWITCH wired to Rocket.Chat
|
|
239
|
+
and gives the users Voice call extensions 1001 and 1002; dialling 123 reaches FreeSWITCH's echo
|
|
240
|
+
test. For browsers on other machines add `--set voip_domain=<this machine's host or IP>`:
|
|
241
|
+
houston then opens the call ports on every address (browsers need UDP to it; through a tunnel a
|
|
242
|
+
SIP call is answered but keeps ringing, with no audio). `--set pbx=on` (it needs
|
|
243
|
+
`sip_integration=on`) adds a lab PBX (Asterisk) on
|
|
244
|
+
FreeSWITCH's external profile, with desk phones, ring groups and editable dialplans
|
|
245
|
+
(`--set freeswitch_dialplans=edit`), for testing PBX integrations. The option names are the
|
|
246
|
+
words Rocket.Chat's settings and rocketchat-compose use, and the GUI labels them the same;
|
|
247
|
+
2.1.3's `sip` and `fs_dialplan` still work.
|
|
248
|
+
The browser must reach Rocket.Chat on localhost or over HTTPS. `data/docs/voice.md` has the
|
|
249
|
+
rest.
|
|
250
|
+
|
|
251
|
+
### Sample data
|
|
252
|
+
|
|
253
|
+
A profile contains every kind of room, because what needs checking is rarely in a public
|
|
254
|
+
channel alone: channels, teams, discussions, direct messages, threads and reactions.
|
|
255
|
+
`standard` is 25 rooms, 431 content messages and 162 thread replies across 20 users.
|
|
256
|
+
All profiles include group DMs, files, profiles, reactions, pins, stars and custom emoji.
|
|
257
|
+
Repeat `--scenario room-states` (read-only, broadcast and archived rooms) and
|
|
258
|
+
`--scenario permissions` (owner, moderator, muted and outside users) when those matter.
|
|
259
|
+
Add `--history-days 180` for synthetic historical dates on a managed database; creation
|
|
260
|
+
uses `--seed-scenario` and `--seed-history-days` alongside `--seed`. Interrupted runs
|
|
261
|
+
resume with the same options or `ready`; uncertain uploads refuse duplicate replay.
|
|
262
|
+
|
|
263
|
+
Seeding reads everything back and checks it against the plan. **Treat a false, null or
|
|
264
|
+
missing result as unproven**; do not infer success from a 2xx write.
|
|
265
|
+
`--verify-seed` makes a mismatch fail the command. `seed` has no `--json`, so its exit
|
|
266
|
+
code is the answer; afterwards `houston info --name <n> --json` shows `data.seed.ok`.
|
|
267
|
+
Seeded users are `alice`, `bob` and so on, each with the username as the password.
|
|
268
|
+
|
|
269
|
+
### Where it runs
|
|
270
|
+
|
|
271
|
+
`--runtime` is `docker` (default) or `kubernetes`; `--deployment` is `monolith` or
|
|
272
|
+
`multi-instance` on Docker, `microservices` (default) or `monolith` on Kubernetes.
|
|
273
|
+
`capabilities.runtimes` lists the legal pairs, and an illegal one is refused before
|
|
274
|
+
anything is created.
|
|
275
|
+
|
|
276
|
+
On Kubernetes: `--context <name>` picks a cluster (and implies `--runtime kubernetes`),
|
|
277
|
+
and the workspace records it, so later commands for that workspace go there. Without
|
|
278
|
+
one, houston uses its own kind cluster if kind is installed, or else the cluster
|
|
279
|
+
`kubectl` points at. `houston doctor --json` names the cluster and what it provides
|
|
280
|
+
(`storage`, `ingress`, `loadbalancer`, `metrics`); do not infer those from the
|
|
281
|
+
distribution's name.
|
|
282
|
+
|
|
283
|
+
### What Kubernetes refuses, and why
|
|
284
|
+
|
|
285
|
+
Each refusal names the reason and the alternative:
|
|
286
|
+
|
|
287
|
+
- `--fresh`: it means delete this workspace's data, and the Kubernetes path keeps the
|
|
288
|
+
volume. `houston down --name <n> --volumes` does delete it.
|
|
289
|
+
- any `env` change: an environment variable is a Helm value there. Use `houston api` for
|
|
290
|
+
a setting.
|
|
291
|
+
- `seed --scale`: Docker only. `houston seed` works on both.
|
|
292
|
+
- `voice` with `sip_integration=on` or `pbx=on`: Drachtio, FreeSWITCH and the PBX run on Docker
|
|
293
|
+
only. `--preset voice` alone, calls between users, works on both.
|
|
294
|
+
|
|
295
|
+
`stats` needs metrics-server and says how to install it. Everything else works on both
|
|
296
|
+
runtimes.
|
|
297
|
+
|
|
298
|
+
### HTTPS
|
|
299
|
+
|
|
300
|
+
On Docker, one shared proxy (the edge) holds ports 80 and 443 for every HTTPS name on the
|
|
301
|
+
machine. Rocket.Chat's `ROOT_URL` becomes the HTTPS URL, which is what OAuth and SAML
|
|
302
|
+
redirects need, and a preset's own pages (Mailpit, Keycloak, MinIO, phpLDAPadmin) are
|
|
303
|
+
served on the same name.
|
|
304
|
+
|
|
305
|
+
- `--https` is houston's own certificate authority, with no domain and no internet:
|
|
306
|
+
`https://<name>.houston.localhost`, reachable from this machine only. A browser trusts
|
|
307
|
+
it only after `houston trust-ca`, which the person runs once per machine.
|
|
308
|
+
- `--domain <host>` gets a Let's Encrypt certificate (`--email` the first time; it is
|
|
309
|
+
remembered). The name must already point at this machine and port 443 must be
|
|
310
|
+
reachable. It is the answer for a phone or another machine, and the admin password is
|
|
311
|
+
then generated.
|
|
312
|
+
|
|
313
|
+
On Kubernetes, with `--domain`, cert-manager obtains a Let's Encrypt certificate and TLS
|
|
314
|
+
ends inside the cluster. Right after a create, a placeholder
|
|
315
|
+
certificate means cert-manager has not issued yet, which is normal for a few minutes:
|
|
316
|
+
`houston tls-status --name <n>` re-checks (it has no `--json`; exit 1 naming the
|
|
317
|
+
ingress controller's placeholder, with the workspace up, is "still coming"). `--https`,
|
|
318
|
+
houston's own CA, is refused on a cluster that is not on this machine; `--domain` is the
|
|
319
|
+
answer there.
|
|
320
|
+
|
|
321
|
+
### Cloud clusters cost money, and `up` never creates one
|
|
322
|
+
|
|
323
|
+
`houston cluster create` takes about twenty minutes and **bills from the first minute
|
|
324
|
+
whether or not anything runs in it**; only `houston cluster delete` stops it. `up`
|
|
325
|
+
cannot create one, structurally. Before saying nothing is running, run
|
|
326
|
+
`houston cluster list --json`: it checks every enabled region, and a region listed under
|
|
327
|
+
`unreadable` is NOT covered by the answer. The whole procedure is `houston cluster guide`.
|
|
328
|
+
|
|
329
|
+
### The record to share
|
|
330
|
+
|
|
331
|
+
`houston info --name <n> --json` is the record to attach to an issue, a ticket or a pull
|
|
332
|
+
request: version, MongoDB pairing,
|
|
333
|
+
runtime and deployment, links, and on Kubernetes the namespace and the pods, with the
|
|
334
|
+
reason any cannot start. Credentials in its env listing are masked, but `data.login`
|
|
335
|
+
carries the admin password, generated for any workspace reachable beyond loopback. Drop it
|
|
336
|
+
before attaching: `houston info --name <n> --json | jq 'del(.data.login.password)' > record.json`.
|
|
337
|
+
|
|
338
|
+
### Tear it down
|
|
339
|
+
|
|
340
|
+
**Tear down by default.** A workspace costs about 1.1 GB on Docker and more on
|
|
341
|
+
Kubernetes, `up` refuses when the machine lacks room, and too many at once can run a
|
|
342
|
+
machine out of memory. Remove the workspaces you start for your own checks. A workspace
|
|
343
|
+
the person asked for is theirs: leave it running, say so, and give them the command that
|
|
344
|
+
removes it.
|
|
345
|
+
|
|
346
|
+
`--volumes` deletes the data and the record and cannot be undone. Without it the data
|
|
347
|
+
is kept, and the same `up` brings the workspace back.
|
|
348
|
+
|
|
349
|
+
`down --volumes` can **refuse** with exit 5 and a warning, keeping the record, so
|
|
350
|
+
`list` still showing the workspace is correct. That 5 means "it is still there, read the
|
|
351
|
+
warning", not "poll again". The usual cause is a Kubernetes namespace that will not
|
|
352
|
+
finish terminating.
|
|
353
|
+
|
|
354
|
+
On Kubernetes, `down` leaves the shared cluster running; `houston prune` removes it only
|
|
355
|
+
if houston created it and no houston namespace remains.
|
|
356
|
+
|
|
357
|
+
## When the envelope is not enough
|
|
358
|
+
|
|
359
|
+
Every command appends to `$HOUSTON_HOME/logs/houston.log` (default
|
|
360
|
+
`~/.houston/logs/houston.log`): one JSON object per line, credentials dropped. Each
|
|
361
|
+
line carries a `run` id for one command, so `grep '"run":"<id>"'` on that file shows it
|
|
362
|
+
from start to end. Use it when `error.code` says what failed and you need when and in
|
|
363
|
+
what order. It is for reading, not a contract.
|
|
364
|
+
|
|
365
|
+
## Things that will bite you
|
|
366
|
+
|
|
367
|
+
- **The first run is slow.** Images have to be pulled. Do not treat the first duration
|
|
368
|
+
as typical or kill it early.
|
|
369
|
+
- **`up` can refuse for capacity.** That is a preflight, not a hiccup: free something
|
|
370
|
+
rather than retrying.
|
|
371
|
+
- **Version pairs matter.** houston picks the MongoDB for a Rocket.Chat version. Do not
|
|
372
|
+
override it unless the request names one.
|
|
373
|
+
- **Enterprise features need a licence.** A workspace boots without one, so Enterprise-only
|
|
374
|
+
features such as LDAP background sync are missing and their settings answer 400. Say so
|
|
375
|
+
and ask the person for a licence file: `up --license <file>` boots with it, and one can be
|
|
376
|
+
added later in Administration → Subscription, so set up the rest meanwhile.
|
|
377
|
+
- **houston does not load an outside database.** `restore` takes only the `.rcbak`
|
|
378
|
+
bundles `houston backup` makes, and a mongodump from another server is not one. Say so,
|
|
379
|
+
and ask before loading someone's data any other way. For a settings export,
|
|
380
|
+
`config-import` takes a support dump's `*-settings.json`.
|
|
381
|
+
- **Everything binds `127.0.0.1`** unless told otherwise, because workspaces use weak,
|
|
382
|
+
well-known credentials. Widening that is a decision for a person.
|
|
383
|
+
|
|
384
|
+
## If this skill is stale
|
|
385
|
+
|
|
386
|
+
`capabilities.skill.current` is false when a copy that exists does not match the
|
|
387
|
+
build, and `houston doctor` names the copy. `capabilities.skill.hosts` names each one and
|
|
388
|
+
its scope:
|
|
389
|
+
|
|
390
|
+
- `user` — `~/.claude/skills/houston/` and `~/.agents/skills/houston/`.
|
|
391
|
+
`houston skill install` writes both, and refuses to overwrite a copy you have edited
|
|
392
|
+
unless you pass `--force`. Upgrading houston does not update them: run
|
|
393
|
+
`houston skill install` after each upgrade.
|
|
394
|
+
- `project` — a `.claude/skills/houston/SKILL.md` in the directory you are working in
|
|
395
|
+
or one above it. Claude Code reads a user copy in preference to a project copy of the
|
|
396
|
+
same name, so even inside a checkout a stale user copy is the one in play.
|
|
397
|
+
|
|
398
|
+
Prefer `capabilities` over this file wherever the two disagree. That one is
|
|
399
|
+
generated from the build; this is prose, and prose goes stale.
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# Rocket.Chat -> MongoDB fallback map for houston.
|
|
2
|
+
#
|
|
3
|
+
# PRIMARY resolution is a live lookup against releases.rocket.chat/<v>/info
|
|
4
|
+
# (see src/lib/versions.ts). This file is only the OFFLINE FALLBACK, used when that
|
|
5
|
+
# endpoint is unreachable, or for old releases that predate its
|
|
6
|
+
# `compatibleMongoVersions` field.
|
|
7
|
+
#
|
|
8
|
+
# `supports` lists every MongoDB a range runs on, where its note states them: an upgrade keeps
|
|
9
|
+
# a MongoDB the target still runs on rather than demanding a major move. Absent means the
|
|
10
|
+
# paired `mongo` alone.
|
|
11
|
+
#
|
|
12
|
+
# Only the MongoDB *tag* is stored per RC range; flavor / shell / oplog are
|
|
13
|
+
# derived in code (src/lib/versions.ts) from the RC and Mongo majors:
|
|
14
|
+
# - mongo_flavor = "official" if MONGO major >= 8 else "bitnami-legacy"
|
|
15
|
+
# - mongo_shell = "mongosh" if Mongo major >= 5 else "mongo" (official only)
|
|
16
|
+
# - oplog = RC major < 8 (MONGO_OPLOG_URL; deprecated in 8.x)
|
|
17
|
+
#
|
|
18
|
+
# Constraints are version specifiers such as >=7.0,<8 (comma = AND); first match wins, newest first.
|
|
19
|
+
|
|
20
|
+
default_rc_image: registry.rocket.chat/rocketchat/rocket.chat
|
|
21
|
+
|
|
22
|
+
rules:
|
|
23
|
+
- rc: ">=8.2.0"
|
|
24
|
+
mongo: "8.0"
|
|
25
|
+
note: "RC 8.2+ -> MongoDB 8.0 (per releases.rocket.chat)."
|
|
26
|
+
- rc: ">=8.0.0,<8.2.0"
|
|
27
|
+
mongo: "8.2"
|
|
28
|
+
note: "RC 8.0/8.1 -> MongoDB 8.2 (per releases.rocket.chat)."
|
|
29
|
+
- rc: ">=7.13.0,<8.0.0"
|
|
30
|
+
mongo: "8.0"
|
|
31
|
+
note: "RC 7.13 adds MongoDB 8 (5/6/7/8 per releases.rocket.chat); 8.0 chosen, as online."
|
|
32
|
+
supports: ["5.0", "6.0", "7.0", "8.0"]
|
|
33
|
+
- rc: ">=7.0.0,<8.0.0"
|
|
34
|
+
mongo: "7.0"
|
|
35
|
+
note: "RC 7.x supports 5.0/6.0/7.0; 7.0 chosen."
|
|
36
|
+
supports: ["5.0", "6.0", "7.0"]
|
|
37
|
+
- rc: ">=6.0.0,<7.0.0"
|
|
38
|
+
mongo: "6.0"
|
|
39
|
+
note: "RC 6.x supports 4.4/5.0/6.0; 6.0 recommended."
|
|
40
|
+
supports: ["4.4", "5.0", "6.0"]
|
|
41
|
+
- rc: ">=5.0.0,<6.0.0"
|
|
42
|
+
mongo: "5.0"
|
|
43
|
+
note: "RC 5.x supports 4.2/4.4/5.0."
|
|
44
|
+
supports: ["4.2", "4.4", "5.0"]
|
|
45
|
+
- rc: ">=4.0.0,<5.0.0"
|
|
46
|
+
mongo: "4.4"
|
|
47
|
+
note: "RC 4.x supports 3.6-4.4; needs MONGO_OPLOG_URL."
|
|
48
|
+
supports: ["3.6", "4.0", "4.2", "4.4"]
|
|
49
|
+
- rc: ">=3.0.0,<4.0.0"
|
|
50
|
+
mongo: "4.0"
|
|
51
|
+
note: "RC 3.x supports 3.4-4.0; needs MONGO_OPLOG_URL."
|
|
52
|
+
supports: ["3.4", "3.6", "4.0"]
|
|
53
|
+
- rc: "<3.0.0"
|
|
54
|
+
mongo: "3.6"
|
|
55
|
+
note: "Legacy RC (<3.0); best-effort."
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
<!-- http://wiki.freeswitch.org/wiki/Dialplan_XML -->
|
|
2
|
+
<include>
|
|
3
|
+
<context name="drachtio">
|
|
4
|
+
|
|
5
|
+
<extension name="unloop">
|
|
6
|
+
<condition field="${unroll_loops}" expression="^true$"/>
|
|
7
|
+
<condition field="${sip_looped_call}" expression="^true$">
|
|
8
|
+
<action application="deflect" data="${destination_number}"/>
|
|
9
|
+
</condition>
|
|
10
|
+
</extension>
|
|
11
|
+
|
|
12
|
+
<extension name="call_debug" continue="true">
|
|
13
|
+
<condition field="${call_debug}" expression="^true$" break="never">
|
|
14
|
+
<action application="info"/>
|
|
15
|
+
</condition>
|
|
16
|
+
</extension>
|
|
17
|
+
|
|
18
|
+
<extension name="internal_extensions">
|
|
19
|
+
<condition field="destination_number" expression="${internal_number_expression}">
|
|
20
|
+
<action application="set" data="dialed_extension=$1"/>
|
|
21
|
+
<action application="set" data="hangup_after_bridge=true"/>
|
|
22
|
+
<action application="set" data="continue_on_fail=false"/>
|
|
23
|
+
<action application="export" data="media_webrtc=true"/>
|
|
24
|
+
|
|
25
|
+
<action application="bridge" data="sofia/internal/${dialed_extension}@${domain_name}"/>
|
|
26
|
+
<action application="answer"/>
|
|
27
|
+
</condition>
|
|
28
|
+
</extension>
|
|
29
|
+
|
|
30
|
+
<!-- The rules below will be uncommented automatically when external calls are enabled -->
|
|
31
|
+
<!-- -->
|
|
32
|
+
<extension name="External_Numbers">
|
|
33
|
+
<condition field="destination_number" expression="${external_number_expression}">
|
|
34
|
+
<action application="set" data="dialed_extension=$1"/>
|
|
35
|
+
<action application="set" data="call_timeout=30"/>
|
|
36
|
+
<action application="set" data="hangup_after_bridge=true"/>
|
|
37
|
+
<action application="set" data="continue_on_fail=false"/>
|
|
38
|
+
<action application="set" data="effective_caller_id_number=${sip_external_outgoing_caller_id_number}"/>
|
|
39
|
+
<action application="bridge" data="sofia/external/${dialed_extension}@${external_calls_domain}"/>
|
|
40
|
+
<action application="answer"/>
|
|
41
|
+
</condition>
|
|
42
|
+
</extension>
|
|
43
|
+
<!-- -->
|
|
44
|
+
|
|
45
|
+
<extension name="echo">
|
|
46
|
+
<condition field="destination_number" expression="^(123|echo)$">
|
|
47
|
+
<action application="answer"/>
|
|
48
|
+
<action application="echo" data=""/>
|
|
49
|
+
</condition>
|
|
50
|
+
</extension>
|
|
51
|
+
</context>
|
|
52
|
+
</include>
|