-
Notifications
You must be signed in to change notification settings - Fork 111
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 for Masking User Cred in PG DB URI #5845
Conversation
👷 Deploy Preview for chef-automate processing. 🔨 Explore the source changes: 8daabcf 🔍 Inspect the deploy log: https://app.netlify.com/sites/chef-automate/deploys/615b2c97b843c00007414226 |
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.
working fine, thanks
Signed-off-by: Vivek Yadav <vivek.yadav@progress.com>
Signed-off-by: Vivek Yadav <vivek.yadav@progress.com>
Signed-off-by: Vivek Yadav <vivek.yadav@progress.com>
Signed-off-by: Vivek Yadav <vivek.yadav@progress.com>
Signed-off-by: Vivek Yadav <vivek.yadav@progress.com>
82d8c8a
to
8daabcf
Compare
Kudos, SonarCloud Quality Gate passed! |
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.
Awesome!! LGTM 🥳
…id and generate report (#5792) * removed subsctoption id Signed-off-by: MadhviA <matroliy@progress.com> * removed subsctoption id Signed-off-by: MadhviA <matroliy@progress.com> * removed custom typeError line Signed-off-by: MadhviA <matroliy@progress.com> * Revert "removed custom typeError line" This reverts commit 34827f7. * removed custom typeError line Signed-off-by: MadhviA <matroliy@progress.com> * Removed console.log Signed-off-by: MadhviA <matroliy@progress.com> * merging conflicts from main Signed-off-by: MadhviA <matroliy@progress.com> * Fix for Masking User Cred in PG DB URI (#5845) * masked DB String in logs Signed-off-by: Vivek Yadav <vivek.yadav@progress.com> * mask PG cred in URI Signed-off-by: Vivek Yadav <vivek.yadav@progress.com> * info string change Signed-off-by: Vivek Yadav <vivek.yadav@progress.com> * move files to data-feed-service Signed-off-by: Vivek Yadav <vivek.yadav@progress.com> * added postgresql: in regex Signed-off-by: Vivek Yadav <vivek.yadav@progress.com> * fix: a2ha habitat cert issue (#5834) Signed-off-by: meet58 <mgadhiya@msystechnologies.com> * Adding info and ssh commands to automate-cli (#5716) * Adding info and ssh commands Signed-off-by: FaizanSRE <ffulara@msystechnologies.com> * Did gofmt of new go files Signed-off-by: FaizanSRE <ffulara@msystechnologies.com> * Addind help for info command Signed-off-by: FaizanSRE <ffulara@msystechnologies.com> * removed comments * Apply suggestions from code review Co-authored-by: Kallol Roy <karoy@progress.com> Signed-off-by: FaizanSRE <ffulara@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Executed '.expeditor/generate-automate-cli-docs.sh' Obvious fix; these changes are the result of automation not creative thinking. * Tail logs, Needed to show log in run-time for deploy and provision (#5833) * Signed-off-by: jay vikram sharma <jsharma@progress.com> tail logs from file in main thread, and pgleaderchk in product.meta * Signed-off-by: jay vikram sharma <jsharma@progress.com> changing log messages * Signed-off-by: jay vikram sharma <jsharma@progress.com> printing error instead of return for tailFile * Signed-off-by: jay vikram sharma <jsharma@progress.com> removing un-used dependencies * Signed-off-by: jay vikram sharma <jsharma@progress.com> removing un-used dependencies * Signed-off-by: jay vikram sharma <jsharma@progress.com> we had missed one changes regarding fetching package name from current manifest, we added in this PR Co-authored-by: jay vikram sharma <jsharma@progress.com> * Remove the cacert for DST RootCA X3 (#5844) * Remove the cacert for DST RootCA X3 Signed-off-by: Kallol Roy <karoy@progress.com> * Exclude the cacert file from check Signed-off-by: Kallol Roy <karoy@progress.com> * indentation changes Signed-off-by: MadhviA <matroliy@progress.com> * removed subsctoption id Signed-off-by: MadhviA <matroliy@progress.com> * removed subsctoption id Signed-off-by: MadhviA <matroliy@progress.com> * removed custom typeError line Signed-off-by: MadhviA <matroliy@progress.com> * Revert "removed custom typeError line" This reverts commit 34827f7. * removed custom typeError line Signed-off-by: MadhviA <matroliy@progress.com> * Removed console.log Signed-off-by: MadhviA <matroliy@progress.com> * merging conflicts from main Signed-off-by: MadhviA <matroliy@progress.com> * indentation changes Signed-off-by: MadhviA <matroliy@progress.com> * changed cypress indentation Signed-off-by: MadhviA <matroliy@progress.com> Co-authored-by: MadhviA <matroliy@progress.com> Co-authored-by: Vivek Yadav <vivek.yadav@progress.com> Co-authored-by: meet.gadhiya <60958104+meet58@users.noreply.github.com> Co-authored-by: Faizan <60912283+FaizanSRE@users.noreply.github.com> Co-authored-by: Kallol Roy <karoy@progress.com> Co-authored-by: Chef Expeditor <chef-ci@chef.io> Co-authored-by: Jay Vikram Sharma <36661596+jayvikramsharma1@users.noreply.github.com> Co-authored-by: jay vikram sharma <jsharma@progress.com>
🔩 Description: What code changed, and why?
In Data feed service Connection string was having user credentials, and we were logging them in plain text.
Now, the Connection String is Masked so while logging the user credentials are not logged.
⛓️ Related Resources
Bug : #5846
👍 Definition of Done
On the start of the data-feed-service, the data-feed-service logs contain only Masked Database connection string.
👟 How to Build and Test the Change
rebuild components/data-feed-service
Logs of data-feed-service should not have user credentials as part of PG Connection string.
go test components/data-feed-service/config/mask_test.go
✅ Checklist
All PRs must tick these:
With occasional exceptions, all PRs from Progress employees must tick these:
make spell
in any component directory)All PRs from Progress employees should tick these if appropriate:
Please add a note next to any checkbox above if you are NOT ticking it.
📷 Screenshots, if applicable