diff --git a/charts/matrix-stack/ci/fragments/matrix-authentication-service-pytest-extras.yaml b/charts/matrix-stack/ci/fragments/matrix-authentication-service-pytest-extras.yaml index 26fe91e5..6e97789c 100644 --- a/charts/matrix-stack/ci/fragments/matrix-authentication-service-pytest-extras.yaml +++ b/charts/matrix-stack/ci/fragments/matrix-authentication-service-pytest-extras.yaml @@ -20,6 +20,19 @@ matrixAuthenticationService: 000-pytest-admin: configSecret: "{{ $.Release.Name }}-pytest-admin" configSecretKey: "admin.yaml" + 001-playwright-ratelimits: + config: | + # Playwright tests log in many users from the same IP. The default + # limits are too low for that. + rate_limiting: + login: + per_ip: + burst: 1000 + per_second: 10 + + per_account: + burst: 1800 + per_second: 10 syn2mas: extraEnv: diff --git a/charts/matrix-stack/ci/pytest-element-web-and-admin-with-mas-values.yaml b/charts/matrix-stack/ci/pytest-element-web-and-admin-with-mas-values.yaml index e7e0feac..449a312e 100644 --- a/charts/matrix-stack/ci/pytest-element-web-and-admin-with-mas-values.yaml +++ b/charts/matrix-stack/ci/pytest-element-web-and-admin-with-mas-values.yaml @@ -51,6 +51,19 @@ matrixAuthenticationService: 000-pytest-admin: configSecret: "{{ $.Release.Name }}-pytest-admin" configSecretKey: "admin.yaml" + 001-playwright-ratelimits: + config: | + # Playwright tests log in many users from the same IP. The default + # limits are too low for that. + rate_limiting: + login: + per_ip: + burst: 1000 + per_second: 10 + + per_account: + burst: 1800 + per_second: 10 extraEnv: - name: DEBUG_RENDERING value: "1" diff --git a/charts/matrix-stack/ci/pytest-hookshot-with-mas-and-encryption-values.yaml b/charts/matrix-stack/ci/pytest-hookshot-with-mas-and-encryption-values.yaml index 4e03896d..9e03cf8d 100644 --- a/charts/matrix-stack/ci/pytest-hookshot-with-mas-and-encryption-values.yaml +++ b/charts/matrix-stack/ci/pytest-hookshot-with-mas-and-encryption-values.yaml @@ -65,6 +65,19 @@ matrixAuthenticationService: 000-pytest-admin: configSecret: "{{ $.Release.Name }}-pytest-admin" configSecretKey: "admin.yaml" + 001-playwright-ratelimits: + config: | + # Playwright tests log in many users from the same IP. The default + # limits are too low for that. + rate_limiting: + login: + per_ip: + burst: 1000 + per_second: 10 + + per_account: + burst: 1800 + per_second: 10 extraEnv: - name: DEBUG_RENDERING value: "1" diff --git a/charts/matrix-stack/ci/pytest-hookshot-with-mas-values.yaml b/charts/matrix-stack/ci/pytest-hookshot-with-mas-values.yaml index 6820c7a6..0ffe4cea 100644 --- a/charts/matrix-stack/ci/pytest-hookshot-with-mas-values.yaml +++ b/charts/matrix-stack/ci/pytest-hookshot-with-mas-values.yaml @@ -64,6 +64,19 @@ matrixAuthenticationService: 000-pytest-admin: configSecret: "{{ $.Release.Name }}-pytest-admin" configSecretKey: "admin.yaml" + 001-playwright-ratelimits: + config: | + # Playwright tests log in many users from the same IP. The default + # limits are too low for that. + rate_limiting: + login: + per_ip: + burst: 1000 + per_second: 10 + + per_account: + burst: 1800 + per_second: 10 extraEnv: - name: DEBUG_RENDERING value: "1" diff --git a/charts/matrix-stack/ci/pytest-matrix-authentication-service-syn2mas-values.yaml b/charts/matrix-stack/ci/pytest-matrix-authentication-service-syn2mas-values.yaml index af44caf7..69e938d9 100644 --- a/charts/matrix-stack/ci/pytest-matrix-authentication-service-syn2mas-values.yaml +++ b/charts/matrix-stack/ci/pytest-matrix-authentication-service-syn2mas-values.yaml @@ -29,6 +29,19 @@ matrixAuthenticationService: 000-pytest-admin: configSecret: "{{ $.Release.Name }}-pytest-admin" configSecretKey: "admin.yaml" + 001-playwright-ratelimits: + config: | + # Playwright tests log in many users from the same IP. The default + # limits are too low for that. + rate_limiting: + login: + per_ip: + burst: 1000 + per_second: 10 + + per_account: + burst: 1800 + per_second: 10 password-scheme.yml: config: | passwords: diff --git a/charts/matrix-stack/ci/pytest-matrix-authentication-service-values.yaml b/charts/matrix-stack/ci/pytest-matrix-authentication-service-values.yaml index 27cb2e96..26cfb651 100644 --- a/charts/matrix-stack/ci/pytest-matrix-authentication-service-values.yaml +++ b/charts/matrix-stack/ci/pytest-matrix-authentication-service-values.yaml @@ -29,6 +29,19 @@ matrixAuthenticationService: 000-pytest-admin: configSecret: "{{ $.Release.Name }}-pytest-admin" configSecretKey: "admin.yaml" + 001-playwright-ratelimits: + config: | + # Playwright tests log in many users from the same IP. The default + # limits are too low for that. + rate_limiting: + login: + per_ip: + burst: 1000 + per_second: 10 + + per_account: + burst: 1800 + per_second: 10 extraEnv: - name: DEBUG_RENDERING value: "1" diff --git a/newsfragments/1823.internal.md b/newsfragments/1823.internal.md new file mode 100644 index 00000000..60097fc7 --- /dev/null +++ b/newsfragments/1823.internal.md @@ -0,0 +1 @@ +CI: increase Matrix Authentication Service login rate-limits so that Playwright tests aren't throttled.