Git Product home page Git Product logo

Comments (7)

char0n avatar char0n commented on July 18, 2024

@oz123 any idea ?

from log4mongo-python.

oz123 avatar oz123 commented on July 18, 2024

Shalom Dror,
In the past mongodb, did authentication against admin. In the mean while you can really store users and passwords everywhere.

I think that using MongoClient instead of a Connection isn't such a bad idea. Can you make a PR for that?

Please note, the current logger class re-uses the connection, so make sure you are not creating multiple clients when creating multiple logging handlers (see the tests for that).

from log4mongo-python.

drorasaf avatar drorasaf commented on July 18, 2024

Hi oz,
I can store passwords and users everywhere, but it creates high maintenance for the DBA.
Just to verify, I will create a PR for MongoClient and the authentication.

from log4mongo-python.

drorasaf avatar drorasaf commented on July 18, 2024

What about other kinds of authorization, MongoDB currently supports multiple types, such as certificate based, any plans?

from log4mongo-python.

oz123 avatar oz123 commented on July 18, 2024

I don't see any problem adding implementation of certificate based authentication. Would you like to it it too?
As for LDAP and Kerberos, it's only available in the enterprise version, so I don't see how this can be added by me. Also, even I had an enterprise version, I would not add it in the core because it will mess up testing for other developers. So it means there will be code that can't be tested.

Thanks for the contributions so far

from log4mongo-python.

drorasaf avatar drorasaf commented on July 18, 2024

Currently, I do not have an enterprise edition either, but it could be provided for development purposes according to their site:
https://www.mongodb.com/lp/download/mongodb-enterprise.
which means it can be created, further more, it can be created with a relevant docker container to create easy tests, but maybe I made a huge jump:)

It can be split into a different file/test that allow this kind of authentication?

from log4mongo-python.

oz123 avatar oz123 commented on July 18, 2024

OK. Then this is feasible. I have no objection for that. I am not in favor for involving docker for testing.
It's an over kill. This package only depends on mongodb and python so setting up the test environment is not hard.
I think the hardest part will be getting the binaries for the enterprise edition (manual registration and co).

from log4mongo-python.

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.