Files
felhom.eu/documentation/audits/security-review-2026-10-12/scanners/gitleaks-felhom-controller.redacted.json
T

141 lines
12 KiB
JSON

{
"withheld_P1_entries": 4,
"findings": [
{
"RuleID": "generic-api-key",
"Description": "Detected a Generic API Key, potentially exposing access to various services and sensitive operations.",
"StartLine": 272,
"EndLine": 272,
"StartColumn": 21,
"EndColumn": 52,
"Secret": "REDACTED",
"File": "controller/scripts/test_gate_decoys.py",
"SymlinkFile": "",
"Commit": "074ddda352e3e03388801c47f3848e5634379a1c",
"Entropy": 3.6168747,
"Date": "2026-10-05T19:54:41Z",
"Message": "R-576: go-parity gate also judges the CALL \u2014 arity vs printf verbs, and no key glued with +\n\nChecks 4 (ARITY) and 5 (NO-CONCAT) in i18n_go_parity.py: at every message-helper call\n(MsgError/MsgErrorf/Text/Msgf/msg/msgLang/msgHU/note) whose key is a literal hu.json knows,\nthe argument count must equal the Hungarian value's printf verbs; a known key literal may\nnever be an operand of +. 485 calls judged, 0 defects today. Decoys: a dropped argument and\na key+suffix concatenation on a real producer convict; a nested-paren argument is accepted.\n\nCo-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>\nClaude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS",
"Tags": [],
"Fingerprint": "074ddda352e3e03388801c47f3848e5634379a1c:controller/scripts/test_gate_decoys.py:generic-api-key:272"
},
{
"RuleID": "generic-api-key",
"Description": "Detected a Generic API Key, potentially exposing access to various services and sensitive operations.",
"StartLine": 151,
"EndLine": 151,
"StartColumn": 16,
"EndColumn": 53,
"Secret": "REDACTED",
"File": "controller/scripts/test_gate_decoys.py",
"SymlinkFile": "",
"Commit": "612c4170242760ab56aea8f43398a7e772898051",
"Entropy": 3.6841838,
"Date": "2026-09-17T12:50:57Z",
"Message": "v0.247.0: i18n spike \u2014 the dashboard can speak English, Hungarian byte-identical\n\nMessage bundles (internal/i18n) expanded into templates before parsing, one\ntemplate set per language. Launcher, /backups, /apps/<slug> and the layout\nconverted; household language setting, POST /settings/language, ?lang= override,\nreport field. Parity test against fixtures captured from unconverted templates;\ncopy gates read templates expanded; new i18n_missing_gate.\n\nCo-Authored-By: Claude Opus 5 <noreply@anthropic.com>\nClaude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS",
"Tags": [],
"Fingerprint": "612c4170242760ab56aea8f43398a7e772898051:controller/scripts/test_gate_decoys.py:generic-api-key:151"
},
{
"RuleID": "generic-api-key",
"Description": "Detected a Generic API Key, potentially exposing access to various services and sensitive operations.",
"StartLine": 43,
"EndLine": 43,
"StartColumn": 8,
"EndColumn": 88,
"Secret": "REDACTED",
"File": "controller/internal/backup/offbox_offer_shapec_r241_test.go",
"SymlinkFile": "",
"Commit": "a491abef6c2043ff260fde5dd8a8c4be7d7456df",
"Entropy": 3.8961687,
"Date": "2026-08-07T09:33:42Z",
"Message": "R-241 part 2: the comparison the box already makes becomes the thing that offers recovery\n\nTHE FACT WAS COMPUTED EVERY CYCLE AND KEPT NOWHERE. EscrowAutoConfirmer.Reconcile\nhas compared the hub's restic_pw_sha256 against the local key on every ACK since\nSLICE 3. On the final-walk venue it logged, at 03:28:03Z and thirty-five minutes\nbefore the customer looked, \"the hub's escrow blob does not cover the CURRENT repo\npassword (hub hash 30ef574f != local 9b4a9a9d)\" - and dropped it. The recovery\nscreen, evaluating in the same process, went on asking a question that could not\nsee it.\n\nNow persisted: settings.HubEscrowKeySHA256 + HubEscrowKeyCheckedAt, recorded\nUNCONDITIONALLY in Reconcile beside RecordPresence and RecordSuperseded - same\nplace, same reason: the box that needs it most is the rebuilt one with no target,\non which every gate below returns early.\n\nOffsiteRecoveryOffer gains SHAPE (c): the hub holds a package for a key OTHER than\nthe one we are using. (a) and (b) are both proxies for that question and both have\nnow been wrong in opposite directions - (a) goes false the moment anything mints,\n(b) is unreachable while the escrow is pending.\n\nSEC 7.2, decided deliberately and stated in the code:\n - a KNOWN DIFFERENCE offers, however old the reading. Age is not gated on. Both\n sides are local; only the hub's half can be stale, and what the hub holds does\n not change without a ceremony THIS box runs, which refreshes the hash on the\n next ACK. Gating on age would make a box offline from the hub silently stop\n offering - the exact failure this session removes. CheckedAt is persisted for\n diagnosis, not as a gate.\n - an ABSENT hash falls back to (a)/(b) and does NOT offer. \"\" is the hub\n positively saying its package seals no repository password (legacy hash-less\n escrow). Nothing to compare, and offering would put a permanent screen in\n front of every legacy box.\n\nThe write damper: CheckedAt refreshes on every ack carrying a hash, but a save is\nskipped when both the hash and the UTC day are unchanged, so an idle box does not\nrewrite settings.json every fifteen minutes. It records WHEN WE LAST HEARD, not\nwhen it last changed - the R-100 distinction.\n\nTests: Scenario C (a differing key offers, with both proxies asserted false first),\nScenario D (a matching key offers nothing), fact 1 still required, shape (a) still\nworks, and both SEC 7.2 halves.\n\nRED-PROOFS, each with the mutation confirmed present in the file first:\n D) hubHash != localHash conjunct dropped -> Scenario D FAILS (a healthy box\n offered recovery forever); Scenario C still passes\n WIRING) RecordEscrowKeyHash removed from the EscrowAutoConfirmer literal in\n main.go -> TestMainWiresRecordEscrowKeyHash FAILS. This is the ships-inert\n shape: unwired, everything compiles, every test in the package passes, the\n auto-confirm still works, and shape (c) reads an empty hash forever.\n\nGreen: go build, go vet, go test ./... all pass.",
"Tags": [],
"Fingerprint": "a491abef6c2043ff260fde5dd8a8c4be7d7456df:controller/internal/backup/offbox_offer_shapec_r241_test.go:generic-api-key:43"
},
{
"RuleID": "generic-api-key",
"Description": "Detected a Generic API Key, potentially exposing access to various services and sensitive operations.",
"StartLine": 85,
"EndLine": 85,
"StartColumn": 8,
"EndColumn": 89,
"Secret": "REDACTED",
"File": "REPORT.md",
"SymlinkFile": "",
"Commit": "3d3b4496f37708269b73f15772a66f6218f5f9ba",
"Entropy": 3.794148,
"Date": "2026-08-07T10:23:55Z",
"Message": "REPORT.md \u2014 R-241 fixed, deployed, live-validated on both demo boxes\n\nScenario A's live result first: on demo-hp in the rebuilt shape, no key was\nminted on the real start-up offsite-apply path, and the hub received the state\nit reports instead - offsite.state=awaiting_recovery_key with enabled:false.\nKey restored byte-identical afterwards.\n\nIncludes Q4's seven rows mapped to the three states, the SEC 7.2 choice and\nwhy, SEC 7.3's answer on the new-code button, every changed Hungarian string\nquoted, all nine red-proofs with what was mutated, the R-245 reasoning, and\nthree observations noticed but not acted on.",
"Tags": [],
"Fingerprint": "3d3b4496f37708269b73f15772a66f6218f5f9ba:REPORT.md:generic-api-key:85"
},
{
"RuleID": "generic-api-key",
"Description": "Detected a Generic API Key, potentially exposing access to various services and sensitive operations.",
"StartLine": 86,
"EndLine": 86,
"StartColumn": 2,
"EndColumn": 89,
"Secret": "REDACTED",
"File": "REPORT.md",
"SymlinkFile": "",
"Commit": "3d3b4496f37708269b73f15772a66f6218f5f9ba",
"Entropy": 3.794148,
"Date": "2026-08-07T10:23:55Z",
"Message": "REPORT.md \u2014 R-241 fixed, deployed, live-validated on both demo boxes\n\nScenario A's live result first: on demo-hp in the rebuilt shape, no key was\nminted on the real start-up offsite-apply path, and the hub received the state\nit reports instead - offsite.state=awaiting_recovery_key with enabled:false.\nKey restored byte-identical afterwards.\n\nIncludes Q4's seven rows mapped to the three states, the SEC 7.2 choice and\nwhy, SEC 7.3's answer on the new-code button, every changed Hungarian string\nquoted, all nine red-proofs with what was mutated, the R-245 reasoning, and\nthree observations noticed but not acted on.",
"Tags": [],
"Fingerprint": "3d3b4496f37708269b73f15772a66f6218f5f9ba:REPORT.md:generic-api-key:86"
},
{
"RuleID": "generic-api-key",
"Description": "Detected a Generic API Key, potentially exposing access to various services and sensitive operations.",
"StartLine": 258,
"EndLine": 258,
"StartColumn": 9,
"EndColumn": 34,
"Secret": "REDACTED",
"File": "controller/internal/stacks/samba_test.go",
"SymlinkFile": "",
"Commit": "0dcbea90b2b9fc2dc9194e6ae6b2db1796d77c1b",
"Entropy": 3.640224,
"Date": "2026-07-18T09:30:04Z",
"Message": "feat(samba): lifecycle \u2014 ensureSamba/ReconcileSamba/password/disable (R-7 slice 1, Part 2)\n\nensureSamba joins EnsureBaseStack after filebrowser, gated on SMB.Enabled\n(cloudflared conditional precedent); reconcile is idempotent (unchanged config +\nrunning container = ZERO compose calls, asserted via seam). Atomic tmp+fsync+\nrename config writes. Password applied via smbpasswd on STDIN (never argv/log/\nsettings). Disable = compose down, volumes + folders KEPT. samba added to\nIsProtectedStack in code (controller.yaml is golden-generated and predates it),\nwhich also makes the app-backup loops correctly skip it.",
"Tags": [],
"Fingerprint": "0dcbea90b2b9fc2dc9194e6ae6b2db1796d77c1b:controller/internal/stacks/samba_test.go:generic-api-key:258"
},
{
"RuleID": "curl-auth-header",
"Description": "Discovered a potential authorization token provided in a curl command header, which could compromise the curl accessed resource.",
"StartLine": 1413,
"EndLine": 1416,
"StartColumn": 2,
"EndColumn": 97,
"Secret": "REDACTED",
"File": "TASK2.md",
"SymlinkFile": "",
"Commit": "6713df2186aa87b5ad0862d678b5f5ddb1cc349f",
"Entropy": 3.8710182,
"Date": "2026-02-19T12:16:46Z",
"Message": "v0.15.5: Disaster recovery \u2014 Hub-based infra backup, auto-mount, restore UI\n\nComplete DR implementation (TASK2.md Phases 1-4):\n- Hub infra-backup push/pull endpoints (controller.yaml, disk layout, stacks)\n- Fresh-deployment detection pulls config from Hub, auto-mounts drives by UUID\n- Full-page restore UI with drive status, app table, sequential restore\n- docker-setup.sh shows DR instructions when customer_id is configured\n\nNew files: disk_layout.go, restore_scan.go, restore_app_linux.go,\nrestore_drives_linux.go, infra_backup.go, infra_pull.go,\nhandler_restore.go, restore.html\n\nCo-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>",
"Tags": [],
"Fingerprint": "6713df2186aa87b5ad0862d678b5f5ddb1cc349f:TASK2.md:curl-auth-header:1413"
},
{
"RuleID": "generic-api-key",
"Description": "Detected a Generic API Key, potentially exposing access to various services and sensitive operations.",
"StartLine": 1638,
"EndLine": 1638,
"StartColumn": 4,
"EndColumn": 78,
"Secret": "REDACTED",
"File": "scripts/docker-setup.sh",
"SymlinkFile": "",
"Commit": "cdaa13711843fc9bb9bccf31b784ee68a4108966",
"Entropy": 3.8710182,
"Date": "2026-02-19T12:33:39Z",
"Message": "docker-setup.sh v5.0: Config wizard, controller deployment, FileBrowser rewrite\n\nComplete TASK.md implementation:\n- \u00a71: Version bump to 5.0.0, updated banner and header comment\n- \u00a73+\u00a74: Remove --cf-tunnel-token and --hdd-path CLI options (deprecated)\n- \u00a75: Rewrite install_filebrowser() with auto drive discovery from /mnt/\n- \u00a76: New install_controller() deploys felhom-controller with compose\n- \u00a77: Interactive run_config_wizard() generates controller.yaml\n- \u00a79: install_cloudflare_tunnel() reads from wizard variable\n- \u00a710: New execution order: infra \u2192 wizard \u2192 tunnel \u2192 filebrowser \u2192 controller\n- \u00a711: Fix print_summary() \u2014 controller URL, hub status, fix CUSTOMER_ID bug\n- \u00a712: Update print_help() for new workflow\n\nCo-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>",
"Tags": [],
"Fingerprint": "cdaa13711843fc9bb9bccf31b784ee68a4108966:scripts/docker-setup.sh:generic-api-key:1638"
}
]
}