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: do not log encoded secrets #596

Open
wants to merge 2 commits into
base: hotfix/4.6
Choose a base branch
from

Conversation

dariuszd21
Copy link
Contributor

@dariuszd21 dariuszd21 commented Dec 13, 2024

  • Have you followed the guidelines for contributing?
  • Have you signed the CLA?
  • Have you successfully run tox?

Encoded secrets leak in the logs of the host instance, when managed instance is about to run. If additionally subsequent process fails, value is printed again in the failure traceback.
As they're only encoded not encrypted we should take a precautions and hide those values from the user.

Copy link

codecov bot commented Dec 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.36%. Comparing base (0705676) to head (19faa83).
Report is 331 commits behind head on main.

❗ There is a different number of reports uploaded between BASE (0705676) and HEAD (19faa83). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (0705676) HEAD (19faa83)
2 1
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #596      +/-   ##
==========================================
- Coverage   99.28%   90.36%   -8.93%     
==========================================
  Files          29       65      +36     
  Lines        1265     3976    +2711     
  Branches      209      456     +247     
==========================================
+ Hits         1256     3593    +2337     
- Misses          6      295     +289     
- Partials        3       88      +85     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dariuszd21 dariuszd21 force-pushed the work/mark-craft-secrets-value branch 3 times, most recently from 27ca53e to f6b1f87 Compare December 13, 2024 17:00
@dariuszd21 dariuszd21 force-pushed the work/mark-craft-secrets-value branch from f6b1f87 to edcfa2b Compare December 13, 2024 17:18
@dariuszd21 dariuszd21 force-pushed the work/mark-craft-secrets-value branch from edcfa2b to 19faa83 Compare December 13, 2024 17:21
@dariuszd21 dariuszd21 requested a review from a team December 13, 2024 20:10
@dariuszd21 dariuszd21 marked this pull request as ready for review December 13, 2024 20:10
@@ -4,6 +4,16 @@
Changelog
*********

4.7.0 (YYYY-MMM-DD)
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we do this in a 4.6.1 patch release?

Copy link
Contributor

@mattculler mattculler left a comment

Choose a reason for hiding this comment

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

Agreed with Alex that this should be 4.6.1, but otherwise looks good.

@lengau lengau changed the base branch from main to hotfix/4.6 December 17, 2024 21:22
@lengau lengau requested a review from medubelko December 17, 2024 21:23
Copy link
Contributor

@lengau lengau left a comment

Choose a reason for hiding this comment

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

Since @mattculler agrees I've gone ahead and re-targeted this at the 4.6 hotfix branch. I can celease as soon as @medubelko approves the changelog.

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.

4 participants