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

fix: allow override of artifact server bind address #1560

Merged
merged 2 commits into from
Jan 16, 2023
Merged

fix: allow override of artifact server bind address #1560

merged 2 commits into from
Jan 16, 2023

Conversation

isometry
Copy link
Contributor

  • Prior to this change, the artifact server always binds to the detected "outbound IP", breaks functionality when that IP is unroutable. For example, Zscaler assigns the host a local CGNAT address, 100.64.0.1, which is unreachable from Docker Desktop.
  • Add the --artifact-server-addr flag to allow override of the address to which the artifact server binds, defaulting to the existing behaviour.

Fixes #1559

@isometry isometry requested a review from a team as a code owner January 13, 2023 16:41
* Prior to this change, the artifact server always binds to the detected
  "outbound IP", breaks functionality when that IP is unroutable.
  For example, Zscaler assigns the host a local CGNAT address,
  100.64.0.1, which is unreachable from Docker Desktop.
* Add the `--artifact-server-addr` flag to allow override of the address
  to which the artifact server binds, defaulting to the existing
  behaviour.

Fixes: #1559
Copy link
Member

@KnisterPeter KnisterPeter left a comment

Choose a reason for hiding this comment

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

Looks good for me. Thanks for your contribution.

@mergify
Copy link
Contributor

mergify bot commented Jan 16, 2023

@isometry this pull request has failed checks 🛠

@mergify mergify bot added the needs-work Extra attention is needed label Jan 16, 2023
@codecov
Copy link

codecov bot commented Jan 16, 2023

Codecov Report

Merging #1560 (d71c045) into master (4989f44) will increase coverage by 0.22%.
The diff coverage is 70.51%.

@@            Coverage Diff             @@
##           master    #1560      +/-   ##
==========================================
+ Coverage   61.22%   61.44%   +0.22%     
==========================================
  Files          46       46              
  Lines        7141     7156      +15     
==========================================
+ Hits         4372     4397      +25     
+ Misses       2462     2452      -10     
  Partials      307      307              
Impacted Files Coverage Δ
pkg/container/docker_cli.go 82.23% <ø> (ø)
pkg/container/docker_logger.go 52.08% <ø> (ø)
pkg/container/docker_pull.go 33.33% <ø> (ø)
pkg/container/docker_run.go 13.58% <ø> (ø)
pkg/container/docker_volume.go 0.00% <ø> (ø)
pkg/runner/run_context.go 78.81% <0.00%> (ø)
pkg/container/docker_images.go 27.02% <29.41%> (-4.13%) ⬇️
pkg/container/docker_auth.go 51.35% <56.25%> (+3.73%) ⬆️
pkg/runner/runner.go 86.45% <66.66%> (-2.05%) ⬇️
pkg/artifacts/server.go 67.63% <100.00%> (-0.19%) ⬇️
... and 7 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@mergify mergify bot removed the needs-work Extra attention is needed label Jan 16, 2023
@isometry
Copy link
Contributor Author

@KnisterPeter : anything else I need to do to get this merged?

@KnisterPeter
Copy link
Member

More approvals from maintainers are required. Just wait a bit longer.

@mergify mergify bot merged commit d064863 into nektos:master Jan 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Embedded artifact server inaccessible on clients with Zscaler Client Connector running
3 participants