Skip to content

v1.0.3 — TLS 1.2/1.3 only, and the removed `ssl on` directive

Latest

Choose a tag to compare

@snuids snuids released this 26 Nov 16:13

TLS 1.0 and 1.1 are gone

ssl_protocols TLSv1 TLSv1.1 TLSv1.2 becomes TLSv1.2 TLSv1.3 in the three server blocks
that serve TLS: :443 (the console), :9200 (Elasticsearch) and :61619 (the ActiveMQ console).
TLS 1.0 and 1.1 have been deprecated since RFC 8996 and are refused by every current browser;
nothing in the stack needs them.

The cipher list is unchanged, and a comment now says why it does not need to be: ssl_ciphers
governs TLS 1.2 only, TLS 1.3 suites are chosen by OpenSSL.

And a proxy that would not have started

The same blocks used ssl on; with a bare listen 443;. That directive was deprecated in nginx
1.15 and removed in 1.25 — and this stack runs openresty/openresty:alpine, a floating tag.
On any current image the config fails to load with unknown directive "ssl", so the next pull
would have left the platform without a reverse proxy. The three blocks now use the modern form:

listen 443   ssl;
listen 9200  ssl;
listen 61619 ssl;

Same behaviour as before, on the nginx that ships today.

Upgrading

cd nyx/nginx && docker compose exec nginx nginx -t    # must pass before anything else
cd ../docker-compose && docker compose up -d nginx

If nginx -t fails on a block other than these three, the config was already broken on this
image — the fix is not to restore ssl on, it is to give that block a listen ... ssl.

Still open

openresty/openresty:alpine is still unpinned, which is what made this a trap rather than a
non-event. Pinning it is the next stack change worth making.