Skip to content

[SVRENG-1594] restrict max payload length for slack webhooks#186

Merged
asullivan-blze merged 2 commits intomainfrom
kphoenix-svreng-1594-constrain-slack-webhook-payload-length
Jul 29, 2025
Merged

[SVRENG-1594] restrict max payload length for slack webhooks#186
asullivan-blze merged 2 commits intomainfrom
kphoenix-svreng-1594-constrain-slack-webhook-payload-length

Conversation

@asullivan-blze
Copy link
Contributor

@asullivan-blze asullivan-blze commented Jul 28, 2025

What and why?

  • The maximum payload length for text entries is 3000, however 2000 is excessive in its own right; constrain at 2000, direct to the log if anything is ever truncated (e.g., a hyper long error message if a retry loop is constantly attempting health checks).
  • Slightly simplify the test cases; not quite sure what went pear shaped, but trying to match the entire error event seemed to not go well.
  • Remove use of a context manager on Path(); seems to be a Python 3.13.x change?
  • Updates pyproject.toml, refactoring deprecated items.

How was this tested?

make test locally; no errors.

Checklist

  • Have you updated the version in the [tool.poetry] section of
    the pyproject.toml file (if applicable)?

- The maximum payload length for text entries is 3000, however 2000
  is excessive in its own right; constrain at 2000, direct to the
  log if anything is ever truncated (e.g., a hyper long error
  message if a retry loop is constantly attempting health checks).
- Slightly simplify the test cases; not _quite_ sure what went
  pear shaped, but trying to match the entire error event seemed to
  not go well.
- Remove use of a context manager on `Path()`; seems to be a Python
  3.13.x change?
- Updates pyproject.toml, refactoring deprecated items.
Copy link

@agouldingbb agouldingbb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@asullivan-blze asullivan-blze merged commit b14d4c6 into main Jul 29, 2025
7 checks passed
@asullivan-blze asullivan-blze deleted the kphoenix-svreng-1594-constrain-slack-webhook-payload-length branch July 29, 2025 19:00
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