https://github.com/moesif/moesif-governance-aws-api-gateway-example
https://github.com/moesif/moesif-governance-aws-api-gateway-example
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/moesif/moesif-governance-aws-api-gateway-example
- Owner: Moesif
- License: other
- Created: 2024-04-05T00:12:26.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-04-05T00:58:18.000Z (over 1 year ago)
- Last Synced: 2025-01-05T21:12:05.453Z (9 months ago)
- Language: Python
- Size: 5.86 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Sample to Support Governance for Moesif AWS API Gateway Integration
This is an example AWS API Gateway Lambda Authorizer that enforces Moesif governance rules and quotas.
By default, the [Moesif AWS API Gateway integration](https://www.moesif.com/docs/server-integration/aws-api-gateway/) doesn't enforce governance rules because traffic is logged via Amazon Data Firehose. However, you can integrate with the Moesif governance rules APIs within your custom lambda authorizer for AWS API Gateway.
You'll
This example contains a sample Python Lambda that loads and caches the users that need to be blocked.
This is a MVP project but can be expanded to download rules dynamically as well by consuming another API to get the governance rules from Moesif:
`GET https://api.moesif.net/v1/rules`