The deployment shape: a single process connecting TLS directly
One Go process listens on 443 itself and issues certificates itself: how narrow the listening surface is, when 8086 closes, that certificate installation needs consent to terms first, and the cost of this shape.
This machine's deployment shape can be said in one sentence: one Go process that listens on 443 itself, does TLS itself, and issues certificates itself. No nginx, no CDN, no sidecar, and no assumption that "the layer in front will shield us a bit". This section says what this choice buys and what it costs.
Why not make it "app + reverse proxy". What is sold is a self-hosted site, and the machine it is installed on is often the trading company's own little Windows or Linux box. One more proxy layer is one more piece of configuration: who forwards Host, who preserves the source address, how timeouts align, which side the certificate sits on. The symptom of getting these wrong is not an error; it is bad shapes like "all visitors share one rate-limit bucket" or "when tracing by IP it records the proxy's address" that look normal. Take the proxy away, and this whole class of problems does not exist.
The listening surface is narrower than you think. After installation only 80/443 remain as external ports; the drive client and visitor interfaces reuse the same routing and open no extra ports. The install-time plaintext administration channel (default 8086) is only open during the first initialization, and closes automatically after installation; an initialized instance never reopens it on restart. When it is bound to a non-loopback address, the boot log explicitly writes one sentence: that this channel only serves the administration surface, the public site returns 403 on it, password and cookie travel in plaintext, and how to turn it off. Leaving it rather than shrinking it by default is because this site set itself a rule — when the authorization state is broken, there must be an entrance that does not ask anyone; narrowing that path would close the only door that can rescue the site remotely.
Certificate issuance needs your consent once. Automatic issuance means agreeing to that certificate authority's terms of service, so the one-line install must explicitly carry --accept-tos; without it, it stops at the argument-check stage, rather than letting the process come up, refusing at the registration stage, and finally having the health check report "the service is up but not answering". The certificate module always registers: when TLS is turned off it honestly reports disabled, rather than disappearing. The ACME account key and the domain private key land in that cell in the data directory, and the whole-site archive carries them away together — this is the necessary condition for "the backup can be moved to another machine and restored", and one of the reasons the archive needs a separate permission code to be taken.
The performance diagnostics port has explicit open/close rules. pprof can be turned on for troubleshooting, but binding it outside the machine requires an explicit flag; otherwise it only records one error and does not listen. The reason is not fussiness: the pprof port has no authentication, and heap dumps contain passwords and sessions. The empty host (:6060) counts as "all interfaces", not "this machine" — this is the cell easiest to write wrong among such criteria.
The built-in request protection is not a WAF. By default it only counts and does not block (detect); explicit configuration switches it to enforcement mode; and even enforcement mode only returns 429 plus a retry-after time for over-budget requests, without blocking the source address — blocking only follows the "looks like scanning" class. This default is a product decision, not something unfinished: a rate limiter that has never seen a site's real traffic locks the customer's office out with probability as high as it blocks attackers. If you want it on, first look at the bucket over-limit counts in the backend under "Operations Metrics › Request Protection", then decide which bucket to enable.
Single-site is a product constraint. No multi-tenancy, no site switching, no tenant-isolated backend routing. One machine, one site; configuration serves the current site by default.
The cost is also stated. Direct connection means this machine must be able to reach the network to get certificates, must be able to receive 80/443, and the system clock must not drift absurdly (authorization and TLS both look at the time); it means there is no one else's cache layer to absorb traffic bursts for you, and the public pages' cache policy must be made right by yourself. These are not a list of shortcomings; they are the boundary of this shape — putting it up front is so the judgment "dare we put it into production" has a basis.