Skip to main content

AWS SNS Verifier

Project description

AWS SNS Verifier

A Python library for verifying AWS SNS signatures based on the official AWS documentation.

Features

  • Validates SNS message signatures (SHA1 and SHA256)
  • Supports notification and subscription confirmation messages
  • Email attachment extraction from SNS messages
  • Type-safe Pydantic models
  • Certificate validation and caching

Installation

uv add aws-sns-verifier

Usage

from aws_sns_verifier.validator import validate_sns_signature
from aws_sns_verifier.models import EmailWebhookRequest

# Parse your SNS message
sns_message = EmailWebhookRequest(**sns_json_data)

# Verify the signature
validate_sns_signature(sns_message, expected_topic_arn="arn:aws:sns:...")

Dependencies

  • Python 3.13+
  • cryptography>=45.0.5
  • pydantic>=2.11.7

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aws_sns_verifier-0.1.0.tar.gz (22.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aws_sns_verifier-0.1.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file aws_sns_verifier-0.1.0.tar.gz.

File metadata

  • Download URL: aws_sns_verifier-0.1.0.tar.gz
  • Upload date:
  • Size: 22.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.17

File hashes

Hashes for aws_sns_verifier-0.1.0.tar.gz
Algorithm Hash digest
SHA256 814db8281dd5e96eb125980b6bde8813c9649f35647c9bb96cc2ac6d3e09588b
MD5 e41f0192acb26f2ede7504dcfb81ea4e
BLAKE2b-256 591447106e682fa3360be2532c31793e60036e3daa6a1e6b39dafd11e3aca527

See more details on using hashes here.

File details

Details for the file aws_sns_verifier-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for aws_sns_verifier-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e64db1ccecebec0477aa0e957716ef1374da781dc60a06de9407487cb2af8a81
MD5 8cb5f65223ea3dee24fb8bb176384bdf
BLAKE2b-256 1e503daa8876073e2e1b28cc5aa316d1a5804f8bcf50a7cc7f301c79d897fcef

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page