Codewerk
systemd hardening
Parses the unit and optional drop-ins following systemd.syntax(7) (sections, comments, backslash continuations, empty assignments that reset lists) and applies the setting parsers and implicit adjustments of systemd v255 (DynamicUser= sandbox, PrivateDevices=/ProtectKernel*=/ProtectClock= capability and device-ACL changes). The 81 checks with weights, ranges, descriptions and the exposure formula are taken from systemd v255 src/analyze/analyze-security.c (LGPL-2.1-or-later), system call.
POST https://code.halowerk.com/v1/systemd-hardeningInputs
| Field | Type | Required | Description |
|---|---|---|---|
| unit | string | Yes | Content of the .service unit file. |
| unit_name | string | No | Unit file name; used for DynamicUser= user names. |
| dropins | array | No |
Show full input schema
{
"type": "object",
"additionalProperties": false,
"required": [
"unit"
],
"properties": {
"unit": {
"type": "string",
"minLength": 1,
"maxLength": 200000,
"description": "Content of the .service unit file."
},
"unit_name": {
"type": "string",
"pattern": "^[A-Za-z0-9:_.\\\\@-]{1,200}\\.service$",
"default": "example.service",
"description": "Unit file name; used for DynamicUser= user names."
},
"dropins": {
"type": "array",
"maxItems": 20,
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"content"
],
"properties": {
"name": {
"type": "string",
"maxLength": 200,
"description": "Drop-in file name, e.g. 10-hardening.conf (applied in name order)."
},
"content": {
"type": "string",
"maxLength": 200000
}
}
}
}
}
}Published input example
{
"unit": "[Unit]\nDescription=Warehouse API\n\n[Service]\nExecStart=/usr/bin/warehouse-api\nDynamicUser=yes\nProtectHome=yes\nPrivateDevices=yes\n",
"unit_name": "warehouse-api.service"
}Result & documentation
Machine-readable documentation of this hub
Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.
More endpoints in this hub
- Codewerk0.003 USDC
action sha pin
POSThttps://code.halowerk.com/v1/action-sha-pinFinds every "uses: owner/repo[/path]@ref" in a GitHub Actions workflow, resolves tags (including annotated tags) and branches to the commit SHA with git ls-remote against github.com, and rewrites the line to "uses: owner/repo[/path]@<sha> #
- Codewerk0.003 USDC
actionlint
POSThttps://code.halowerk.com/v1/actionlintRuns the official statically linked actionlint 1.7.12 release binary (MIT, SHA-256 checked against the published checksums) in an isolated child process without network, with the bundled ShellCheck 0.11.0 for run: scripts (pyflakes is not a
- Codewerk0.004 USDC
api changelog
POSThttps://code.halowerk.com/v1/api-changelogCompares operations, parameters, request bodies, response codes and media types, component schemas (one property level), servers and security schemes of two documents (Swagger 2.0 is converted with swagger2openapi first; 3.0 and 3.1 are rea