This repository has been archived by the owner on Dec 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 300
Switch to an opt-in model for generating HAProxy configuration #402
Labels
Comments
I concur with this model for security in marathon-lb. In speaking to vishnu on slack, we discussed how forcing users to define those ports that will be exposed is more secure by default because it ensures ports that the user may not have intended to expose via the load-balancer are not accidentally exposed. |
While I generally think this is a good idea, the biggest problem will be that it may break backward compatibility for a lot of users. Perhaps a sane default would be to expose the first port by default, and disable the others unless it's explicitly enabled. |
Please share your thoughts on #410. |
Thanks! |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Say I have the following Marathon App definition where an app may listen on multiple ports but only requires one port
PORT0
to be exposed externallyI currently have to manually opt-out
PORT1
,PORT2
andPORT3
by adding the following labels:Furtheremore if I didn't want even the backend configuration for those ports generated I'd have to add more
HAPROXY_{n}_BACKEND_<>
options to ensure that Marthon-LB doesn't render from the backend templates.Instead, it would be nicer if we only had to opt-in
PORT0
explicitly.This would also make for a secure-by-default configuration whereby no ports that have not explicitly been labeled will be advertised.
The text was updated successfully, but these errors were encountered: