feat(multiplayer): declare control-plane rate limits

This commit is contained in:
Josh Creek
2026-09-01 19:17:09 +01:00
parent 9cc68d7707
commit aa97259165
3 changed files with 6 additions and 1 deletions
@@ -21,6 +21,7 @@ class KubernetesPolicyTest(unittest.TestCase):
"runAsNonRoot: true", "type: RuntimeDefault", "allowPrivilegeEscalation: false",
"readOnlyRootFilesystem: true", "drop: [ALL]", "resources:",
"image: ghcr.io/cosmic-clash/control-plane@sha256:",
"--rate-limit=120", "--rate-limit-window=1m", "--rate-limit-max-keys=10000",
):
self.assertIn(required, deployment)
self.assertNotRegex(deployment, r"(?im)^\s*(password|token|private.?key):\s*[^\n]+$")