cloudfoundry / haproxy-boshrelease

A BOSH release for haproxy (based on cf-release's haproxy job)
Apache License 2.0
37 stars 81 forks source link

multiple protected domain rules #120

Closed shalako closed 5 years ago

shalako commented 6 years ago

Currently this release supports a list of domains, and a list of cidrs. Presumably all specified domains are protected, and accessible from all specified cidrs.

https://github.com/cloudfoundry-incubator/haproxy-boshrelease/blob/master/jobs/haproxy/spec#L58-L63

I have a customer who wants the following rules:

  1. public.com should be accessible only from
  2. private.com should be accessible only from
  3. public.com should not be accessible from private network, and private.com should not be accessible from WAF

This seems like an array of protected domains and their whitelisted cidrs.

geofffranks commented 6 years ago

Doesn’t look like this is currently possible, but it sounds like adding negation support to the acls defined in ha_proxy.http_request_deny_conditions might solve it in a more general-purpose way. Does that seem accurate?

Sent from my iPhone

On Oct 3, 2018, at 9:36 PM, Shannon Coen notifications@github.com wrote:

Currently this release supports a list of domains, and a list of cidrs. Presumably all specified domains are protected, and accessible from all specified cidrs.

https://github.com/cloudfoundry-incubator/haproxy-boshrelease/blob/master/jobs/haproxy/spec#L58-L63

I have a customer who wants the following rules:

public.com should be accessible only from private.com should be accessible only from public.com should not be accessible from private networking, and private.com should not be accessible from WAF This seems like an array of protected domains and their whitelisted cidrs.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

geofffranks commented 5 years ago

Negation support was recently added to ha_proxy.http_request_deny_conditions, which should allow these behaviors now