Skip to content

[GIT-180][GIT-179] fix[9034]: fix api rate limit env variable#232

Merged
pratapalakshmi merged 3 commits into
masterfrom
fix/api_rate_limit/enterprise/helm/charts
May 26, 2026
Merged

[GIT-180][GIT-179] fix[9034]: fix api rate limit env variable#232
pratapalakshmi merged 3 commits into
masterfrom
fix/api_rate_limit/enterprise/helm/charts

Conversation

@pratapalakshmi
Copy link
Copy Markdown
Collaborator

@pratapalakshmi pratapalakshmi commented May 21, 2026

Summary by CodeRabbit

  • New Features

    • Added API rate limiting configuration with a new default of 120 requests per minute (configurable).
  • Chores

    • Updated enterprise deployment version to 2.4.3.
    • Increased default document upload size to 20 MB (configurable).

Review Change Stack

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 21, 2026

Walkthrough

Bump Plane Enterprise Helm chart to 2.4.3; add DEFAULT_API_RATE_LIMIT (now defaulting to 120/minute) in the app ConfigMap; change doc-store FILE_SIZE_LIMIT to use doc_upload_size_limit (default 20971520) and add a trailing --- separator.

Changes

Plane Enterprise v2.4.3 Release

Layer / File(s) Summary
Chart version bump
charts/plane-enterprise/Chart.yaml
Chart version updated from 2.4.2 to 2.4.3.
ConfigMap: DEFAULT_API_RATE_LIMIT
charts/plane-enterprise/templates/config-secrets/app-env.yaml
Add DEFAULT_API_RATE_LIMIT sourced from .Values.env.api_key_rate_limit; default changed from 60/minute120/minute.
Doc-store secret: file size and separator
charts/plane-enterprise/templates/config-secrets/doc-store.yaml
stringData.FILE_SIZE_LIMIT now uses .Values.env.doc_upload_size_limit (default 20971520), and a trailing --- YAML document separator was added.

🎯 3 (Moderate) | ⏱️ ~20 minutes

"🐰
I hopped through charts with nimble paws,
Bumped a version and tuned the laws,
Rate limits climbed to one-twenty clear,
File sizes grown, and separators near —
A tiny patch, a joyful cheer!"

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The PR title focuses on fixing the API rate limit env variable, which aligns with the main changes made to the ConfigMap API_KEY_RATE_LIMIT field and doc-store file size configurations.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/api_rate_limit/enterprise/helm/charts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@makeplane
Copy link
Copy Markdown

makeplane Bot commented May 21, 2026

@pratapalakshmi pratapalakshmi changed the title [GIT-179] fix[9034]: fix api rate limit env variable [GIT-180][GIT-179] fix[9034]: fix api rate limit env variable May 21, 2026
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (1)
charts/plane-enterprise/templates/config-secrets/doc-store.yaml (1)

9-9: Note: File size limit increased significantly.

The default file size limit increased from 5,242,880 bytes (5MB) to 20,971,520 bytes (20MB), which is a 4× increase. While this appears intentional for supporting larger document uploads, ensure that:

  1. Backend storage and infrastructure can handle the increased file sizes
  2. Network bandwidth and upload timeouts are sufficient for 20MB files
  3. This change is documented in release notes for users to plan capacity accordingly
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@charts/plane-enterprise/templates/config-secrets/doc-store.yaml` at line 9,
The default FILE_SIZE_LIMIT value was raised to 20971520 via
.Values.env.doc_upload_size_limit which increases max upload from ~5MB to ~20MB;
verify and either revert or make this explicit: confirm backend storage, network
bandwidth, and upload timeout settings support 20MB uploads, update any
runtime/config validation to reflect the new limit (e.g., in upload handlers or
ingress/timeouts), and add a release-note entry documenting the change so users
can plan capacity accordingly.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@charts/plane-enterprise/templates/config-secrets/doc-store.yaml`:
- Line 9: The template sets FILE_SIZE_LIMIT only from
.Values.env.doc_upload_size_limit and uses a 20971520 fallback, which breaks
backward compatibility and mismatches docs; change the template that produces
FILE_SIZE_LIMIT to prefer .Values.env.doc_upload_size_limit, fall back to the
legacy .Values.env.file_size_limit if the new key is unset, and use the
documented default "5242880" (5MiB) as the final fallback so FILE_SIZE_LIMIT
aligns with README/values.yaml and supports existing installs.

---

Nitpick comments:
In `@charts/plane-enterprise/templates/config-secrets/doc-store.yaml`:
- Line 9: The default FILE_SIZE_LIMIT value was raised to 20971520 via
.Values.env.doc_upload_size_limit which increases max upload from ~5MB to ~20MB;
verify and either revert or make this explicit: confirm backend storage, network
bandwidth, and upload timeout settings support 20MB uploads, update any
runtime/config validation to reflect the new limit (e.g., in upload handlers or
ingress/timeouts), and add a release-note entry documenting the change so users
can plan capacity accordingly.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: ca199351-e031-4453-a531-8eebcdf28757

📥 Commits

Reviewing files that changed from the base of the PR and between 7f6bf6b and adab1e1.

📒 Files selected for processing (2)
  • charts/plane-enterprise/templates/config-secrets/app-env.yaml
  • charts/plane-enterprise/templates/config-secrets/doc-store.yaml

name: {{ .Release.Name }}-doc-store-secrets
stringData:
FILE_SIZE_LIMIT: {{ .Values.env.file_size_limit | default "5242880" | quote }}
FILE_SIZE_LIMIT: {{ .Values.env.doc_upload_size_limit | default "20971520" | quote }}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Description: Search for references to the old and new file size limit Values keys

echo "=== Searching for OLD Values key: file_size_limit ==="
rg -n --type yaml 'file_size_limit' -g '!charts/plane-enterprise/templates/config-secrets/doc-store.yaml'

echo -e "\n=== Searching for NEW Values key: doc_upload_size_limit ==="
rg -n --type yaml 'doc_upload_size_limit'

echo -e "\n=== Checking values.yaml files for file size configuration ==="
fd 'values.ya?ml' --exec rg -n 'file_size_limit|doc_upload_size_limit' {}

Repository: makeplane/helm-charts

Length of output: 942


🏁 Script executed:

#!/bin/bash
set -euo pipefail
# Show relevant portion of plane-enterprise values.yaml around env.doc_upload_size_limit
echo "=== plane-enterprise/values.yaml around env.doc_upload_size_limit ==="
sed -n '430,490p' charts/plane-enterprise/values.yaml | cat -n

echo "=== plane-ce/values.yaml around env.doc_upload_size_limit ==="
sed -n '190,260p' charts/plane-ce/values.yaml | cat -n

echo "=== doc-store.yaml template line with FILE_SIZE_LIMIT ==="
nl -ba charts/plane-enterprise/templates/config-secrets/doc-store.yaml | sed -n '1,80p'

echo "=== plane-enterprise questions.yml entries for env.doc_upload_size_limit ==="
rg -n "env\.doc_upload_size_limit" charts/plane-enterprise/questions.yml
sed -n '1310,1360p' charts/plane-enterprise/questions.yml | cat -n

echo "=== plane-ce questions.yml entries for env.doc_upload_size_limit ==="
rg -n "env\.doc_upload_size_limit" charts/plane-ce/questions.yml
sed -n '500,560p' charts/plane-ce/questions.yml | cat -n

Repository: makeplane/helm-charts

Length of output: 3827


🏁 Script executed:

#!/bin/bash
set -euo pipefail
# Show relevant portion of plane-enterprise values.yaml around env.doc_upload_size_limit
echo "=== plane-enterprise/values.yaml around env.doc_upload_size_limit ==="
sed -n '430,490p' charts/plane-enterprise/values.yaml | cat -n

echo "=== plane-ce/values.yaml around env.doc_upload_size_limit ==="
sed -n '190,260p' charts/plane-ce/values.yaml | cat -n

echo "=== doc-store.yaml template line with FILE_SIZE_LIMIT ==="
nl -ba charts/plane-enterprise/templates/config-secrets/doc-store.yaml | sed -n '1,80p'

echo "=== plane-enterprise questions.yml entries for env.doc_upload_size_limit ==="
rg -n "env\.doc_upload_size_limit" charts/plane-enterprise/questions.yml
sed -n '1310,1360p' charts/plane-enterprise/questions.yml | cat -n

echo "=== plane-ce questions.yml entries for env.doc_upload_size_limit ==="
rg -n "env\.doc_upload_size_limit" charts/plane-ce/questions.yml
sed -n '500,560p' charts/plane-ce/questions.yml | cat -n

Repository: makeplane/helm-charts

Length of output: 3827


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "=== doc-store.yaml (config-secrets) around FILE_SIZE_LIMIT and separators ==="
sed -n '1,120p' charts/plane-enterprise/templates/config-secrets/doc-store.yaml | cat -n

echo "=== Repo-wide search for old key 'file_size_limit' (any file type) ==="
rg -n "file_size_limit" . || true

echo "=== Repo-wide search for new key 'doc_upload_size_limit' (any file type) ==="
rg -n "doc_upload_size_limit" . || true

echo "=== Template uses .Values.env.doc_upload_size_limit? ==="
rg -n "Values\.env\.doc_upload_size_limit" charts/plane-enterprise/templates/config-secrets/doc-store.yaml

Repository: makeplane/helm-charts

Length of output: 3421


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "=== Search for 'file_size_limit' in entire repo (docs/changelog/etc) ==="
rg -n "file_size_limit" . || true

echo "=== Search for '20971520' / '20MB' in entire repo ==="
rg -n "20971520|20MB" . || true

echo "=== Show README row for env.doc_upload_size_limit in plane-enterprise ==="
rg -n "env\.doc_upload_size_limit" charts/plane-enterprise/README.md
sed -n '300,340p' charts/plane-enterprise/README.md | cat -n

echo "=== Show README row for env.doc_upload_size_limit in plane-ce ==="
rg -n "env\.doc_upload_size_limit" charts/plane-ce/README.md
sed -n '220,260p' charts/plane-ce/README.md | cat -n

Repository: makeplane/helm-charts

Length of output: 30064


Breaking: chart reads only env.doc_upload_size_limit (old env.file_size_limit is ignored), and template fallback default conflicts with documented 5MB

  • charts/plane-enterprise/templates/config-secrets/doc-store.yaml sets FILE_SIZE_LIMIT from .Values.env.doc_upload_size_limit only; there are no references to file_size_limit in the repo, so existing values using the old key won’t be applied.
  • Template fallback is 20MiB (default "20971520"), while charts/plane-enterprise/values.yaml and charts/plane-enterprise/README.md state the default is 5MiB (5242880), which can produce surprising behavior if env.doc_upload_size_limit is omitted/cleared.

Consider restoring backward compatibility for the old key (fallback to it) and aligning the template default with the documented/chart default.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@charts/plane-enterprise/templates/config-secrets/doc-store.yaml` at line 9,
The template sets FILE_SIZE_LIMIT only from .Values.env.doc_upload_size_limit
and uses a 20971520 fallback, which breaks backward compatibility and mismatches
docs; change the template that produces FILE_SIZE_LIMIT to prefer
.Values.env.doc_upload_size_limit, fall back to the legacy
.Values.env.file_size_limit if the new key is unset, and use the documented
default "5242880" (5MiB) as the final fallback so FILE_SIZE_LIMIT aligns with
README/values.yaml and supports existing installs.

@pratapalakshmi pratapalakshmi merged commit c44f34b into master May 26, 2026
3 checks passed
@pratapalakshmi pratapalakshmi deleted the fix/api_rate_limit/enterprise/helm/charts branch May 26, 2026 06:52
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.

2 participants