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

Hide sensitive info from logs #33224

Merged
merged 28 commits into from
Mar 12, 2024

Conversation

RosenbergYehuda
Copy link
Contributor

@RosenbergYehuda RosenbergYehuda commented Mar 5, 2024

Contributing to Cortex XSOAR Content

Make sure to register your contribution by filling the contribution registration form

The Pull Request will be reviewed only after the contribution registration form is filled.

Status

  • In Progress
  • Ready
  • In Hold - (Reason for hold)

Related Issues

fixes: https://jira-dc.paloaltonetworks.com/browse/CIAC-6966

Description

We've now ensured that sensitive information directly printed by the request library, especially when debug-mode=true, is properly masked in this PR.

Must have

  • Tests
  • Documentation

@RosenbergYehuda RosenbergYehuda self-assigned this Mar 10, 2024
Copy link
Contributor

@JasBeilin JasBeilin left a comment

Choose a reason for hiding this comment

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

Looks great! Only one small comment.

Copy link
Contributor

@JasBeilin JasBeilin left a comment

Choose a reason for hiding this comment

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

Nice!

Co-authored-by: Jasmine Beilin <71636766+JasBeilin@users.noreply.github.com>
@RosenbergYehuda RosenbergYehuda merged commit 20dfbbc into master Mar 12, 2024
14 checks passed
@RosenbergYehuda RosenbergYehuda deleted the YR/Hide-sensitive-info-from-logs/CIAC-6966 branch March 12, 2024 19:52

SECRET_REPLACEMENT_STRING = '<XX_REPLACED>'
MASK = '<XX_REPLACED>'
SEND_PREFIX = "send: b'"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
SEND_PREFIX = "send: b'"
SEND_PREFIX = 'send: b"'
image

pal-xmco pushed a commit to pal-xmco/content that referenced this pull request Jun 19, 2024
* Revert "Sanitize Curl Logs (demisto#31702)"

This reverts commit 60a9393.

* init

* more

* try

* try

* fixes

* add tests

* more

* RN

* RN

* fix

* pre commit

* fix tests

* fix

* fixes

* fixes

* add test

* pre commit

* python 2

* Python 2 demisto#2

* Update Packs/Base/Scripts/CommonServerPython/CommonServerPython_test.py

Co-authored-by: Jasmine Beilin <71636766+JasBeilin@users.noreply.github.com>

* add description

* pre commit

---------

Co-authored-by: Jasmine Beilin <71636766+JasBeilin@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants