GithubHelp home page GithubHelp logo

add TLS to HTTP server about cockroach HOT 5 CLOSED

cockroachdb avatar cockroachdb commented on August 27, 2024
add TLS to HTTP server

from cockroach.

Comments (5)

osguydch avatar osguydch commented on August 27, 2024

Can I implement this issue ?

from cockroach.

tbg avatar tbg commented on August 27, 2024

Of course, please go ahead! Happy to have you on.

from cockroach.

kardianos avatar kardianos commented on August 27, 2024

No change needs to happen in "client". I don't think we need DialTLS.

I recommend:

  • Continue to use the Certs directory but rather then using the node.{crt,key}, we use client.{crt.key}.
  • Should the client connections and rpc connections share the ca.crt?
  • Make a new package "util/tls" and move "rpc/tls.go" to the new package.
  • Use the tls package in rpc and server.
  • Parse the rpc and server certificates in Context.Init and store resulting TLS certificates in the Context.

Tests can generate a self signed certificate and add the trust to the client transport. Most tests will not need to populate the -Certs flag, but rather directly populate the Context certificates.

If someone can vet the above I can implement.

from cockroach.

bdarnell avatar bdarnell commented on August 27, 2024

For now, yes, just make a client cert/key in the certs directory. I think the certs directory is going away at some point though. Same ca.crt for client and server. There's a flag that can be set in a certificate to indicate whether it is for client or server use; we should be setting that and rejecting certs that are being used in the wrong direction. The rest sounds good.

from cockroach.

mberhault avatar mberhault commented on August 27, 2024

done for now. All nodes and clients can talk SSL. Lots of details left (client certs, key rotation, different certs for nodes, etc...) but the basics are there.

from cockroach.

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.