sslkeylog: Allows toggling of SSL key logging on or off without restarting the application #3267
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.
@lws-team
Added Support for LWS_KEYLOGFILE with Dynamic SSL Key Logging :
Problem: In the existing SSL key log feature, the environment variable is set or unset only during
vhost
initialization, which requires the application to restart to start or stop diagnostic sessions. Many customer environments do not allow restarting the application solely to initiate a diagnostic session.Solution: To allow toggling of session key logging without restarting the application:
usr_ctx
, If the flag is true, the environment variable file path is extracted and assigned tolws-keylog_file
, starting the diagnostic session. If the flag is false, the existing flow continues. This enables dynamic toggling of SSL key logging.Note: The changes have been validated across multiple scenarios, confirming that the new functionality works without disrupting existing behavior.