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

Introduce validateSnsMessageWithSettings #10

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

dnikolovv
Copy link

@dnikolovv dnikolovv commented Apr 3, 2024

This fixes an issue that we ran into while using aws-sns-verify. The messages were from SNS but couldn't be validated because the library was expecting an http URI scheme for the SigningCertURL field.

This is because the valid scheme was hardcoded and couldn't be configured.

This PR introduces a ValidationSettings record that allows you to override this.

@pbrisbin
Copy link
Member

Hi there! Sorry I missed this until just now. I think the change makes sense and looks good. Do you think we can replace the DEVELOPMENT CPP by adding a devSettings (leaving defaultSettings to look like prod values) and then test with that?

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