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

Chroot Listener #22304

Merged
merged 15 commits into from
Aug 14, 2023
Merged

Chroot Listener #22304

merged 15 commits into from
Aug 14, 2023

Conversation

divyaac
Copy link
Contributor

@divyaac divyaac commented Aug 11, 2023

@github-actions github-actions bot added the hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed label Aug 11, 2023
@divyaac divyaac added this to the 1.15 milestone Aug 11, 2023
@github-actions
Copy link

github-actions bot commented Aug 11, 2023

CI Results:
All Go tests succeeded! ✅

@divyaac divyaac requested a review from ncabatoff August 11, 2023 20:13
@github-actions
Copy link

Build Results:
All builds succeeded! ✅

changelog/22304.txt Outdated Show resolved Hide resolved
sdk/helper/testcluster/docker/environment.go Outdated Show resolved Hide resolved
@divyaac divyaac force-pushed the VAULT-17811_ChRoot_Listener branch from d2b709b to 5d350e1 Compare August 14, 2023 17:38
@@ -636,7 +638,12 @@ func (n *DockerClusterNode) Start(ctx context.Context, opts *DockerClusterOption
listener["address"] = fmt.Sprintf("%s:%d", "0.0.0.0", config.Port)
listener["chroot_namespace"] = config.ChrootNamespace
listenerConfig = append(listenerConfig, cfg)
ports = append(ports, fmt.Sprintf("%d/tcp", config.Port))
portStr := fmt.Sprintf("%d/tcp", config.Port)
if portSet.Contains(portStr) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't object to this approach, but note that the way we'd usually do it is strutil.StrListContains. That has the minor benefit of avoiding the need for an extra variable.

@divyaac divyaac merged commit d5b29f6 into main Aug 14, 2023
95 checks passed
@divyaac divyaac deleted the VAULT-17811_ChRoot_Listener branch August 14, 2023 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants