Coder Social home page Coder Social logo

Authentication handler about go-mysql HOT 6 CLOSED

go-mysql-org avatar go-mysql-org commented on June 9, 2024
Authentication handler

from go-mysql.

Comments (6)

tylerkovacs avatar tylerkovacs commented on June 9, 2024 1

Hi @siddontang. Thank you for a very useful library!

I cannot use username/password authentication at work since we enforce certificate-based authentication. Is this something you've thought about changing recently? If not, do you have any thoughts on how to extend auth.go to support certificates? Thank you. cc @rlowe

from go-mysql.

siddontang avatar siddontang commented on June 9, 2024

Hi @erikstmartin , this is a good feature, but I have only used username/password and don't know how to use other authentications 😄 , at the same time, I ask many other Chinese company programmers, they also use username/password only,

mysql-proxy, atlas, cobar or other proxies may also use username/password only too.

I think supporting others is not a hard thing, but now I focus on MySQL/Redis failover, Elasticsearch and have no time to do it. sorry.

Btw, is this feature very necessary for you now?

from go-mysql.

siddontang avatar siddontang commented on June 9, 2024

Hi @tylerkovacs

I have not used certificate-based authentication, can we give me some references? Then I can think how to support it.

from go-mysql.

rlowe avatar rlowe commented on June 9, 2024

My typical approach is to register a custom tls.Config to be used with go-sql-driver sql.Open, as described at https://godoc.org/github.com/go-sql-driver/mysql#RegisterTLSConfig

from go-mysql.

tylerkovacs avatar tylerkovacs commented on June 9, 2024

@siddontang I've copied and tested TLS/SSL authentication support from the official Go driver. PR here:

#105

cc @rlowe

from go-mysql.

holys avatar holys commented on June 9, 2024

It seems that this issue could be closed.

from go-mysql.

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.