Skip to content

Improve large request handling - #1793

Merged
gsanchietti merged 2 commits into
release/8.7.2from
fix_otp_overflow
Jul 14, 2026
Merged

Improve large request handling#1793
gsanchietti merged 2 commits into
release/8.7.2from
fix_otp_overflow

Conversation

@gsanchietti

Copy link
Copy Markdown
Member

Changes:

  • add a limit to some nginx path
  • improve agent.smd

@gsanchietti
gsanchietti changed the base branch from release/8.7.2 to main July 14, 2026 06:33
@gsanchietti
gsanchietti changed the base branch from main to release/8.7.2 July 14, 2026 06:33
/api/login, /api/logout and /api/2fa/otp-verify are reachable without a
JWT, and today inherit nginx's global 128 MiB client_max_body_size meant
for the authenticated file-upload route. Split these three into exact-
match locations with a small client_max_body_size so nginx itself
rejects an oversized unauthenticated body with 413 before it ever
reaches ns-api-server, independent of any app-level control.

Applies to both the default port 443 vhost (00ns.locations) and the
optional extra-port vhost generated by the ns-ui init script.

Security advisory: GHSA-3v6g-pgp9-cmm7
@sonarqubecloud

Copy link
Copy Markdown

@gsanchietti
gsanchietti merged commit f155390 into release/8.7.2 Jul 14, 2026
1 of 2 checks passed
@gsanchietti
gsanchietti deleted the fix_otp_overflow branch July 14, 2026 06:56
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