mirror of
https://github.com/jcreek/CosmicClash.git
synced 2026-09-11 08:23:45 +00:00
feat(multiplayer): declare control-plane rate limits
This commit is contained in:
@@ -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]+$")
|
||||
|
||||
Reference in New Issue
Block a user