Skip to content

bug(deploy): the proxy upload size cap differs by install method, and the fleet group_vars cap has no reader #19868

Closed

Description

@mrveiss

Problem

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,90 nginx: … client_max_body_size: "100m"; grep for nginx.client_max_body_size|nginx.vhosts|nginx[ over the SLM backend: 0 readers.
  • autobot-slm-backend/ansible/roles/frontend/templates/nginx-frontend.conf.j2:201 1g; autobot-slm-backend/ansible/roles/slm_manager/templates/autobot-slm.conf.j2:65 10m, :233 1g.
  • docker/nginx/nginx-common.conf:30 100M, mounted at docker-compose.yml:670,740, copied at docker/frontend/Dockerfile:102.

Related: #19712 (app upload cap).

Acceptance criteria

  • One declared proxy upload cap feeds both the fleet template and the Docker config.
  • The unread group_vars value is wired in as that source or replaced by it.

Found by the out-of-box default-install audit; verified on main at 248a8dd.

Parent: #19739.

Activity

  1. mrveiss commented on Nov 1, 2026

    @mrveiss
    OwnerAuthor

    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.yml nginx: 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).
  2. removed
    needs-ac-evidenceClosed by a merge keyword; awaits an AC evidence table comment (#19520)
    on Nov 1, 2026
  3. github-actions commented on Nov 1, 2026

    @github-actions
    Contributor

    Landed via the merge train (#20459, merge f88cd3756a) via #20440

  4. added
    needs-ac-evidenceClosed by a merge keyword; awaits an AC evidence table comment (#19520)
    on Nov 1, 2026
  5. mrveiss commented on Nov 1, 2026

    @mrveiss
    OwnerAuthor

    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.conf location /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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions