30 Commits
Author SHA1 Message Date
raucao 1b1e2fbb3d Runbook: document the deployed state and fix the NIP-11 check
The submission relay and both promotion paths are live in production, so the
runbook no longer claims that nothing has been deployed. Reframe the deployment
order and pre-go-live checks as completed, and fix the verification command:
strfry only returns the NIP-11 JSON with an Accept header, so the old
curl | jq pipeline could never work.
2026-11-18 14:31:00 +04:00
raucao ab60ae1ea8 Set nofiles in the approved-sync config
strfry raises RLIMIT_NOFILE to relay.nofiles at startup and exits if that exceeds the process hard limit. The sync config omitted nofiles, so strfry used its compiled-in default (1000000) while the systemd default here is 524288, and strfry-sync.service failed to start with:

  Unable to set NOFILES limit to 1000000, exceeds max of 524288

Set nofiles explicitly (from the production relay config, falling back to 524288, as the production template does) and extend the regression test to assert it.
2026-11-18 01:19:09 +04:00
raucao 128e9ce585 Add chef-managed member bridge (strfry router, LDAP-only)
Add kosmos_strfry::member_bridge: a strfry router stream group that subscribes to the local submission relay (ws://localhost:7778) and writes member-authored events into the production database. dir = "down" keeps it strictly one-way, and pluginDown is the new LDAP-only policy (ldap-only-policy.ts) from akkounts extras/strfry, so membership is decided per event by LDAP with no member list.

The two promotion paths (approved_sync, member_bridge) are enabled as role overrides in role[strfry_submission], not in the production environment config.

Also add a render regression test for the router config and update the runbook.

Refs raucao/marco#97.
2026-11-18 00:32:05 +04:00
raucao 5913bca004 Document the live DNS CNAME and the verified LMDB concurrency gate
submit.nostr.kosmos.org is now a CNAME to lb.kosmos.org, so the "add an
A/AAAA record" step is replaced by "verify the CNAME resolves". Also record
the LMDB concurrency test result: a strfry sync ran against the same LMDB
while the live relay served 13/13 subscriptions on the nuc's :7777 mirror.
2026-11-17 19:25:36 +04:00
raucao 511a512908 Add public nostr submission relay and approved-content sync
Add a second strfry instance and the machinery to promote moderated content
into the members relay, for raucao/marco#97.

New role[strfry_submission] and the kosmos_strfry_submission cookbook run a
separate relay (port 7778, own DB capped at a 4 GiB mapsize) fronted at
submit.nostr.kosmos.org, using the open submission write policy from akkounts
extras/strfry. It is deliberately not role[strfry], so nginx never adds it to
the members relay's _strfry upstream.

Add kosmos_strfry::approved_sync: a dedicated fail-closed sync config plus a
5-minute timer that pulls moderator-approved content from the nuc staging relay
into the members relay. The sync command URL and STAGING_RELAY_URL come from a
single attribute so the policy's byte-exact source match cannot drift.

Also add a role-scoped Node 22 install (the global Node attribute is
untouched), a proxy-scoped firewall rule, an nginx site, a runbook, and a
render regression check for the sync template.

Deployment is gated: approved_sync.enabled defaults to false, and the akkounts
policy files must be on the live branch before converging.
2026-11-17 14:23:03 +04:00
raucao fd21e09342 test-kitchen: fix Berksfiles and the rskj pin; document open tasks
- kosmos_email: add the missing Berksfile so its declared dependencies
  (hostname/unbound/postfix) resolve
- kosmos_garage: add local path deps for the internal cookbooks so
  Berkshelf stops fetching them from Supermarket
- kosmos_rsk: bump rskj to 9.0.4~<codename> (current ppa:rsksmart/rskj
  build) and update the matching InSpec assertion; suite now passes 9/9
- document the remaining suite work in doc/test-kitchen-open-tasks.md
2026-11-01 18:28:54 +04:00
raucao 470dcb82ee Migrate the Chef repo to Cinc Workstation
Cinc Workstation replaces Chef Workstation for driving knife-zero and
Test Kitchen; nodes run (or are moving to) Cinc Client.

- Pin .ruby-version to cinc-workstation
- Move knife config from .chef/ to .cinc/ (Cinc's USER_CONF_DIR) and
  update .gitignore, README, AGENTS and docs accordingly. On-node config
  now lives in /etc/cinc
- Drop the Gemfile/Gemfile.lock; install knife-zero into Cinc
  Workstation's user gem dir with `cinc gem install knife-zero`
- README: rewrite setup/usage for Cinc Workstation
- scripts/postgresql/switch_primary.sh: drop `bundle exec`
2026-11-01 18:28:44 +04:00
raucao 0405459db0 Document remaining items for hubot migration 2026-10-28 18:22:24 +04:00
raucao 9de37cde96 Update doc 2026-04-11 14:55:32 +04:00
raucao 8e11df4544 Update PG migration runbook 2026-04-10 12:49:28 +04:00
raucao 09412f69e8 Move doc 2026-04-10 08:36:54 +04:00
raucao bc3f291bd2 WIP Prepare postgres for migration by replication 2026-04-10 08:25:55 +04:00
raucao 41339c1040 Add doc for Mastodon maintenance 2025-07-27 09:17:01 +02:00
Râu Cao 9a89af0fe3 Add basic Garage doc 2022-11-25 10:56:22 +00:00
basti f7afc21f9e Use pbkdf2 for backup key derivation
Fixes a warning thrown by OpenSSL during backup runs, and makes it more
secure.
2021-11-30 13:38:34 -06:00
basti 172553ddb3 Add documentation for backups/restores 2021-11-30 12:45:52 -06:00
basti 02239dd9a8 Update ejabberd doc 2020-12-08 13:13:05 +01:00
greg a8b303af4a Fix the search command for Kosmos LDAP users 2020-09-16 11:36:29 +02:00
basti 41319fc5bc Add shell script for creating LDAP user accounts 2020-09-15 13:04:54 +02:00
basti 73e87f8f45 Improve LDAP example command
We should not log passwords in bash history files. This change will
prompt the user for the password instead.
2020-04-19 13:01:39 +02:00
greg 0a96c31e12 Add initial LDAP documentation 2019-12-06 10:54:10 +01:00
greg 339f32c957 Simplify the instructions to get the cluster secret 2019-05-28 13:05:52 +02:00
greg 21987c502e Add initial instructions for joining the IPFS cluster
Refs #4
2019-04-30 17:18:43 +02:00
basti 9ec1a8a6c0 Update ejabberd doc 2019-01-02 09:41:47 +08:00
basti 0012b73607 Update ejabberd doc 2019-01-02 09:19:29 +08:00
greg 293d1a8a8a Fix formatting 2018-10-04 18:59:30 +02:00
greg 8da7ebbef0 Add initial docs for ejabberd 2018-10-04 18:56:35 +02:00
basti d20c0cf7f6 Add note about ejabberd cert 2018-08-29 19:38:21 +08:00
basti 412c108dbc Add notes about getting LE certs using acme.sh 2018-08-28 14:31:38 +02:00
greg ee4079fa85 Initial Chef repository 2015-07-21 19:45:23 +02:00