Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to always allow localhost to reach endpoints #754

Merged
merged 1 commit into from
May 18, 2017

Conversation

tgraf
Copy link
Member

@tgraf tgraf commented May 18, 2017

A new option --allow-localhost { auto | always | policy } defines the
policy on how to determine whether the localhost should be able to reach
local endpoints. The default is auto which means:

  • "always" when run in a Kubernetes environment
  • "policy" in all other environments

Fixes: #748

A new option `--allow-localhost { auto | always | policy }` defines the
policy on how to determine whether the localhost should be able to reach
local endpoints. The default is auto which means:
 - "always" when run in a Kubernetes environment
 - "policy" in all other environments

Fixes: #748

Signed-off-by: Thomas Graf <thomas@cilium.io>
@tgraf tgraf added kind/enhancement This would improve or streamline existing functionality. release blocker labels May 18, 2017
@tgraf tgraf added this to the 0.9 milestone May 18, 2017
daemon/daemon.go Outdated
@@ -202,6 +202,12 @@ func (d *Daemon) DryModeEnabled() bool {
return d.conf.DryMode
}

// AllowLocalhost returns true if the daemon has the option set that localhost

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comment on exported method Daemon.AlwaysAllowLocalhost should be of the form "AlwaysAllowLocalhost ..."

@tgraf tgraf force-pushed the allow-localhost branch 2 times, most recently from 3a1a695 to d11026d Compare May 18, 2017 12:26
@tgraf tgraf added pending-review and removed wip labels May 18, 2017
@tgraf tgraf requested a review from aanm May 18, 2017 12:26
@tgraf tgraf merged commit 2d15f7f into master May 18, 2017
@tgraf tgraf deleted the allow-localhost branch May 18, 2017 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement This would improve or streamline existing functionality.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants