bpmbee/trust_ip

By bpmbee

Updated over 1 year ago

Middleware to whitelist IP's and/ or Atlassian IP's

Image
Security
0

1.2K

bpmbee/trust_ip repository overview

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.

https://github.com/bpmb82/trust_ip

Environment variables

One or both of the below environment variables should be present, otherwise, every request will be denied.

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

See the docker-compose for an example.

Tag summary

Content type

Image

Digest

sha256:489980f17

Size

3.7 MB

Last updated

over 1 year ago

docker pull bpmbee/trust_ip