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

fix: hide password for security #30

Closed
wants to merge 1 commit into from
Closed

fix: hide password for security #30

wants to merge 1 commit into from

Conversation

trylovetom
Copy link
Collaborator

The logger will print the password. That's not secure. This patch will hide it.

Affected core subsystem(s)

mongodb://root:pass@mongo:27017/admin -> mongodb://root:xxxxx@mongo:27017/admin

Description of change

filter the password before log it

2019-02-22 5 07 55

The logger will print the password. That's not secure. This patch will hide it.
@codecov
Copy link

codecov bot commented Feb 22, 2019

Codecov Report

Merging #30 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master    #30   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           5      5           
  Lines          46     46           
=====================================
  Hits           46     46
Impacted Files Coverage Δ
lib/mongoose.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d616409...db2ef97. Read the comment docs.

@atian25 atian25 requested a review from jtyjty99999 February 22, 2019 15:21
@trylovetom
Copy link
Collaborator Author

@jtyjty99999 please, review my code, thx

@trylovetom
Copy link
Collaborator Author

@atian25
Does @jtyjty99999 manage this project?

@atian25
Copy link
Member

atian25 commented Feb 27, 2019

he seems busy... I will notify he by dingtalk.

@trylovetom
Copy link
Collaborator Author

@atian25 Any Update? If he is busy, maybe I can be a contributor.

@atian25
Copy link
Member

atian25 commented Mar 5, 2019

sure, really sorry for this. I'll review it, wait for a minute.

Copy link
Member

@atian25 atian25 left a comment

Choose a reason for hiding this comment

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

then could you add some test for this?

@@ -56,7 +56,7 @@ function createOneClient(config, app) {
if (!options.hasOwnProperty('useNewUrlParser')) {
options.useNewUrlParser = true;
}
app.coreLogger.info('[egg-mongoose] connecting %s', url);
Copy link
Member

Choose a reason for hiding this comment

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

could use some lib, such as https://github.com/tanzim/url-mask

@atian25 atian25 changed the title Security Patch: Hide Password fix: hide password for security Mar 5, 2019
@atian25
Copy link
Member

atian25 commented Mar 5, 2019

@trylovetom collaborators invite is sent.

@trylovetom
Copy link
Collaborator Author

@atian25 Roger that, Captain!

@ctcx
Copy link

ctcx commented Mar 17, 2019

能不能把 mongoose 升级到官方最新稳定版本?

@atian25
Copy link
Member

atian25 commented Mar 18, 2019

能不能把 mongoose 升级到官方最新稳定版本?

PR is welcome

@atian25
Copy link
Member

atian25 commented Mar 18, 2019

@trylovetom any update?

@trylovetom
Copy link
Collaborator Author

@atian25 交給我,最近剛忙完案子,預計明天可以更新 PR

@trylovetom
Copy link
Collaborator Author

trylovetom commented Mar 26, 2019

This PR will be close. I will open the new one work for this (#32) and update Mongoose Version(#33) @ctcx

@trylovetom trylovetom closed this Mar 26, 2019
@atian25
Copy link
Member

atian25 commented Mar 26, 2019

next time, not need to close, just push.

feature branch is allowed push --force

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants