Globalrestart required
The Strict-Transport-Security header tells the browser: reach this node only over encryption, and remember that for so many seconds. The line sets the number itself. The default is 0, that is, the browser remembers nothing.
It only works for a browser. A program that reaches the monitor with its own client usually ignores the header — so for the Hub or other automation the line gives nothing.
It becomes meaningful together with http-redirect-to-https. The redirect by itself protects only the request that has already arrived; the header makes the browser not even try an unencrypted connection next time.
We checked on a fleet node: the monitor does return this header with the value max-age=0 — that is, the line is always present in the response, the only question is the number.
The order is exactly this: first encryption, then remembering it:
| Value | When |
|---|---|
| 0 (default) | encryption is optional, programs connect |
| 86400 | trial run: a day of memory, easy to roll back |
| 31536000 | a year, when everything has settled |
Setting the number without enabling http-redirect-to-https is pointless.
# first encryption, then remembering it http-mgmt-port 1000 http-redirect-to-https true http-strict-transport-security-max-age 86400
what people get wrong and how it ends2 mistakes▶
our experience
our experience
1 relation
curl -s -D - -o /dev/null http://NODE:1000/status | grep -i strict-transport
3 articles
◇Who is allowed to submit mail and for whom to accept itOut of the box, the node accepts submission only from the machine itself; two different questions — “who can send through us” and “for whose addresses we accept mail” — are answered by different directives.◇The group that grants management rightsMembership in the pmta group gives an unprivileged user the right to call the node’s commands and use submission.◇How the node selects a source and combines its settingsA connection falls under all source blocks whose addresses cover it, and they act merged — the narrow one overrides the wide one; named blocks are attached only by direct reference.