Download the PHP package arubacao/aws-ip-range-middleware without Composer
On this page you can find all versions of the php package arubacao/aws-ip-range-middleware. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download arubacao/aws-ip-range-middleware
More information about arubacao/aws-ip-range-middleware
Files in arubacao/aws-ip-range-middleware
Package aws-ip-range-middleware
Short Description Laravel Middleware for Amazon Web Services (AWS) IP Address Range
License MIT
Homepage https://github.com/arubacao/aws-ip-range-middleware
Informations about the package aws-ip-range-middleware
Laravel Middleware for Amazon Web Services (AWS) IP Address Range Validation
This package allows for validation of incoming requests against the official Amazon Web Services (AWS) IP Address Range.
Use this to determine if an incoming request actually comes from the AWS infrastructure e.g. for Simple Notification Service (SNS) payloads.
Features
- Passes incoming HTTP requests from AWS, rejects everything else
- AWS ip address range is fetched on demand and therefore always up-to-date
- Caching of ip address range --> only fetched once per day
- Retry with exponential back-off on network issues while fetching the ip address range from AWS
Notes
arubacao/aws-ip-range-middleware
is functional and fully tested for Laravel5.0
-7.*
and PHP7.0
-7.3
.Installation
Install this package via composer:
Registering Middleware
First assign the aws-ip-range-middleware a key in your app/Http/Kernel.php
file to the $routeMiddleware
property.
Usage
Once the aws-ip-range-middleware has been defined in the HTTP kernel, you may use the middleware method to assign aws-ip-range-middleware to a route:
When assigning middleware, you may also pass the fully qualified class name:
Note: In this case you do not need to register the aws-ip-range-middleware in the HTTP kernel
Todo's
- Enable/Disable caching
- Choose cache storage
- Command to fetch ip address range and store locally
Testing
Contributing
Please see CONTRIBUTING for details.
Credits
- Christopher Lass
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of aws-ip-range-middleware with dependencies
graham-campbell/guzzle-factory Version ^3.0|^4.0|^5.0
illuminate/cache Version ^5.0|^6.0|^7.0|^8.0
symfony/http-foundation Version ~2.0|~3.0|~4.0|~5.0