A demo app for an IP whitelisting route service in Cloud Foundry | Read-only mirror of https://github.com/swisscom/ip-whitelisting-route-service-demo-app — Swisscom. Issues & pull requests at the source.
  • Go 73.6%
  • Makefile 26.4%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2024-10-16 17:17:56 +02:00
.cfignore initial commit 2020-06-17 10:25:00 +02:00
.gitignore initial commit 2020-06-17 10:25:00 +02:00
CODE_OF_CONDUCT.md Compliance bulk update. Add CODE_OF_CONDUCT.md 2024-10-16 17:17:56 +02:00
CONTRIBUTING.md Compliance bulk update. Add CONTRIBUTING.md 2024-10-16 17:17:55 +02:00
go.mod initial commit 2020-06-17 10:25:00 +02:00
ip-whitelist.conf initial commit 2020-06-17 10:25:00 +02:00
LICENSE Initial commit 2020-06-17 10:12:08 +02:00
main.go fix a typo 😉 2024-02-11 21:33:50 +01:00
Makefile initial commit 2020-06-17 10:25:00 +02:00
manifest.yml initial commit 2020-06-17 10:25:00 +02:00
README.md Update README.md 2021-08-02 11:21:28 +02:00

ip-whitelisting-route-service-demo-app

A demo app for an IP whitelisting route service in Cloud Foundry

How to use

# edit IP whitelist, can contain single IPs or whole subnet ranges
vim ip-whitelist.conf

# push this app
cf push route-service-demo

# create a route service with this app
# https://docs.developer.swisscom.com/services/route-services.html#user-provided
cf create-user-provided-service route-service-demo -r https://ip-whitelisting-demo.scapp.swisscom.com

# check route service if it's there
cf service route-service-demo

# bind the new route service to any of your other apps you want to protect
# https://docs.developer.swisscom.com/devguide/services/route-binding.html
cf bind-route-service scapp.swisscom.com route-service-demo --hostname my-other-app-to-be-protected

# check route if it's there
cf routes | grep my-other-app-to-be-protected

Guide

See https://blog.jamesclonk.io/posts/ip-whitelisting-with-a-route-service/ for a more detailed explanation.