Skip to content

Prevent secrets from sending in email #496

Closed
@thinkingserious

Description

@thinkingserious

Add a method that will check the content of the email before sending, to make sure that specific strings or patterns are not included.

For example, SG API keys look like this: SG.[a-zA-Z0-9_].[a-zA-Z0-9-].

So the function could take a list of regex or specific strings to compare against. If a string is found, the mail/send should throw an exception

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions