Skip to content
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

Add tests and/or sanitization to payload #122

Open
yeraydavidrodriguez opened this issue Apr 8, 2022 · 0 comments
Open

Add tests and/or sanitization to payload #122

yeraydavidrodriguez opened this issue Apr 8, 2022 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@yeraydavidrodriguez
Copy link
Collaborator

A payload can be passed to the message, that can be used by the final queue user to store its specific data storage needs.

This is implemented in the constructor of the Message class. However, this is assigned to the class as-is.

We should perform the following tests to ensure that the payload is robust to those cases and, in case that is not, perform sanitization actions before assigning the value to it.

Proposed actions (list not exhaustive) are:

  • Payloads with JSON and non-JSON structure
  • Payloads with problematic characters (quotes, double-quotes, non-ASCII characters...)
  • Payloads with malicious code (code injection prevention)
@yeraydavidrodriguez yeraydavidrodriguez added enhancement New feature or request good first issue Good for newcomers labels Apr 8, 2022
@josecelano josecelano mentioned this issue Jun 3, 2022
54 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant