Skip to content

Conversation

@oshmyheliuk
Copy link
Contributor

@oshmyheliuk oshmyheliuk commented Mar 29, 2018

Sanitize Sensitive Information from Logs

Description

Fixed Issues (if relevant)

https://magento2.atlassian.net/browse/MAGECLOUD-1619

Zephyr Tests

https://jira.corp.magento.com/browse/MAGETWO-89800

Contribution checklist

  • Pull request has a meaningful description of its purpose
  • Pull request was approved by architect
  • Pull request was approved by QA member
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds on Travis CI are green)

@oshmyheliuk oshmyheliuk requested review from BaDos and NadiyaS March 29, 2018 10:51
@oshmyheliuk oshmyheliuk added the Progress: review PR/Issue status label Mar 29, 2018
['message' => 'some message']
],
[
['message' => 'some message with admin password --admin-password=\'Ks81bUSl13Osd\''],
Copy link
Contributor

Choose a reason for hiding this comment

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

add cases when:

  • password has '
  • text contains other symbols after password
  • password value is --db-password='a' (may be combined with the first point)
  • txt contain both type of passwords

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

* @var array
*/
private $replacements = [
'/--admin-password=\'.*?\'/i' => '--admin-password=\'******\'',
Copy link
Contributor

@NadiyaS NadiyaS Mar 29, 2018

Choose a reason for hiding this comment

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

you may unify and check every password=\'...\'

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Copy link
Contributor

@BaDos BaDos left a comment

Choose a reason for hiding this comment

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

Please write an integration test.

@andriyShevtsov
Copy link
Contributor

QA approved

@BaDos BaDos merged commit c6c889b into magento:develop Apr 6, 2018
@BaDos BaDos deleted the MAGECLOUD-1619 branch April 6, 2018 09:37
@andriyShevtsov andriyShevtsov added Progress: accept PR/issue status and removed Progress: testing in progress PR/issue status Progress: review PR/Issue status labels Apr 6, 2018
@YPyltiai YPyltiai added Release: 2002.0.11 ECE-Tools Release and removed Release Line: 2002.0 labels May 1, 2019
magento-devops-reposync-svc pushed a commit that referenced this pull request Oct 8, 2025
MCLOUD-14104: Cloud tools October Release
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Progress: accept PR/issue status Release: 2002.0.11 ECE-Tools Release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants