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: hide masked value #668

Merged
merged 3 commits into from
May 15, 2021
Merged

fix: hide masked value #668

merged 3 commits into from
May 15, 2021

Conversation

KnisterPeter
Copy link
Member

@KnisterPeter KnisterPeter commented May 6, 2021

The ::add-mask:: command output logs the value to be masked.

The current implementation does expose critical information which should be hidden from the output.

Note: This PR does not implement proper mask handling. It just suppresses the output of the secret in the add-mask command.

The ::add-mask:: command output logs the value to be masked.
This does expose critical information which should be hidden from
the output.
@KnisterPeter KnisterPeter requested a review from a team as a code owner May 6, 2021 11:01
@codecov
Copy link

codecov bot commented May 6, 2021

Codecov Report

Merging #668 (2d0680a) into master (0f04942) will increase coverage by 1.34%.
The diff coverage is 61.73%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #668      +/-   ##
==========================================
+ Coverage   49.27%   50.61%   +1.34%     
==========================================
  Files          23       23              
  Lines        2401     2525     +124     
==========================================
+ Hits         1183     1278      +95     
- Misses       1090     1111      +21     
- Partials      128      136       +8     
Impacted Files Coverage Δ
pkg/container/docker_run.go 1.82% <0.00%> (-0.11%) ⬇️
pkg/model/workflow.go 30.71% <33.33%> (+5.00%) ⬆️
pkg/common/git.go 55.12% <33.92%> (-4.68%) ⬇️
pkg/model/planner.go 34.56% <41.37%> (+1.48%) ⬆️
pkg/container/docker_pull.go 36.17% <64.70%> (+17.98%) ⬆️
pkg/runner/step_context.go 73.00% <74.79%> (+4.05%) ⬆️
pkg/runner/run_context.go 79.74% <94.82%> (+3.33%) ⬆️
pkg/runner/command.go 90.58% <100.00%> (+2.35%) ⬆️
pkg/runner/runner.go 76.92% <100.00%> (+0.45%) ⬆️
... and 2 more

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 ef0da2a...2d0680a. Read the comment docs.

@KnisterPeter
Copy link
Member Author

@cplee Do you have any thoughts on this?

@catthehacker
Copy link
Member

Could you add tests, please?

@KnisterPeter
Copy link
Member Author

@catthehacker I've updated it and added a test for this

@KnisterPeter
Copy link
Member Author

@catthehacker Can you review please?

@mergify mergify bot requested a review from a team May 15, 2021 20:49
@mergify mergify bot merged commit 3db5037 into nektos:master May 15, 2021
@KnisterPeter KnisterPeter deleted the hidden-masked-values branch May 16, 2021 15:42
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.

3 participants