-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
openforms: opt in nginx config client_max_body_size #64
Comments
we're doing this for security reasons, setting a large allowed max body size for the entire server opens the API/application up to Denial of Service attacks where people push a lot of data to the endpoints which needs to be parsed/processed. For the upload endpoint, this is deliberately set to a higher value to allow larger uploads for UX reasons. The value passed to the application must be the same from the server, since this is displayed as a help text to form designers (they can also specify maximum attachment file size limits on the file field, but can get confused if they specify a value higher than configured on the server). iirc the application and nginx use slightly different syntaxes to express file size (20M vs 20mb or something like that?), which made re-using the same variable not as straight forward, but I may be confusing this with Open Zaak. |
Thank you for clarifying this. The opt in was not an option anyway I realized later, since nginx will default to its 1M. Some organization would prefer to handle it by there ingress / load balancers, but they can set it to 0M in the values (Setting size to 0 disables checking of client request body size.). The syntax is the same (much appreciated) and
Correct me if i'm wrong, with the current defaults:
Users are still able to upload files to a max of 50M? |
yes, that should be the case. However, that |
I do not. I will however then replace the Latest chart version is:
So technically this is correct, since 2.0.5 is still using the |
I don't remember the specifics - there was some deprecation going on in there, but since OF v2.x the API endpoints major version was changed too from To be 100% safe, I'd just list them both (or use a regex to target |
There are now 2 (3 if you count ingress) places to configure max upload:
Application:
nginx:
This is confusing, the default values are also not the same.
Change nginx config to opt in.
The text was updated successfully, but these errors were encountered: