Skip to content

Redacted headers and added permissions check - #404

Merged
t1m0thyj merged 9 commits into
mainfrom
fix/redact-headers
Aug 6, 2026
Merged

Redacted headers and added permissions check#404
t1m0thyj merged 9 commits into
mainfrom
fix/redact-headers

Conversation

@pujal0909

@pujal0909 pujal0909 commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

What It Does

Redacts sensitive values from request/response data from logs/exception messages.
Restricts log directory and log file to owner-only access

How to Test

Review Checklist
I certify that I have:

  • updated the changelog
  • manually tested my changes
  • added/updated automated unit/integration tests
  • created/ran system tests (provide build number if applicable)
  • followed the contribution guidelines

Additional Comments

Signed-off-by: Pujal <pujal.gandhi@broadcom.com>
@github-project-automation github-project-automation Bot moved this to New Issues in Zowe CLI Squad Jul 28, 2026
@zowe-robot zowe-robot moved this from New Issues to In Progress in Zowe CLI Squad Jul 28, 2026
Signed-off-by: Pujal <pujal.gandhi@broadcom.com>
Signed-off-by: Pujal <pujal.gandhi@broadcom.com>
@pujal0909
pujal0909 marked this pull request as ready for review July 30, 2026 15:26
@zowe-robot zowe-robot moved this from In Progress to Review/QA in Zowe CLI Squad Jul 30, 2026

@zFernand0 zFernand0 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM! 😋

Left some comments for consideration 🙏
I will read up a bit more on the Windows specific behavior of chmod 🤔

Comment thread src/core/zowe/core_for_zowe_sdk/logger.py Outdated
Comment thread src/core/zowe/core_for_zowe_sdk/request_handler.py Outdated
Comment thread src/core/zowe/core_for_zowe_sdk/request_handler.py Outdated

@zFernand0 zFernand0 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can a Windows user confirm the following? 🙏
@ATorrise @traeok 🙏

Comment thread src/core/zowe/core_for_zowe_sdk/logger.py Outdated
pujal0909 and others added 3 commits August 4, 2026 09:58
Signed-off-by: Pujal <pujal.gandhi@broadcom.com>
Signed-off-by: Pujal <pujal.gandhi@broadcom.com>
@pujal0909
pujal0909 requested a review from zFernand0 August 5, 2026 14:25
Signed-off-by: Pujal <pujal.gandhi@broadcom.com>
@codecov

codecov Bot commented Aug 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.06%. Comparing base (91b897c) to head (18a4248).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #404      +/-   ##
==========================================
+ Coverage   82.88%   83.06%   +0.18%     
==========================================
  Files          49       49              
  Lines        2950     2982      +32     
==========================================
+ Hits         2445     2477      +32     
  Misses        505      505              
Flag Coverage Δ
unittests 83.06% <100.00%> (+0.18%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

pujal0909 and others added 2 commits August 5, 2026 10:42
Signed-off-by: Pujal <pujal.gandhi@broadcom.com>
@pujal0909
pujal0909 requested review from CBforZ and jace-roell August 5, 2026 18:14

@traeok traeok left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks Pujal for the fixes, LGTM!

@t1m0thyj t1m0thyj left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, thanks @pujal0909! Tested on Mac and the log permissions look safe 👍

@t1m0thyj
t1m0thyj merged commit 46a3f32 into main Aug 6, 2026
21 checks passed
@t1m0thyj
t1m0thyj deleted the fix/redact-headers branch August 6, 2026 15:19
@github-project-automation github-project-automation Bot moved this from Review/QA to Closed in Zowe CLI Squad Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Closed

Development

Successfully merging this pull request may close these issues.

6 participants