fix(orchestrator): makes the bodyParser limit configurable. (#2802)#2858
Conversation
* fix(orchestrator): makes the bodyParser limit configurable. A customer was having an issue where the workflows content length was over the 100kb limit. This adds a configurable value to make the content lenght larger fixes: https://redhat.atlassian.net/browse/RHDHSUPP-351 * squash: add changeset * squash: add changeset * squash: add the contentLengthLimit to the common config * squash: only add to the global * squash: add comment
Code Review by Qodo
1. Default express.json limit unchanged
|
|
Review Summary by QodoMake orchestrator bodyParser content length limit configurable
WalkthroughsDescription• Makes bodyParser content length limit configurable in orchestrator backend • Adds contentLengthLimit configuration option to handle large workflow payloads • Defaults to 102400 bytes (100kb) with ability to increase via config • Includes configuration documentation and changeset entries Diagramflowchart LR
A["Request with large payload"] -->|"bodyParser.json()"| B["contentLengthLimit config"]
B -->|"if configured"| C["Use custom limit"]
B -->|"if not configured"| D["Use default 100kb"]
C --> E["Process request"]
D --> E
File Changes1. workspaces/orchestrator/plugins/orchestrator-backend/src/service/router.ts
|



Cherry pick of PR #2802
Related to JIRA https://redhat.atlassian.net/browse/RHDHSUPP-362
A customer was having an issue where the workflows content length was over the 100kb limit. This adds a configurable value to make the content lenght larger
fixes: https://redhat.atlassian.net/browse/RHDHSUPP-351
squash: add changeset
squash: add changeset
squash: add the contentLengthLimit to the common config
squash: only add to the global
squash: add comment
Hey, I just made a Pull Request!
✔️ Checklist