- 
                Notifications
    
You must be signed in to change notification settings  - Fork 84
 
MAGECLOUD-1619: [Spike] Sanitize Sensitive Information from Infrastructure Logs #224
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
Conversation
| ['message' => 'some message'] | ||
| ], | ||
| [ | ||
| ['message' => 'some message with admin password --admin-password=\'Ks81bUSl13Osd\''], | 
There was a problem hiding this comment.
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
 
There was a problem hiding this comment.
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=\'******\'', | 
There was a problem hiding this comment.
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=\'...\'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this 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.
| 
           QA approved  | 
    
MCLOUD-14104: Cloud tools October Release
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