You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug(deploy): the proxy upload size cap differs by install method, and the fleet group_vars cap has no reader #19868
The frontend proxy allows 1g uploads on the fleet but 100M on Docker, and the nginx.client_max_body_size: "100m" in fleet group_vars is read by nothing. Once #19712 raises the app's own 1 MiB cap, an upload between 100 MB and the app limit works on the fleet and gets a 413 on Docker.
Evidence
autobot-slm-backend/ansible/inventory/group_vars/frontend.yml:77,90nginx: … client_max_body_size: "100m"; grep for nginx.client_max_body_size|nginx.vhosts|nginx[ over the SLM backend: 0 readers.
Checked against main (f88cd37 or later): each row was read from the code, and the tests and paths named were confirmed to exist there. Tests were not run for this comment.
AC
Evidence
One declared proxy upload cap feeds both the fleet template and the Docker config.
MET. Single home autobot-slm-backend/ansible/_shared/files/upload-cap.conf (client_max_body_size 1g;). Fleet: autobot-slm-backend/ansible/roles/frontend/templates/nginx-frontend.conf.j2:201 and autobot-slm-backend/ansible/roles/slm_manager/templates/autobot-slm.conf.j2:233, both {{ lookup('file', role_path ~ '/../../_shared/files/upload-cap.conf') }}. Docker: docker/nginx/nginx-locations.conf:29-32 is location /api/ { include /etc/nginx/upload-cap.conf; proxy_request_buffering off; .... Mounted at docker-compose.yml:683; copied at docker/frontend/Dockerfile:105. Docker's http-level docker/nginx/nginx-common.conf:32 is client_max_body_size 100m;, which applies to everything except /api/. Guard: repo_tests/proxy_upload_cap_one_home_19868_test.py::test_each_fleet_upload_location_reads_the_home, repo_tests/proxy_upload_cap_one_home_19868_test.py::test_docker_applies_it_at_the_upload_location_only, repo_tests/proxy_upload_cap_one_home_19868_test.py::test_each_container_serving_that_location_gets_the_cap.
The unread group_vars value is wired in as that source or replaced by it.
MET. autobot-slm-backend/ansible/inventory/group_vars/frontend.ymlnginx: block (:77 onwards) no longer has client_max_body_size. Guard repo_tests/proxy_upload_cap_one_home_19868_test.py::test_the_unread_group_var_is_gone. Remaining other caps, for the record and out of this issue's criteria: SLM manager server-level 10m (autobot-slm-backend/ansible/roles/slm_manager/templates/autobot-slm.conf.j2:65) and autobot-infrastructure/autobot-slm-frontend/templates/autobot-slm.conf:29,86 (10m / 500m).
Evidence from origin/main (f88cd37), landed by #20440:
Criterion 1: one declared cap, autobot-slm-backend/ansible/_shared/files/upload-cap.conf (client_max_body_size 1g;), is included by the fleet templates (ansible/roles/frontend/templates/nginx-frontend.conf.j2:201 and ansible/roles/slm_manager/templates/autobot-slm.conf.j2:233, both via lookup('file', ...)) and by Docker: docker/nginx/nginx-locations.conflocation /api/ does include /etc/nginx/upload-cap.conf; followed by proxy_request_buffering off;; the file is mounted at docker-compose.yml:683 and copied at docker/frontend/Dockerfile:105. docker/nginx/nginx-common.conf:32 keeps 100m as the http-level default for everything other than /api/ (comment there says why).
Criterion 2: git grep -i client_max_body_size origin/main -- autobot-slm-backend now returns only upload-cap.conf and the SLM manager's own 10m at autobot-slm.conf.j2:65; the unread nginx.client_max_body_size: "100m" in group_vars/frontend.yml is gone.
Both boxes ticked. Host behaviour (an actual >100 MB upload through a Docker install) is not evidenced here, only the config.
Activity
fix(deploy): Docker's 1g upload cap applies only at the upload locati…
fix(deploy): the filter covers the nginx files the cap guard reads (#…
fix(train): the 1g API upload streams instead of buffering, and other…
mrveiss commentedon Nov 1, 2026
Checked against
main(f88cd37 or later): each row was read from the code, and the tests and paths named were confirmed to exist there. Tests were not run for this comment.autobot-slm-backend/ansible/_shared/files/upload-cap.conf(client_max_body_size 1g;). Fleet:autobot-slm-backend/ansible/roles/frontend/templates/nginx-frontend.conf.j2:201andautobot-slm-backend/ansible/roles/slm_manager/templates/autobot-slm.conf.j2:233, both{{ lookup('file', role_path ~ '/../../_shared/files/upload-cap.conf') }}. Docker:docker/nginx/nginx-locations.conf:29-32islocation /api/ { include /etc/nginx/upload-cap.conf; proxy_request_buffering off; .... Mounted atdocker-compose.yml:683; copied atdocker/frontend/Dockerfile:105. Docker's http-leveldocker/nginx/nginx-common.conf:32isclient_max_body_size 100m;, which applies to everything except/api/. Guard:repo_tests/proxy_upload_cap_one_home_19868_test.py::test_each_fleet_upload_location_reads_the_home,repo_tests/proxy_upload_cap_one_home_19868_test.py::test_docker_applies_it_at_the_upload_location_only,repo_tests/proxy_upload_cap_one_home_19868_test.py::test_each_container_serving_that_location_gets_the_cap.autobot-slm-backend/ansible/inventory/group_vars/frontend.ymlnginx:block (:77 onwards) no longer hasclient_max_body_size. Guardrepo_tests/proxy_upload_cap_one_home_19868_test.py::test_the_unread_group_var_is_gone. Remaining other caps, for the record and out of this issue's criteria: SLM manager server-level10m(autobot-slm-backend/ansible/roles/slm_manager/templates/autobot-slm.conf.j2:65) andautobot-infrastructure/autobot-slm-frontend/templates/autobot-slm.conf:29,86(10m/500m).github-actions commentedon Nov 1, 2026
Landed via the merge train (#20459, merge
f88cd3756a) via #20440mrveiss commentedon Nov 1, 2026
Evidence from
origin/main(f88cd37), landed by #20440:autobot-slm-backend/ansible/_shared/files/upload-cap.conf(client_max_body_size 1g;), is included by the fleet templates (ansible/roles/frontend/templates/nginx-frontend.conf.j2:201andansible/roles/slm_manager/templates/autobot-slm.conf.j2:233, both vialookup('file', ...)) and by Docker:docker/nginx/nginx-locations.conflocation /api/doesinclude /etc/nginx/upload-cap.conf;followed byproxy_request_buffering off;; the file is mounted atdocker-compose.yml:683and copied atdocker/frontend/Dockerfile:105.docker/nginx/nginx-common.conf:32keeps100mas the http-level default for everything other than/api/(comment there says why).git grep -i client_max_body_size origin/main -- autobot-slm-backendnow returns onlyupload-cap.confand the SLM manager's own10matautobot-slm.conf.j2:65; the unreadnginx.client_max_body_size: "100m"ingroup_vars/frontend.ymlis gone.Both boxes ticked. Host behaviour (an actual >100 MB upload through a Docker install) is not evidenced here, only the config.
merge(main): sync issue-19832-nginx-slm-proxy with main; the frontend…