Skip to content

Open-source AI teammates in Slack, Teams, Discord, Telegram and Mattermost. Self-host it, with any agent harness and any model.

fix(security): M2 pre-flip repo files — SECURITY.md, CODEOWNERS, prep least-privilege (CHOO-1251, M2)

amaudruzcbf827fdacd0
diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
new file mode 100644
index 000000000..162028df6
--- /dev/null
+++ b/.github/CODEOWNERS
@@ -0,0 +1,10 @@
+# Code owners for sandbox-quantum/switch.
+#
+# Owners are automatically requested for review on PRs that touch matching
+# paths. This only *enforces* review when the branch-protection ruleset has
+# "Require review from Code Owners" enabled.
+#
+# Later this can be pointed at a GitHub team (e.g. @sandbox-quantum/switch-maintainers)
+# instead of individual handles.
+
+* @amaudruz @christian-mcdermott
diff --git a/.github/workflows/switch-release.yml b/.github/workflows/switch-release.yml
index 4d1e6b622..c2f6f5d5d 100644
--- a/.github/workflows/switch-release.yml
+++ b/.github/workflows/switch-release.yml
@@ -30,6 +30,8 @@ jobs:
prep:
name: Resolve + verify version
runs-on: ubuntu-latest
+ permissions:
+ contents: read
outputs:
version: ${{ steps.version.outputs.version }}
push: ${{ steps.version.outputs.push }}
diff --git a/SECURITY.md b/SECURITY.md
new file mode 100644
index 000000000..08e4b70c0
--- /dev/null
+++ b/SECURITY.md
@@ -0,0 +1,37 @@
+# Security Policy
+
+## Reporting a vulnerability
+
+**Please do not report security vulnerabilities through public GitHub issues,
+discussions, or pull requests.**
+
+Report privately through GitHub's **private vulnerability reporting**:
+
+1. Go to the repository's **Security** tab.
+2. Click **Report a vulnerability**.
+3. Describe the issue, including steps to reproduce, affected component(s), and
+ the impact you believe it has.
+
+This opens a private advisory visible only to you and the maintainers.
+
+We aim to acknowledge a report within **3 business days** and to provide an
+initial assessment within **10 business days**. Please give us a reasonable
+window to investigate and ship a fix before any public disclosure, and we will
+keep you informed of progress.
+
+When reporting, please include where relevant:
+
+- The component and version / commit affected (e.g. `switch-core`, the gateway,
+ switchdash, a collaboration bridge).
+- A clear description of the vulnerability and its impact.
+- Steps to reproduce or a proof of concept.
+- Any suggested remediation.
+
+## Scope
+
+This policy covers the code in this repository: the Switch control plane
+(`core/`), the operator gateway (`gateway/`), the switchdash desktop app
+(`dash/`), the connector plugins (`connectors/`), and the deployment assets
+(`deploy/`). Vulnerabilities in third-party dependencies should be reported to
+the upstream project; if a dependency issue affects Switch specifically, let us
+know so we can pull in the fix.