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

refactor: Rework entry point scripts to run 'listenTcp' command as non-root #3292

Merged
merged 2 commits into from
Mar 24, 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)

If your build fails due to your commit message not passing the build checks, please review the guidelines here: https://github.com/edgexfoundry/edgex-go/blob/master/.github/Contributing.md.

What is the current behavior?

'listenTcp' command runs as root everywhere it is used.

Issue Number: #3221

What is the new behavior?

'listenTcp' command now runs as non-root everywhere it is used.

Does this PR introduce a breaking change?

  • Yes
  • No

New Imports

  • Yes
  • No

Specific Instructions

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

Other information

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.

the combination between exec and & doesn't fit well...

lenny added 2 commits March 24, 2021 08:44
…n-root

closes edgexfoundry#3221

Signed-off-by: lenny <leonard.goodell@intel.com>
Signed-off-by: lenny <leonard.goodell@intel.com>
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

@sonarcloud
Copy link

sonarcloud bot commented Mar 24, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@codecov-io
Copy link

Codecov Report

Merging #3292 (aec761c) into master (18e95d4) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3292   +/-   ##
=======================================
  Coverage   42.53%   42.53%           
=======================================
  Files         183      183           
  Lines       15838    15838           
=======================================
  Hits         6737     6737           
  Misses       8663     8663           
  Partials      438      438           

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 18e95d4...aec761c. Read the comment docs.

@lenny-goodell lenny-goodell merged commit 5dc7e56 into edgexfoundry:master Mar 24, 2021
@lenny-goodell lenny-goodell deleted the run-as-non-root branch March 24, 2021 16:12
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.

3 participants