Skip to content

Add rr.appServingLayer.publicRateLimiting.enabled (default true), rendering RR_PUBLIC_APPS_RATE_LIMITING_ENABLED - #451

Open
erichsu7 wants to merge 1 commit into
mainfrom
erichsu/rr-public-rate-limiting
Open

erichsu7 wants to merge 1 commit into
mainfrom
erichsu/rr-public-rate-limiting

Conversation

@erichsu7

@erichsu7 erichsu7 commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Companion to tryretool/retool_development#93547, which adds front-door rate limiting for public R² app requests (no session cookie) on self-hosted: per-app page-load and /_/api/executeV2 limits, tracked in memory per pod.

The backend gate is the RR_PUBLIC_APPS_RATE_LIMITING_ENABLED env var (code default on). This PR makes the knob visible in the chart:

  • New rr.appServingLayer.publicRateLimiting.enabled value, default true, rendering RR_PUBLIC_APPS_RATE_LIMITING_ENABLED onto the same workloads as RR_APP_DOMAIN (main backend, separate serving layer, standalone git server, jobs runner). Set it to false to render "false" and turn the limits off.
  • values.yaml documents the two tuning vars (RR_PUBLIC_EXECUTE_V2_PER_APP_PER_MINUTE, RR_PUBLIC_PAGE_LOAD_PER_APP_PER_MINUTE, both default 600) with an environmentVariables example. No first-class values for them since the generic passthrough already covers tuning.

The rr: section is excluded from values.schema.json and README.md, so no generated-file changes.

Verification

helm template with ci/test-rr-app-serving-layer-option.yaml renders RR_PUBLIC_APPS_RATE_LIMITING_ENABLED: "true"; with --set rr.appServingLayer.publicRateLimiting.enabled=false it renders "false"; with the serving layer disabled it renders nothing. The separate-serving-layer option renders it on rl-retool, rl-retool-git-server, and rl-retool-app-serving-layer.

@greptile-apps

greptile-apps Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5RetriggerView in Greptile

[Medium impact] The PR appears safe to merge.

Reviews (1) · Last reviewed commit: "Add rr.appServingLayer.publicRateLimitin..." · Reviewed by Greptile

@erichsu7
erichsu7 force-pushed the erichsu/rr-public-rate-limiting branch 3 times, most recently from 996a82d to fa2ac3b Compare December 4, 2026 00:22
@erichsu7
erichsu7 force-pushed the erichsu/rr-public-rate-limiting branch from fa2ac3b to 846b269 Compare December 4, 2026 00:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant