Commit graph

21 commits

Author SHA1 Message Date
s8n
ca6830fe25 lp: audit trail for default-group essentials.* + homestead.user grant
YOU500 + other default-group players couldn't use /sethome /balance
/list /hs etc — commands ran but Essentials/Homestead returned
permission-denied (perm absent on default group), denial appearing
silent client-side. Granted 17 essentials perms + 1 homestead.user
perm via RCON. Verified by YOU500 in chat: list/balance/sethome work.

JSON export attached for audit trail (H2 DB is gitignored).
2026-05-07 18:53:42 +01:00
s8n
d25b3d2e0d docs: chat plugin research (ChatChat + VentureChat)
Carbon viewer-context bug: <luckperms_prefix> resolves against viewer
not sender. Researched two open-source alternatives.

Both fix the bug. ChatChat (HelpChat fork) renders per-recipient with
PlaceholderAPI.setPlaceholders(sender, ...) + Kyorifier converts legacy
& codes to MM. VentureChat resolves PAPI once vs sender, splits packets
via ProtocolLib.

Concerns:
- ChatChat: 0 GitHub releases, last commit 2025-04-02, apiVersion 1.21.4,
  uses deprecated AsyncPlayerChatEvent
- VentureChat: built for 1.21.8, open issues #154/#156/#157 report
  1.21.10+ breakage with no maintainer response 4+ months

Both verdicts: cautious recommend. Operator decision pending player
input + migration plan synthesis.
2026-05-07 18:53:13 +01:00
s8n
4c16cebb2b backup: phase 1 + phase 2 scripts; daily script repaired and deployed
Repairs the orphaned synapse-signing-key block at scripts/backup.sh
lines 119-122 that was exiting the script under set -e before the
Minecraft block could run, leaving 5 of the last 7 days without a
world backup and zero usable snapshots after 7-day retention.

Phase 1 (deployed today to /opt/docker/backup.sh on nullstone):
- Repaired script — orphan block removed, MC arm wrapped so failures
  in one tar don't kill the run
- tar exit code 1 ("file changed as we read it") now treated as
  success on the live MC world; spark profiler tmp file noise
  silenced via --ignore-failed-read --warning=no-file-changed
- Plugin DBs (homestead, AuthMe, CoreProtect, LuckPerms) and configs
  now backed up alongside the world
- Sentinel /opt/backups/.last-success stamped only when the world
  arm succeeds — gives outside monitors a single mtime to alert on
- Manually verified end-to-end: 12G world tarball, 492M plugins,
  279M dbs, 14 config files, sentinel updated. Pre-fix script saved
  at /opt/docker/backup.sh.bak-20260507-pre-phase1.

Phase 2 (scripts in repo, deployment pending operator sudo):
- scripts/restic-backup-playerdata.sh — Class A 5-min restic snapshots
  of playerdata/, stats/, advancements/, plugin DBs, LuckPerms;
  rcon save-all flush before snapshot; tag-scoped retention
- scripts/restic-init.sh — one-time bootstrap (root-only) for
  /etc/mc-backup.{env,pw} + repo init at /home/user/restic/
- scripts/systemd/mc-backup-playerdata.{service,timer} — 5-min timer
  with hardening (ProtectSystem=strict, ReadOnlyPaths, etc)
- docs/RUNBOOK-BACKUP-RESTORE.md updated with both phases'
  deployment steps and the operator-action checklist

Off-host mirror to onyx (Phase 4) and class B/C/D world snapshots
(Phase 3) are still TODO — see BACKUP-STRATEGY.md §11 phase plan.
2026-05-07 18:29:30 +01:00
s8n
96702116ee docs+pat: fix default-rank /help and Homestead claim flow
PAT whitelist was missing region/rg/hs/homestead/unclaim, blocking the
only entry-points to Homestead's claim flow for default players.
Added them to ProAntiTab/storage.yml on the live box and reloaded.

EssentialsX shadows /help by load-order, hiding the branded HelpCommand
page behind hide-permissionless-help. Added a help -> helpcommand:help
alias to commands.yml. Takes effect on next restart.

Lands plugin's jar is not installed (only its config dir remains);
docs explain why /lands references in HelpCommand and PAT are dead.

Adds:
- docs/DEFAULT-RANK-COMMANDS-2026-05-07.md   diagnosis + fix log
- docs/PLAYER-SMOKE-TEST.md                  regression checklist for
                                             YOU500 as the test rig
- scripts/test-default-perms.sh              snapshot dump for diffing
                                             before/after config edits
2026-05-07 18:19:26 +01:00
s8n
2d9c8db2dc audit P0 quick-wins: H2 container hardening, H3 Xmx tuning, H1 staged
H2 (F-06): cap_drop ALL + minimum cap_add (CHOWN, SETUID, SETGID, FOWNER),
no-new-privileges, deploy.resources.limits.pids=4096. compose config valid.
DAC_OVERRIDE deliberately omitted; re-add only if entrypoint chown fails.

H3 (F-05): Xmx 16384M -> 14336M, MEMORY_SIZE 16G -> 14G. Leaves ~3.5G
headroom for off-heap inside the unchanged 18G container limit. Host has
no spare RAM to raise the cap (other workloads).

H1 (F-02): server-wide gamerule keepInventory true planned but RCON path
for gamerule is broken (F-16) so it's deferred to operator in-game on next
op session. Documented in INTERIM-MITIGATIONS.md with a clear revert
trigger (when AuthLimbo F1+F2+F4 ship).

H4: pre-edit compose backed up to docker-compose.yml.bak-2026-05-07-before-H2H3
(deployed and repo). Restore commands in INTERIM-MITIGATIONS.md.

Live restart deferred: 2 players online (s8n actively restoring YOU500's
gear via /give). H2/H3 go live on next compose recreate.
2026-05-07 17:51:58 +01:00
s8n
a1cc3940cf docs: 2026-05-07 incident audit + backup strategy
Player YOU500 lost full inventory to AuthLimbo void-death at 17:13:39.
Investigation revealed deployed /opt/docker/backup.sh is an 88-line stub
missing the Minecraft block; last successful world backup 2026-05-02
(already pruned). No recoverable .dat exists.

Files:
- AUDIT-2026-05-07.md — server-side findings F-01..F-06 (P0 backups,
  no-keepInventory, AuthLimbo silent failure, chunk preload race,
  Xmx > container headroom, container hardening gaps)
- BACKUP-HUNT-2026-05-07.md — exhaustive backup scan; only 6-week-old
  archive at _archive/minecraft-old-2026-04-27.tar.gz
- BACKUP-STRATEGY.md — restic-based plan; 5min/hourly/daily classes,
  off-host to onyx via Tailscale, monthly drill
- CROSS-REFERENCE-2026-05-07.md — repo+doc landing map; flags
  pre-existing infra/STATE.md backup-broken note + HA-CLUSTER restic
  draft to extend rather than duplicate
- docs/RUNBOOK-BACKUP-RESTORE.md — operator runbook for .dat restore,
  full-world restore, host-loss restore, drill log
2026-05-07 17:33:24 +01:00
s8n-ru
909eb7bbd6 proantitab: allow lp/luckperms in global; deny essentials.motd default
Defensive belt-and-suspenders for "no /help hint on join":
1. motd.txt already emptied (commit 7e7d18e)
2. LP: 'lp group default permission set essentials.motd false' applied
   live (h2 db updated at 18:35). Default group can no longer trigger
   on-join motd even if motd.txt gets refilled later.

ProAntiTab storage.yml: add lp + luckperms to global allow-list so the
deny-perm command itself can run via rcon (whitelist mode was blocking).

Note: LP h2 storage isn't tracked in repo (.empty-103450 placeholder
files only). Live server is source of truth for LP state.
2026-05-04 18:37:53 +01:00
s8n-ru
a3033df950 authme: send help hint in login.success (welcome.txt is dead)
welcome.txt isn't read by current AuthMe — Settings.useWelcomeMessage
key is absent from config and the file was empty. The post-login
message is actually login.success in messages_en.yml, which was set
to '' (silenced).

- messages_en.yml: login.success now multi-line via \n escape:
    "successfully logged in" + "type /help for a list of commands"
- welcome.txt: emptied (unused)

Live reloaded via authme reload.
2026-05-04 18:29:45 +01:00
s8n-ru
7e7d18e836 move /help hint from on-join motd to post-login welcome
Players are still in AuthLimbo when motd fires on join, so the hint
scrolls past while they type /register or /login. Move it into AuthMe
welcome.txt which fires after successful login.

- Essentials/motd.txt: emptied (hint moved out)
- AuthMe/welcome.txt: appended "type /help for a list of commands"
  below the existing "successfully logged in" line

Live: applied via docker exec + essentials/authme reload.
2026-05-04 18:24:53 +01:00
s8n-ru
69fdea58d7 purpur: silence advancement announcements
- purpur.yml: broadcasts.advancement.only-broadcast-to-affected-player
  false -> true. Player still sees own advancement, no global chat spam.
- ProAntiTab storage.yml: add gamerule/execute to global allow-list
  (vanilla gamerule still blocked by Brigadier even from datapacks —
  switched to Purpur broadcast option as workaround).
- ProAntiTab config.yml: auto-lowercase-commands disabled (was
  toggled while debugging gamerule failure; harmless either way).

Synced from /opt/docker/minecraft live, applied via purpur reload.
2026-05-04 16:11:54 +01:00
s8n-ru
c63d210a29 commands: align help/aliases + drop register confirm
- HelpCommand: /region -> /lands (Lands plugin, not WorldGuard)
- commands.yml: add pm -> essentials:msg alias (matches help text)
- ProAntiTab storage: drop dead tpa/tpahere whitelist entries
  (already disabled at alias layer in commands.yml)
- AuthMe: secondArg CONFIRMATION -> NONE
  single-pass /register; chat already echoes input
2026-05-04 15:50:18 +01:00
s8n-ru
98102fa09f docs: add VIBE + RULES — server philosophy + enforcement 2026-05-02 04:05:37 +01:00
s8n-ru
5a22f45580 gitignore: exclude LuckPerms binary db files 2026-05-01 11:45:14 +01:00
s8n-ru
c2974ff599 live config snapshot: shop + auction + ranks + tab restyle
- Add EzShop + AuctionHouse plugin configs
- ProAntiTab whitelist now includes /shop /ah /balance /msg etc
- TAB groups.yml: customtabname=&7%player%, prefix/suffix no trailing space
- TAB config.yml: yellow-number=&e%statistic_minutes_played%
  (with trailing space), header=racked.ru, footer=tps/ping/coords/etc
- LP groups recreated to match OG: adventurer/settler/lord/baron/
  viscount/earl/marquess/duke (prefix); dev/moderator/admin/owner
  (suffix). Owner inherits duke. s8n + YOU500 opped.
- Login bug squashed via custom auth-limbo plugin (separate repo)
2026-05-01 11:44:19 +01:00
s8n-ru
b1db453a85 chat: deep rebrand to racked.ru palette + prefix
22 plugins audited, 14 rebranded, 21 files changed. Locks player-facing
chat to monochrome + &e yellow accent with universal prefix
&8[&fracked.ru&8]&r — strips every plugin-name leak (AuthMeReloaded,
[Lands], [Homestead], [SkinsRestorer], [TAB], Grim », [ProAntiTab],
upstream Discord pitches).

Tier-1 surfaces:
- AuthMe welcome.txt: 1-line branded login (was "AuthMeReloaded
  protection!"); ~108 messages recoloured
- MiniMOTD: dead 1.16.2 config.yml deleted (salvos.ddns.net + joke
  MOTDs); main.conf already on-brand
- HelpCommand: full /help recolour, &a/&c labels purged
- ComfyWhitelist: kick screen redesigned to "apply at racked.ru"
- LPC chat-format: banned &l removed (every chat line)

Tier-2 prefix sweep across TAB, GrimAC, ProAntiTab, CoreProtect,
SkinsRestorer, MarriageMaster, Homestead, UltimateTimber.

Plugin folder rename: RackedLimbo → AuthLimbo (matches 2026-04-30
plugin rename + docker-compose update in 6487ada).

Lands lang (~6,975 lines), Homestead lang (~645 lines), and
jar-locale plugins (Multiverse, WorldEdit, FAWE, LuckPerms,
SkinsRestorer prefix) deferred — see docs/REBRAND_2026-04-30.md.

Adds canonical reference: docs/RACKED_BRAND.md (palette, wordmark,
templates, validation checklist).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-01 10:40:28 +01:00
s8n-ru
5d87e9f75b License: switch to AGPL-3.0-or-later
Was Unlicense (public domain). Match auth-limbo plugin's AGPL-3.0
choice for consistency across racked.ru's MC stack.
2026-04-30 19:32:06 +01:00
s8n-ru
6487adaf71 compose: REMOVE_OLD_MODS_EXCLUDE -> AuthLimbo*.jar (plugin renamed) 2026-04-30 19:19:29 +01:00
s8n-ru
8efd007b6e gitignore: skip SkinsRestorer/legacy 2026-04-30 18:43:34 +01:00
s8n-ru
eeae6b1e60 Merge branch 'main' of https://github.com/s8n-ru/minecraft-server 2026-04-30 18:35:13 +01:00
s8n-ru
0dad38e02e Initial commit: racked.ru Minecraft server config snapshot
Captures live config state of nullstone Purpur 1.21.11 server:
- docker-compose.yml (itzg/minecraft-server image, MODRINTH_PROJECTS + PLUGINS lists)
- All plugin configs under live-server/plugins/ (no DBs, no jars, no world data)
- Server core: bukkit.yml, spigot.yml, purpur.yml, paper-global.yml, paper-world-defaults.yml, server.properties

Excluded via .gitignore:
- World data (world/, world_nether/, world_the_end/, auth_limbo/)
- Sensitive: AuthMe DB (password hashes), Lands DB, CoreProtect DB, Essentials userdata
- Jars (auto-fetched), logs, caches, .paper-remapped
2026-04-30 18:33:38 +01:00
s8n.ru
31e15a801e Initial commit 2026-04-27 19:07:32 +01:00