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

[AIRFLOW-1850] Copy cmd before masking #2817

Conversation

Fokko
Copy link
Contributor

@Fokko Fokko commented Nov 27, 2017

Dear Airflow maintainers,

Please accept this PR. I understand that it will not be reviewed until I have checked off all the steps below!

The cmd is first copied before the password is masked. This ensures
that the orignal cmd isn't changed. Replacing the password with a
masked value replaces the password in the original command since it
is passed by reference.

JIRA

Description

  • Here are some details about my PR, including screenshots of any UI changes:

Tests

  • My PR adds the following unit tests OR does not need testing for this extremely good reason:

Commits

  • My commits all reference JIRA issues in their subject lines, and I have squashed multiple commits if they address the same issue. In addition, my commits follow the guidelines from "How to write a good git commit message":
    1. Subject is separated from body by a blank line
    2. Subject is limited to 50 characters
    3. Subject does not end with a period
    4. Subject uses the imperative mood ("add", not "adding")
    5. Body wraps at 72 characters
    6. Body explains "what" and "why", not "how"

The cmd is first copied before the password is masked. This ensures
that the orignal cmd isn't changed. Replacing the password with a
masked value replaces the password in the original command since it
is passed by reference.
@codecov-io
Copy link

Codecov Report

Merging #2817 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2817   +/-   ##
=======================================
  Coverage   73.62%   73.62%           
=======================================
  Files         158      158           
  Lines       11962    11962           
=======================================
  Hits         8807     8807           
  Misses       3155     3155

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 59aba30...cb3e665. Read the comment docs.

@Fokko
Copy link
Contributor Author

Fokko commented Nov 28, 2017

@bolkedebruin
Copy link
Contributor

Lgtm

@asfgit asfgit closed this in 4135c82 Nov 29, 2017
ghost pushed a commit to RealImpactAnalytics/airflow that referenced this pull request Dec 7, 2017
The cmd is first copied before the password is
masked. This ensures
that the orignal cmd isn't changed. Replacing the
password with a
masked value replaces the password in the original
command since it
is passed by reference.

Closes apache#2817 from Fokko/AIRFLOW-1850-copy-cmd-
before-replacing-password
Acehaidrey pushed a commit to Acehaidrey/incubator-airflow that referenced this pull request Jan 19, 2018
The cmd is first copied before the password is
masked. This ensures
that the orignal cmd isn't changed. Replacing the
password with a
masked value replaces the password in the original
command since it
is passed by reference.

Closes apache#2817 from Fokko/AIRFLOW-1850-copy-cmd-
before-replacing-password
@Fokko Fokko deleted the AIRFLOW-1850-copy-cmd-before-replacing-password branch January 17, 2019 20:09
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.

None yet

3 participants