Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 | 2x 2x 4x 16x | import Link from "next/link";
import { ArrowLeft, ShieldCheck } from "lucide-react";
import { DocsLastUpdated } from "@/components/docs/DocsLastUpdated";
import { ExternalA } from "@/components/docs/ExternalA";
import { PublishedDocCards } from "@/components/docs/PublishedDocCards";
import { docCards } from "@/lib/docs/published-docs";
import {
INSURER_REPORT_PAGE,
REPO_URL,
securityDocs,
} from "@/lib/docs/security-docs";
import { T } from "@/lib/i18n/translate";
export const metadata = {
title: "Security and Data Protection",
description:
"The security test report, threat models, the Klarbefund self-assessment and evidence, the report for health insurers and the bills of materials, published from the repository.",
};
/** The command, what it checks (a key of docsCommon) and the file it runs. */
const RUN_AGAIN = [
[
"scripts/security/generate-sbom.sh --check",
"the bills still match the lockfiles",
"scripts/security/generate-sbom.sh",
],
[
"scripts/security/scan-repo.sh",
"grype, npm audit, trivy, gitleaks, semgrep, hadolint, shellcheck",
"scripts/security/scan-repo.sh",
],
[
"scripts/security/check-hub-blackbox.sh",
"48 anonymous checks of the live hub (exits 3 off hours)",
"scripts/security/check-hub-blackbox.sh",
],
[
"cd clients/ios && swift test --filter SecurityPostureTests",
"the app's build-setting tests",
"clients/ios/Tests/SharedTests/SecurityPostureTests.swift",
],
];
export default function SecurityDocsPage() {
return (
<div className="max-w-5xl mx-auto px-6 py-12">
<Link
href="/docs"
className="inline-flex items-center gap-1 text-sm text-(--text-secondary) hover:text-(--text-primary) mb-6"
>
<ArrowLeft size={14} /> <T area="docsCommon">{"Back to Docs"}</T>
</Link>
<div className="mb-8">
<h1 className="text-3xl font-bold mb-2 inline-flex items-center gap-2">
<ShieldCheck size={28} aria-hidden="true" />{" "}
<T area="nav">{"Security and Data Protection"}</T>
</h1>
<DocsLastUpdated page="/docs/security" />
<p className="text-(--text-secondary) text-lg">
<T
area="docsCommon"
tags={{
a: <Link href="/docs/operations" className="underline" />,
r: (
<Link
href="/docs/security/security-test-report"
className="underline"
/>
),
v: (
<ExternalA
href={`${REPO_URL}/blob/main/docs/ADRs/ADR-046-vault-keeps-its-state-on-the-flexible-server.md`}
/>
),
}}
>
{
"Security and data protection are tested by the project itself with tools anyone can run on the repository, and every finding is either fixed or named as open. <r>The test of 2026-10-15</r> found ten findings, F1 to F10: after the fixes nine are closed and one is reviewed and accepted (F3, the published development default key of the local compose stack; Azure takes its keys from <v>Vault</v>). None of this is an independent penetration test or a certification. How the platform is operated for real, role by role, is the operational guideline in the <a>Operations section</a>."
}
</T>
</p>
</div>
<PublishedDocCards docs={docCards(securityDocs)} />
<section className="mb-10">
<h2 className="text-xl font-semibold mb-3">
<T area="docsCommon">{"Elsewhere"}</T>
</h2>
<ul className="text-sm space-y-2 text-(--text-secondary)">
<li>
<T
area="docsCommon"
tags={{ a: <ExternalA href={INSURER_REPORT_PAGE} /> }}
>
{
"<a>Report for health insurers, on one page</a> for a steering meeting; the long form is the published report above."
}
</T>
</li>
<li>
<T
area="docsCommon"
tags={{
a: (
<ExternalA
href={`${REPO_URL}/actions/workflows/security-scan.yml`}
/>
),
tab: (
<a
href={`${REPO_URL}/security`}
target="_blank"
rel="noopener noreferrer"
className="text-(--accent) underline"
/>
),
ts: (
<a
href={`${REPO_URL}/blob/main/.github/workflows/codeql.yml`}
target="_blank"
rel="noopener noreferrer"
className="text-(--accent) underline"
/>
),
swift: (
<a
href={`${REPO_URL}/blob/main/.github/workflows/codeql-swift.yml`}
target="_blank"
rel="noopener noreferrer"
className="text-(--accent) underline"
/>
),
}}
>
{
"<a>Security scans in CI</a>: grype over the bills and trivy over the images on every push; CodeQL for <ts>TypeScript</ts> and <swift>Swift</swift> in their own workflows; results in the <tab>Security tab</tab>."
}
</T>
</li>
<li>
<T
area="docsCommon"
tags={{
a: (
<a
href={`${REPO_URL}/blob/main/docs/ADRs/ADR-011-security-testing.md`}
target="_blank"
rel="noopener noreferrer"
className="text-(--accent) underline"
/>
),
b: (
<a
href={`${REPO_URL}/blob/main/docs/ADRs/ADR-060-the-app-locks-with-face-id-and-answers-pinning-and-jailbreak-detection.md`}
target="_blank"
rel="noopener noreferrer"
className="text-(--accent) underline"
/>
),
}}
>
{
"Decisions: <a>ADR-011</a> (the testing strategy) and <b>ADR-060</b> (the app lock; why certificate pinning and jailbreak detection were declined)."
}
</T>
</li>
</ul>
</section>
<section className="mb-4">
<h2 className="text-xl font-semibold mb-3">
<T area="docsCommon">{"Run it again"}</T>
</h2>
<div className="border border-(--border) rounded-xl overflow-x-auto">
<table className="w-full text-sm">
<tbody>
{RUN_AGAIN.map(([cmd, what, file]) => (
<tr
key={cmd}
className="border-b border-(--border) last:border-0"
>
<td className="px-4 py-2 whitespace-nowrap">
<a
href={`${REPO_URL}/blob/main/${file}`}
target="_blank"
rel="noopener noreferrer"
className="text-(--accent) underline"
>
<code className="text-xs">{cmd}</code>
</a>
</td>
<td className="px-4 py-2 text-(--text-secondary)">
<T area="docsCommon">{what}</T>
</td>
</tr>
))}
</tbody>
</table>
</div>
</section>
</div>
);
}
|