Skip to content

Login with AzureAD account and whitelist your IP against Cloud resources for 24 hours

License

Notifications You must be signed in to change notification settings

alec-pinson/ip-whitelister

Repository files navigation

IP Whitelister

Login with AzureAD account and whitelist your IP against Cloud resources for 24 hours

Flow

  1. User authenticates with AzureAD
  2. Public IP is checked to make sure it is not part of the static ipwhitelist
  3. Public IP is added to Redis database with ttl of 24 (configurable) hours
  4. Check if user is in required group (only if group specified for resource)
  5. Public IP is whitelisted against Cloud resources

Requirements

  • Service Principal account (authentication + updating resources)
  • Redis database (tracking user ip ttl)

Cloud/Resource Support

Azure:

  • Azure FrontDoor
  • Azure Storage Account
  • Azure Key Vault
  • Azure Postgres Server
  • Azure Redis Cache
  • Azure Cosmos DB

Group Support

It is now possible to specify a list of groups to each resource. This will mean in order to be whitelisted against the specific resource, the user will need to be part of one of the groups. If no groups are specified then all users are whitelisted against the resource.

Docker Image

https://hub.docker.com/r/alecpinson/ip-whitelister

Usage

Docker Compose

  1. Configure a config file see config/config.yaml
  2. Check/reconfigure docker-compose.yaml
  3. Run docker-compose up -d

Helm

See README

About

Login with AzureAD account and whitelist your IP against Cloud resources for 24 hours

Resources

License

Stars

Watchers

Forks