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: Fix webserver to use ServerBindAddr only if not blank as rest of EdgeX #776

Merged
merged 1 commit into from
Mar 31, 2021

Conversation

lenny-goodell
Copy link
Member

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe:

What is the current behavior?

If If ServerBindAddr is blank, webserver listens to any interface rather than locked down to value of Host as with all other EdgeX services. is blank, webserver listens to any interface rather than locked down to value of Host as with all other EdgeX services.

Issue Number: #775

What is the new behavior?

If ServerBindAddr is blank, webserver listens to value of Host as with all other EdgeX services.

Does this PR introduce a breaking change?

  • Yes
  • No

BREAKING CHANGE: Webserver will be locked down to listen just to Host value when If ServerBindAddr is blank

Are there any new imports or modules? If so, what are they used for and why?

no

Are there any specific instructions or things that should be known prior to reviewing?

Other information

jim-wang-intel
jim-wang-intel previously approved these changes Mar 30, 2021
Copy link
Contributor

@jim-wang-intel jim-wang-intel left a comment

Choose a reason for hiding this comment

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

LGTM

@lenny-goodell
Copy link
Member Author

recheck

… EdgeX Services

closes #775

BREAKING CHANGE: Webserver will be locked down to listen just to `Host` value when If `ServerBindAddr ` is blank

Signed-off-by: lenny <[email protected]>
@lenny-goodell lenny-goodell changed the title fix: Fix webserver to use ServerBindAddr only is not blank as rest of EdgeX fix: Fix webserver to use ServerBindAddr only if not blank as rest of EdgeX Mar 31, 2021
@codecov-io
Copy link

Codecov Report

Merging #776 (af5bee8) into master (60c5fe5) will decrease coverage by 0.09%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #776      +/-   ##
==========================================
- Coverage   63.13%   63.03%   -0.10%     
==========================================
  Files          31       31              
  Lines        1972     1975       +3     
==========================================
  Hits         1245     1245              
- Misses        642      645       +3     
  Partials       85       85              
Impacted Files Coverage Δ
internal/webserver/server.go 32.35% <0.00%> (-3.14%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 60c5fe5...af5bee8. Read the comment docs.

@lenny-goodell lenny-goodell merged commit 1fb879a into edgexfoundry:master Mar 31, 2021
@lenny-goodell lenny-goodell deleted the ListenAndServe branch March 31, 2021 01:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ListenAndServe allows access if ServerBindAddr isn't explicitly set
3 participants