Skip to content

Allow sanitise_content_for arg in send_email_notification endpoint#276

Open
CrystalPea wants to merge 1 commit intomainfrom
allow_sanitise_content_for_placeholder_when_sending_email
Open

Allow sanitise_content_for arg in send_email_notification endpoint#276
CrystalPea wants to merge 1 commit intomainfrom
allow_sanitise_content_for_placeholder_when_sending_email

Conversation

@CrystalPea
Copy link
Copy Markdown
Contributor

So that users can tell us to sanitise content for specific placeholders. This is part of the work to mitigate against the placeholder injection vulnerability.

What problem does the pull request solve?

Checklist

  • I’ve used the pull request template
  • I’ve written unit tests for these changes
  • I’ve updated the documentation in
  • I’ve bumped the version number in
    • notifications_python_client/__init__.py
  • I've added new environment variables to
    • notifications-python-client/scripts/generate_docker_env.sh
    • notifications-python-client/tox.ini
    • CONTRIBUTING.md

@CrystalPea CrystalPea force-pushed the allow_sanitise_content_for_placeholder_when_sending_email branch 2 times, most recently from 48652c5 to 60e00bb Compare May 7, 2026 10:44
So that users can tell us to sanitise content for specific placeholders.
This is part of the work to mitigate against the placeholder injection
vulnerability.

Also add sanitised_content attribute to the response schema.
@CrystalPea CrystalPea force-pushed the allow_sanitise_content_for_placeholder_when_sending_email branch from 60e00bb to 3e9cdbe Compare May 7, 2026 11:16
@CrystalPea CrystalPea marked this pull request as ready for review May 7, 2026 11:16
@CrystalPea CrystalPea changed the title Allow sanitise_content_for arg in send_email_notification endpoint. Allow sanitise_content_for arg in send_email_notification endpoint May 7, 2026
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