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

connect: add toggle to globally disable wildcard outbound network access when transparent proxy is enabled #9973

Merged
merged 2 commits into from
Apr 6, 2021

Conversation

rboyer
Copy link
Member

@rboyer rboyer commented Apr 6, 2021

This adds a new config entry kind "cluster" with a single special name "cluster" where this can be controlled.

TODO

  • docs

…ess when transparent proxy is enabled

This adds a new config entry kind "cluster" with a single special name
"cluster where this can be controlled.
@rboyer rboyer requested review from freddygv and a team April 6, 2021 15:55
@rboyer rboyer self-assigned this Apr 6, 2021
@github-actions github-actions bot added theme/api Relating to the HTTP API interface theme/cli Flags and documentation for the CLI interface theme/config Relating to Consul Agent configuration, including reloading theme/envoy/xds Related to Envoy support labels Apr 6, 2021
@vercel vercel bot temporarily deployed to Preview – consul April 6, 2021 15:56 Inactive
@vercel vercel bot temporarily deployed to Preview – consul-ui-staging April 6, 2021 15:56 Inactive
@@ -0,0 +1,5 @@
package structs

func (e *ClusterConfigEntry) validateEnterpriseMeta() error {
Copy link
Member Author

Choose a reason for hiding this comment

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

The enterprise version of this method will be lifted from the current version of ProxyConfigEntry

Copy link
Contributor

@freddygv freddygv left a comment

Choose a reason for hiding this comment

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

This LGTM, thanks!

Only had a few minor comments about imports moving around.

"github.com/mitchellh/copystructure"

"github.com/hashicorp/consul/agent/structs"
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this have moved?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah I picked this tweak up from @dnephin for invoking goimports:

let g:go_fmt_options = {
    \ 'goimports': '-local github.com/hashicorp/consul',
    \ }

Comment on lines +12 to +13
testinf "github.com/mitchellh/go-testing-interface"
"github.com/stretchr/testify/require"
Copy link
Contributor

Choose a reason for hiding this comment

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

Should these have moved?

@@ -8,11 +8,12 @@ import (

"github.com/hashicorp/consul/agent/structs"

"github.com/mitchellh/cli"
Copy link
Contributor

Choose a reason for hiding this comment

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

Should these have moved?

@rboyer rboyer merged commit 499fee7 into master Apr 6, 2021
@rboyer rboyer deleted the cluster-config branch April 6, 2021 18:19
@hashicorp-ci
Copy link
Contributor

🍒 If backport labels were added before merging, cherry-picking will start automatically.

To retroactively trigger a backport after merging, add backport labels and re-run https://circleci.com/gh/hashicorp/consul/345785.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme/api Relating to the HTTP API interface theme/cli Flags and documentation for the CLI interface theme/config Relating to Consul Agent configuration, including reloading theme/envoy/xds Related to Envoy support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants