Title: Declare production host settings and data volumes in ServerType and the baseline · Issue #201 · cloudfall-dev/cloudfall · GitHub
Open Graph Title: Declare production host settings and data volumes in ServerType and the baseline · Issue #201 · cloudfall-dev/cloudfall
X Title: Declare production host settings and data volumes in ServerType and the baseline · Issue #201 · cloudfall-dev/cloudfall
Description: Problem cloudfall add server plus the bundled baseline gives an audit-compliant host, but not one ready for production workloads. Bringing up a fresh Debian 13 host recently took a project playbook on top of baseline for settings every p...
Open Graph Description: Problem cloudfall add server plus the bundled baseline gives an audit-compliant host, but not one ready for production workloads. Bringing up a fresh Debian 13 host recently took a project playbook...
X Description: Problem cloudfall add server plus the bundled baseline gives an audit-compliant host, but not one ready for production workloads. Bringing up a fresh Debian 13 host recently took a project playbook...
Opengraph URL: https://github.com/cloudfall-dev/cloudfall/issues/201
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Declare production host settings and data volumes in ServerType and the baseline","articleBody":"## Problem\n\n`cloudfall add server` plus the bundled `baseline` gives an audit-compliant host, but not one ready for production workloads. Bringing up a fresh Debian 13 host recently took a project playbook on top of `baseline` for settings every production host needs, none of which the `ServerType` can declare or `audit` can check:\n\n| Setting | Why |\n|---|---|\n| `vm.swappiness` (10 on database hosts) | at the default 60 the kernel swaps out database buffer pools; a long-running host ended with ~19 GB of database pages in swap |\n| `DefaultLimitCORE=0`, `fs.suid_dumpable=0` | core dumps fill disks and can leak secrets from process memory |\n| journald caps (`SystemMaxUse`, `MaxRetentionSec`) | package defaults scale with the filesystem; a small `/var/log` volume needs explicit limits |\n| `X11Forwarding no` | Debian ships `yes`; the key-only SSH drop-in does not touch it |\n| full upgrade after install, reboot when required | provider images lag behind the archive (78 pending updates on a fresh install); unattended-upgrades applies security updates only |\n| data volumes: LVs on the free tail of the disks, mounted by UUID with `nofail`, existing `/var/log` and `/home` moved onto them | the storage guide does this by hand; nothing declares or checks it |\n\n## Proposal\n\nExtend `ServerType` and the bundled `baseline` so these are declared, converged and audited:\n\n- `spec.kernel.sysctl`: a map rendered to `/etc/sysctl.d/`, audited by reading the live values\n- `spec.limits.core` (or a `spec.systemd.manager` block): `DefaultLimitCORE`, rendered as a `system.conf.d` drop-in\n- `spec.journal`: `maxUse`, `maxRetention`\n- `spec.ssh`: the options the baseline enforces beyond key-only (`x11Forwarding`, `maxAuthTries`, port), audited through `sshd -T`\n- `spec.updates.afterInstall: full-upgrade` with `rebootWhenRequired`, as a one-shot step of `bootstrap`\n- `spec.storage.volumes`: volume group over named partitions, LVs with size, `raid1` or `linear` and the PV they live on, filesystem, mount path and options; converged only onto empty space (no signature, never shrink), audited from `lvs` and `findmnt`. Related to the hybrid storage guide, which documents two independent VGs; one VG with RAID1 chosen per LV lets a host mirror data that has no replica yet and drop the mirror online (`lvconvert -m0`) once replicas exist\n\nThe bundled Debian 13 baseline could carry safe defaults for the first four (`swappiness` left to the type).\n\n## Notes\n\n- A project playbook implementing all of the above against `ansible-core` builtins only (no `community.general`) exists and converged a host idempotently; it can be the starting point\n- `--dry-run` did not catch a missing `/etc/systemd/system.conf.d` (Debian does not ship it); the role should create its drop-in directories\n\n\u003c!-- shipmill:agent -->","author":{"url":"https://github.com/apps/shipmill-romamo","@type":"Person","name":"shipmill-romamo"},"datePublished":"2026-11-12T17:07:19Z","url":"https://github.com/cloudfall-dev/cloudfall/issues/201"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:788ffe48-5886-b194-98d5-859091cb6598 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E230:31E3E4:253B617:30D165C:6B0550D1 |
| html-safe-nonce | a59a3c0bc5c3a3f7ac27b2c796086074c12a0df1b4143a7d7a7deb5065b2d99c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMjMwOjMxRTNFNDoyNTNCNjE3OjMwRDE2NUM6NkIwNTUwRDEiLCJ2aXNpdG9yX2lkIjoiOTA5MTUyOTA2Njc4NzcyMTQyNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b10cb68e5cb0bd50f2906821073c60f9a2f39f1fc6029f5d7c8f08dee11689a5 |
| hovercard-subject-tag | issue:6354998938 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/cloudfall-dev/cloudfall/201/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3f68b98267caf62ba652aa70bfcb99d74043822a513e6ea972c01fbc0e739bb3/cloudfall-dev/cloudfall/issues/201 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3f68b98267caf62ba652aa70bfcb99d74043822a513e6ea972c01fbc0e739bb3/cloudfall-dev/cloudfall/issues/201 |
| og:image:alt | Problem cloudfall add server plus the bundled baseline gives an audit-compliant host, but not one ready for production workloads. Bringing up a fresh Debian 13 host recently took a project playbook... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | shipmill-romamo[bot] |
| hostname | github.com |
| expected-hostname | github.com |
| None | 854d880890b5e847b3fce9d1b31f032107baeddeebad2aa379c48aa4f1451f6b |
| turbo-cache-control | no-preview |
| go-import | github.com/cloudfall-dev/cloudfall git https://github.com/cloudfall-dev/cloudfall.git |
| octolytics-dimension-user_id | 339512759 |
| octolytics-dimension-user_login | cloudfall-dev |
| octolytics-dimension-repository_id | 1360999777 |
| octolytics-dimension-repository_nwo | cloudfall-dev/cloudfall |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1360999777 |
| octolytics-dimension-repository_network_root_nwo | cloudfall-dev/cloudfall |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 220e980097d94ce616d5d11fbd5316d208e3fc93 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width