Skip to content

bpmb82/trust_ip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tRust_ip

This application can be used as middleware for reverse proxies like Traefik. This application checks the X-FORWARDED-FOR header against a static list of IP's and optionally, the Atlassian ip range (https://ip-ranges.atlassian.com). I use this in front of Atlantis in combination with Bitbucket.

Environment variables

One or both of the below environment variables should be present.

WHITELIST

Takes a comma separated string (no spaces) as a list of IP's to allow access to

ATLASSIAN_IP_URL

Queries this URL and parses its JSON reply for CIDR blocks. Then it checks the X_FORWARDED_FOR ip address against it.

Examples

Docker

See the docker-compose for an example.

Kubernetes

See the Helm repo for this service: https://github.com/bpmb82/trust_ip_helm_charts

About

Middleware for whitelist IP's and Atlassian IP's

Resources

License

Stars

Watchers

Forks

Packages

No packages published