Page MenuHomeVyOS Platform

Nginx does not allow big config queries for configure endpoint API
Closed, ResolvedPublicBUG

Description

Nginx does not allow big config queries for /configure endpoint

$ time ./configure_via_api.py 
Configuration failed. Status code: 413
Response: <html>
<head><title>413 Request Entity Too Large</title></head>
<body>
<center><h1>413 Request Entity Too Large</h1></center>
<hr><center>nginx/1.22.1</center>
</body>
</html>

Requires to increase client_max_body_size in http section for the /etc/nginx/nginx.conf
For example:

client_max_body_size 20M;

Details

Difficulty level
Unknown (require assessment)
Version
VyOS 1.5-rolling-202403050022, 1.4.0-epa1
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

Event Timeline

Viacheslav triaged this task as Normal priority.

While at it, whats the configured response time in nginx?

Since a large config will most likely yield a large commit time (which will timeout)...