Repository navigation
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
Closed
fix(ssl-session-ticket): take over the keys of every business listener, a native key file included#14306AlinsRan wants to merge 3 commits into
AlinsRan wants to merge 3 commits into
Conversation
…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.
4 of 5 tasks
It bundles apisix-nginx-module 1.21.1, which ignores a native ssl_session_ticket_key on a listener that takes over its keys.
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 ofnginx_configfor 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:ssl_session_ticket_keyon these listeners is ignored, withignoring "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
Tests:
t/cli/test_ssl_session_ticket_takeover.shstarts 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.