TechPrufer
InterviewBlogEngineering
Sign inGet started
TechPrufer
Feed
CareerApplicationsTailor
ResourcesInterview QuestionsSalaries
Engineering Notes
Library
SavedHistory
Save your progress

Sign in to save posts, track applications and tailor resumes.

Sign in
BlogsCloudflare
Exposing Go Services to the Internet
Cloudflare
Cloudflare logoCloudflare · Feature trail

Exposing Go Services to the Internet

1 post · Dec 2016

What this trail covers

This post details how to securely expose Go services to the internet by hardening the `crypto/tls` and `net/http` stacks. It covers TLS configuration, timeouts, HTTP/2 considerations, TCP Keep-Alives, and best practices for using `ServeMux` and logging. The post emphasizes the importance of upgrading to Go 1.8 for critical bug fixes and performance improvements in TLS and HTTP/2 handling.

All Cloudflare trails
  1. Dec 2016So you want to expose Go on the InternetThis post provides specific guidance on configuring Go's `crypto/tls` and `net/http` packages for production internet exposure. It details recommended `tls.Config` settings for security and performance, including `PreferServerCipherSuites`, `CurvePreferences`, `MinVersion`, and `CipherSuites`, while warning about the Lucky13 attack on CBC cipher suites. It also explains the critical role of `ReadTimeout`, `WriteTimeout`, and `IdleTimeout` in resource control and preventing denial-of-service attacks, highlighting differences in their application for HTTP/1.1 and HTTP/2, and the importance of upgrading to Go 1.8. Best practices for avoiding global `http.DefaultServeMux` and managing `Server.ErrorLog` are also covered.
  2. Advertisement

What this trail covers

This post details how to securely expose Go services to the internet by hardening the `crypto/tls` and `net/http` stacks. It covers TLS configuration, timeouts, HTTP/2 considerations, TCP Keep-Alives, and best practices for using `ServeMux` and logging. The post emphasizes the importance of upgrading to Go 1.8 for critical bug fixes and performance improvements in TLS and HTTP/2 handling.

All Cloudflare trails

Interview questions

All companies
  • M
    Meta interview questions
  • U
    Uber interview questions
  • A
    Apple interview questions
  • S
    Stripe interview questions
  • N
    Netflix interview questions
  • A
    Anthropic interview questions
  • G
    Google interview questions
  • A
    Amazon interview questions

Salaries

All salaries
  • M
    Microsoft salaries
  • A
    Amazon salaries
  • G
    Google salaries
  • S
    Salesforce salaries
  • O
    Oracle salaries
  • P
    PayPal salaries
  • G
    Goldman Sachs salaries
  • A
    Adobe salaries

Product

  • Resume Editor
  • Job Tailor
  • Application Tracker
  • LinkedIn Improver
  • Chrome Extension
© 2026 TechPrufer · techprufer.com
TermsPrivacy
FeedCareerResourcesBlogs