Coder Social home page Coder Social logo

Comments (5)

systemed avatar systemed commented on July 19, 2024 1

This only half-fixes the issue. In @rsutphin's original report, uri contained:

postgres:mdes_warehouse:ACTUAL_PASSWORD@server:5432mdes_warehouse_working?username=mdes_warehouse&database=mdes_warehouse_working&adapter=postgres&host=server&port=5432&password=ACTUAL_PASSWORD

The first occurrence of ACTUAL_PASSWORD is now removed, but the second one is still present, serialised by iterating through the query attribute.

This can be fixed by changing the relevant line to

string << "?" << query.select {|k,v| k!='password' }.map do |key, value|

(I know this is seriously old code, but logging passwords is a seriously big bug. ;) )

from do.

myabc avatar myabc commented on July 19, 2024

@dbussink @dkubb Are you in agreement we should elide this information from our logging?

from do.

dbussink avatar dbussink commented on July 19, 2024

Yeah, we should not output this information in exceptions etc. so we should fix this behavior.

from do.

mkristian avatar mkristian commented on July 19, 2024

definitely this info should stay away from log files !

from do.

dkubb avatar dkubb commented on July 19, 2024

@myabc I agree, we definitely should not display this information in exception output.

The question is, where should the change be made and who should make it? @dbussink and @myabc, are you able to change the C and Java drivers respectively, or would someone else be better for making these changes?

from do.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.