Coder Social home page Coder Social logo

Comments (8)

Yorgh avatar Yorgh commented on August 15, 2024

Hello again,

Is there aynone interested i this as well.
If you think I can help, please, tell me how I can contribute to get this solved.

Thanks in advance

from birdwatcher.

annikahannig avatar annikahannig commented on August 15, 2024

If you require additional security, I recommend binding birdwatcher to localhost and let a reverse proxy like nginx or haproxy do the TLS termination.

from birdwatcher.

annikahannig avatar annikahannig commented on August 15, 2024

I can see scenarios though where integrating this would make sense.

from birdwatcher.

Yorgh avatar Yorgh commented on August 15, 2024

Hello Annika,

Thank you for your feedback and sorry for the delay I took to reply to it.
We should be able to discuss on the workaround you suggested internally on Monday and will provide you with feedback then.

It is not related but I wanted to congrat you regarding your nice presentation yesterday during the Ripe83 meeting.

So, I should update it on Monday.

from birdwatcher.

Yorgh avatar Yorgh commented on August 15, 2024

Hello Annika,

After having discussed internally, we think it is overkilled to use nginx to address this in our infrastructure.
I then checked a bit if I could find pieces of code to assemble, but even if I am not a bad monkey, without any go knowledge, it would take me too much time.

I let this link which might help others wanting the same feature: https://gist.github.com/denji/12b3a568f092ab951456

If someone decides to address this issue, I would be pleased to participate looking for information if needed.

from birdwatcher.

annikahannig avatar annikahannig commented on August 15, 2024

if I read this correctly adding something like

    mux := http.NewServeMux()
    mux.HandleFunc("/", func(w http.ResponseWriter, req *http.Request) {
        w.Header().Add("Strict-Transport-Security", "max-age=63072000; includeSubDomains")
        w.Write([]byte("This is an example server.\n"))
    })
    cfg := &tls.Config{
        MinVersion:               tls.VersionTLS12,
        CurvePreferences:         []tls.CurveID{tls.CurveP521, tls.CurveP384, tls.CurveP256},
        PreferServerCipherSuites: true,
        CipherSuites: []uint16{
            tls.TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,
            tls.TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA,
            tls.TLS_RSA_WITH_AES_256_GCM_SHA384,
            tls.TLS_RSA_WITH_AES_256_CBC_SHA,
        },
    }
    srv := &http.Server{
        Addr:         ":443",
        Handler:      mux,
        TLSConfig:    cfg,
        TLSNextProto: make(map[string]func(*http.Server, *tls.Conn, http.Handler), 0),
    }
    log.Fatal(srv.ListenAndServeTLS("tls.crt", "tls.key"))

when initializing the http server

from birdwatcher.

annikahannig avatar annikahannig commented on August 15, 2024

should be possible...

from birdwatcher.

Yorgh avatar Yorgh commented on August 15, 2024

Dear Annika,

Thank you for this reply.
We may be able to add this portion of code but we would then have to compile it each time new TLS version or safer Ciphers are proposed.
We might consider it as a workaround but not as a solution.
According to me, we should be able to apply the wanted settings in a configuration file.
Thanks for taking care of it.

from birdwatcher.

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.