From 85131ef9eb630552ec2562f95c99d7193caa48be Mon Sep 17 00:00:00 2001 From: Teal Bauer Date: Fri, 27 Nov 2026 15:56:17 +0100 Subject: [PATCH 1/2] security: add SECURITY.md and machine-readable security.txt (RFC 9116) Closes #619. Adds .github/SECURITY.md and apps/frontend/public/.well-known/security.txt pointing to security@baergpt.berlin (configured by the maintainers) and https://www.baergpt.berlin/terms-of-use/ (section 6.3). After deploying, verify https://www.baergpt.berlin/.well-known/security.txt returns text/plain rather than the SPA shell. --- .github/SECURITY.md | 40 +++++++++++++++++++ apps/frontend/public/.well-known/security.txt | 5 +++ 2 files changed, 45 insertions(+) create mode 100644 .github/SECURITY.md create mode 100644 apps/frontend/public/.well-known/security.txt diff --git a/.github/SECURITY.md b/.github/SECURITY.md new file mode 100644 index 000000000..6827c9d31 --- /dev/null +++ b/.github/SECURITY.md @@ -0,0 +1,40 @@ +# Sicherheitshinweise + +## Eine Schwachstelle melden + +Bitte melde mutmaßliche Sicherheitslücken per Mail an `security@baergpt.berlin` und eröffne dafür kein öffentliches Issue. + +Hilfreich für die Bearbeitung sind: + +- Beschreibung des Problems und der möglichen Auswirkung +- Betroffene Komponente (Frontend, Admin-Panel, Backend, Supabase) und URL +- Schritte zur Reproduktion oder ein Proof of Concept +- Falls vorhanden: ein Vorschlag zur Behebung + +Wir melden uns innerhalb von 5 Werktagen zurück. Gib uns bitte angemessen Zeit, den Fehler zu beheben, bevor du ihn veröffentlichst. + +## Geltungsbereich + +Dieser Hinweis gilt für `www.baergpt.berlin`, `admin.baergpt.berlin`, `hilfe.baergpt.berlin` und die Backend-API. + +Bitte vermeide bei Tests: + +- Tests gegen Produktionsdaten +- automatisierte Scanner mit hohem Volumen +- Zugriffe auf Daten, die dir nicht gehören + +Für Tests in einer eigenen Umgebung beschreibt `README_DEV.md` das lokale Setup. + +## Nicht abgedeckt + +- Meldungen, die ein bereits kompromittiertes Konto oder Endgerät voraussetzen +- Fehlende HTTP-Sicherheitsheader ohne nachgewiesene Auswirkung +- Denial of Service durch Ressourcenerschöpfung + +## Kontakt + +Maschinenlesbare Kontaktinformationen: +[https://www.baergpt.berlin/.well-known/security.txt](https://www.baergpt.berlin/.well-known/security.txt) + +Hinweise zur Meldepflicht stehen in den Nutzungsbedingungen (§ 6.3): +[https://www.baergpt.berlin/terms-of-use/](https://www.baergpt.berlin/terms-of-use/) diff --git a/apps/frontend/public/.well-known/security.txt b/apps/frontend/public/.well-known/security.txt new file mode 100644 index 000000000..769801335 --- /dev/null +++ b/apps/frontend/public/.well-known/security.txt @@ -0,0 +1,5 @@ +Contact: mailto:security@baergpt.berlin +Expires: 2027-11-30T23:59:59.000Z +Canonical: https://www.baergpt.berlin/.well-known/security.txt +Policy: https://www.baergpt.berlin/terms-of-use/ +Preferred-Languages: de, en From 91fd0b681605680f13b671a7859cc692ad030236 Mon Sep 17 00:00:00 2001 From: Niels Poensgen Date: Mon, 30 Nov 2026 14:06:32 +0100 Subject: [PATCH 2/2] security: translate SECURITY.md and machine-readable security.txt (RFC 9116) --- .github/SECURITY.md | 47 +++++++++---------- .../public/.well-known/security.txt | 6 +++ apps/frontend/public/.well-known/security.txt | 3 +- 3 files changed, 30 insertions(+), 26 deletions(-) create mode 100644 apps/admin-panel/public/.well-known/security.txt diff --git a/.github/SECURITY.md b/.github/SECURITY.md index 6827c9d31..dfc9bcb8a 100644 --- a/.github/SECURITY.md +++ b/.github/SECURITY.md @@ -1,40 +1,37 @@ -# Sicherheitshinweise +# Security Notice -## Eine Schwachstelle melden +## Reporting a vulnerability -Bitte melde mutmaßliche Sicherheitslücken per Mail an `security@baergpt.berlin` und eröffne dafür kein öffentliches Issue. +Please report suspected security vulnerabilities by email to `security@baergpt.berlin` and do not open a public issue for them. -Hilfreich für die Bearbeitung sind: +Helpful for handling the report: -- Beschreibung des Problems und der möglichen Auswirkung -- Betroffene Komponente (Frontend, Admin-Panel, Backend, Supabase) und URL -- Schritte zur Reproduktion oder ein Proof of Concept -- Falls vorhanden: ein Vorschlag zur Behebung +- Description of the problem and its possible impact +- Affected component (frontend, admin panel, backend, Supabase) and URL +- Steps to reproduce or a proof of concept +- If available: a suggested fix -Wir melden uns innerhalb von 5 Werktagen zurück. Gib uns bitte angemessen Zeit, den Fehler zu beheben, bevor du ihn veröffentlichst. +We will get back to you within 5 working days. Please give us reasonable time to fix the issue before you publish it. -## Geltungsbereich +## Scope -Dieser Hinweis gilt für `www.baergpt.berlin`, `admin.baergpt.berlin`, `hilfe.baergpt.berlin` und die Backend-API. +This notice applies to `www.baergpt.berlin`, `admin.baergpt.berlin`, `hilfe.baergpt.berlin` and the backend API. -Bitte vermeide bei Tests: +When testing, please avoid: -- Tests gegen Produktionsdaten -- automatisierte Scanner mit hohem Volumen -- Zugriffe auf Daten, die dir nicht gehören +- tests against production data +- high-volume automated scanners +- access to data that does not belong to you -Für Tests in einer eigenen Umgebung beschreibt `README_DEV.md` das lokale Setup. +For tests in your own environment, `README_DEV.md` describes the local setup. -## Nicht abgedeckt +## Not covered -- Meldungen, die ein bereits kompromittiertes Konto oder Endgerät voraussetzen -- Fehlende HTTP-Sicherheitsheader ohne nachgewiesene Auswirkung -- Denial of Service durch Ressourcenerschöpfung +- Reports that require an already compromised account or device +- Missing HTTP security headers without demonstrated impact +- Denial of service through resource exhaustion -## Kontakt +## Contact -Maschinenlesbare Kontaktinformationen: +Machine-readable contact information: [https://www.baergpt.berlin/.well-known/security.txt](https://www.baergpt.berlin/.well-known/security.txt) - -Hinweise zur Meldepflicht stehen in den Nutzungsbedingungen (§ 6.3): -[https://www.baergpt.berlin/terms-of-use/](https://www.baergpt.berlin/terms-of-use/) diff --git a/apps/admin-panel/public/.well-known/security.txt b/apps/admin-panel/public/.well-known/security.txt new file mode 100644 index 000000000..e9377f71a --- /dev/null +++ b/apps/admin-panel/public/.well-known/security.txt @@ -0,0 +1,6 @@ +Contact: mailto:security@baergpt.berlin +Expires: 2027-11-30T23:59:59.000Z +Canonical: https://www.baergpt.berlin/.well-known/security.txt +Canonical: https://admin.baergpt.berlin/.well-known/security.txt +Policy: https://github.com/technologiestiftung/baergpt/security/policy +Preferred-Languages: de, en diff --git a/apps/frontend/public/.well-known/security.txt b/apps/frontend/public/.well-known/security.txt index 769801335..e9377f71a 100644 --- a/apps/frontend/public/.well-known/security.txt +++ b/apps/frontend/public/.well-known/security.txt @@ -1,5 +1,6 @@ Contact: mailto:security@baergpt.berlin Expires: 2027-11-30T23:59:59.000Z Canonical: https://www.baergpt.berlin/.well-known/security.txt -Policy: https://www.baergpt.berlin/terms-of-use/ +Canonical: https://admin.baergpt.berlin/.well-known/security.txt +Policy: https://github.com/technologiestiftung/baergpt/security/policy Preferred-Languages: de, en