Skip to content

fix(ssl-session-ticket): take over the keys of every business listener, a native key file included - #14306

Closed
AlinsRan wants to merge 3 commits into
apache:feat/ssl-session-ticket-keysfrom
AlinsRan:fix/ssl-session-ticket-native-key
Closed

AlinsRan wants to merge 3 commits into
apache:feat/ssl-session-ticket-keysfrom
AlinsRan:fix/ssl-session-ticket-native-key

Conversation

@AlinsRan

@AlinsRan AlinsRan commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Description

Follow-up of #14290, into its branch.

With APISIX Runtime 1.5.0, a business TLS listener that takes over its session ticket keys refuses a native ssl_session_ticket_key, and NGINX does not start. #14290 has the CLI scan the snippets of nginx_config for the directive and keep the native tickets on those listeners, but a directive that comes from an included file escapes the scan, so such a configuration fails to start (review of #14290).

apisix-nginx-module 1.21.1 (api7/apisix-nginx-module#145) handles the conflict in the Runtime: a listener that takes over its keys ignores ssl_session_ticket_key, set in it, inherited or included, logs an error and keeps the takeover. With it:

  • the CLI no longer scans the snippets: every business TLS listener takes over its keys;
  • a native ssl_session_ticket_key on these listeners is ignored, with ignoring "ssl_session_ticket_key" (takeover configured at <file>:<line>) in the error log. Its keys can be submitted as external keys.

It pins APISIX Runtime 1.5.1, which bundles apisix-nginx-module 1.21.1.

Which issue(s) this PR fixes:

None.

Checklist

  • I have explained the need for this PR and the problem it solves
  • I have explained the changes or the new features added to this PR
  • I have added tests corresponding to this change
  • I have updated the documentation to reflect this change
  • I have verified that this change is backward compatible (If not, please discuss on the APISIX mailing list first)

Tests: t/cli/test_ssl_session_ticket_takeover.sh starts a fresh node with a native key file on the HTTPS and the Stream TLS listeners, set in the snippets and then included from another file. In both forms the node starts, logs the error once per listener, issues TLSv1.2 tickets with the shared key and resumes their sessions.

…r, a native key file included

Keep the takeover of the business TLS listeners whatever the snippets of
nginx_config set: APISIX Runtime 1.5.1 ignores a native
ssl_session_ticket_key on them and logs an error, also when it comes
from an included file, which the CLI could not see.
It bundles apisix-nginx-module 1.21.1, which ignores a native
ssl_session_ticket_key on a listener that takes over its keys.
@AlinsRan
AlinsRan changed the base branch from master to feat/ssl-session-ticket-keys December 2, 2026 09:53
@AlinsRan

AlinsRan commented Dec 2, 2026

Copy link
Copy Markdown
Contributor Author

Folded into #14290 (29df8a0, 1facbba).

@AlinsRan AlinsRan closed this Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant