Skip to content

fix(settings): cap the stored body capture limit at the config value - #156

Merged
Upd4ting merged 1 commit into
mainfrom
fix/w05057e83-19-config-caps-settings
Nov 20, 2026
Merged

Upd4ting merged 1 commit into
mainfrom
fix/w05057e83-19-config-caps-settings

Conversation

@Upd4ting

Copy link
Copy Markdown
Member

Task: W05057e83-19

Summary

A body capture limit saved from the settings page overrode antelope.config.ts, so it could raise the limit above what the operator set. The config value is now a ceiling: the stored requestLogMaxBodySize is capped to it (src/services/settings.ts).

Proof

  • Before: tests/settings-ceiling.test.ts "is capped to the body capture limit of the config" fails: expected 1000000 to be 1000.
  • After: both tests in the file pass.
flowchart LR
  A[stored requestLogMaxBodySize] --> B{above config value?}
  B -- yes --> C[config value]
  B -- no --> D[stored value]
Loading

Follow-ups

  • none

@Upd4ting
Upd4ting marked this pull request as ready for review November 20, 2026 14:42
@Upd4ting
Upd4ting added this pull request to the merge queue Nov 20, 2026
Merged via the queue into main with commit 5d69881 Nov 20, 2026
25 checks passed
@Upd4ting
Upd4ting deleted the fix/w05057e83-19-config-caps-settings branch November 20, 2026 17:52
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.

1 participant