{"id":18571855,"url":"https://github.com/freckle/aws-sns-verify","last_synced_at":"2025-04-10T07:30:49.328Z","repository":{"id":38339842,"uuid":"498524311","full_name":"freckle/aws-sns-verify","owner":"freckle","description":"Parse and verify AWS SNS messages","archived":false,"fork":false,"pushed_at":"2024-05-31T14:34:00.000Z","size":49,"stargazers_count":1,"open_issues_count":1,"forks_count":2,"subscribers_count":12,"default_branch":"main","last_synced_at":"2024-10-06T01:47:02.568Z","etag":null,"topics":["aws","haskell","sns","terraform-managed","x509"],"latest_commit_sha":null,"homepage":"https://hackage.haskell.org/package/aws-sns-verify","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/freckle.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-31T23:10:24.000Z","updated_at":"2024-09-24T19:51:56.000Z","dependencies_parsed_at":"2024-05-31T15:57:03.048Z","dependency_job_id":"ff337963-e432-4430-8970-f6a0c47449a7","html_url":"https://github.com/freckle/aws-sns-verify","commit_stats":{"total_commits":19,"total_committers":2,"mean_commits":9.5,"dds":"0.052631578947368474","last_synced_commit":"af5bc2d2a1c3ca3978a4f2ef2c77fc067b61efba"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freckle%2Faws-sns-verify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freckle%2Faws-sns-verify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freckle%2Faws-sns-verify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freckle%2Faws-sns-verify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/freckle","download_url":"https://codeload.github.com/freckle/aws-sns-verify/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223430338,"owners_count":17143624,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","haskell","sns","terraform-managed","x509"],"created_at":"2024-11-06T23:04:00.207Z","updated_at":"2024-11-06T23:04:00.812Z","avatar_url":"https://github.com/freckle.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# aws-sns-verify\n\nConsumers utilizing SNS need to do 3 tasks:\n\n1. Parse the message JSON\n2. Validate signed signatures\n3. Handle subscriptions\n\nThis library encapsulates those actions.\n\n```hs\nmyEchoWebhook :: MonadHandler m =\u003e m ()\nmyEchoWebhook = do\n  message \u003c- verifySNSMessage =\u003c\u003c requireInsecureJsonBody\n  logDebugN message\n```\n\n## Sign For Test\n\nSignatures for testing are produced with the self signed certificate in this\nrepository.\n\n```sh\ncat unsigned.txt | openssl dgst -sha1 -sign tests/key.pem | openssl base64\n```\n\nThe certificate was produced with\n\n```sh\nopenssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -keyout tests/key.pem -out tests/cert.pem\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreckle%2Faws-sns-verify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffreckle%2Faws-sns-verify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreckle%2Faws-sns-verify/lists"}