]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
tls-log: deprecate
authorJason Ish <jason.ish@oisf.net>
Thu, 29 Aug 2024 14:51:24 +0000 (08:51 -0600)
committerVictor Julien <victor@inliniac.net>
Fri, 30 Aug 2024 13:19:02 +0000 (15:19 +0200)
tls-log is now deprecated and will be removed in Suricata 9.0. Display
a deprecation notice on use, and add notes to the user guide.

Ticket: #6542

doc/userguide/configuration/suricata-yaml.rst
doc/userguide/output/custom-tls-logging.rst
doc/userguide/upgrade.rst
src/log-tlslog.c
suricata.yaml.in

index 75cf05a7af672579bb0cef36a57b85bf46e4a117..f5f3101aaeca2449292527ccdb8b5402d64aee51 100644 (file)
@@ -403,6 +403,9 @@ The format is documented in :ref:`Eve JSON Format <eve-json-format>`.
 TLS parameters and certificates logging (tls.log)
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
+.. attention:: tls-log is deprecated in Suricata 8.0 and will be
+               removed in Suricata 9.0.
+
 The TLS handshake parameters can be logged in a line based log as well.
 By default, the logfile is `tls.log` in the suricata log directory.
 See :ref:`Custom TLS logging <output-custom-tls-logging>` for details
index 682d32045123bcdf853d793f609c1c0faf469bfc..29474886c0037eb2182d898830b3c8f214d8bdc8 100644 (file)
@@ -3,6 +3,9 @@
 Custom tls logging
 ===================
 
+.. attention:: tls-log is deprecated in Suricata 8.0 and will be
+               removed in Suricata 9.0.
+
 In your Suricata.yaml, find the tls-log section and edit as follows:
 
 ::
index 591ca986eafa3200fbe2e8379a6788a391640cea..885b8d95dbbe46a8e597a95c15c36e9b49f9a059 100644 (file)
@@ -79,6 +79,7 @@ Removals
 Deprecations
 ~~~~~~~~~~~~
 - The ``http-log`` output is now deprecated and will be removed in Suricata 9.0.
+- The ``tls-log`` output is now deprecated and will be removed in Suricata 9.0.
 
 Upgrading 6.0 to 7.0
 --------------------
index 12e235c21ac09680a2d30d8f9ccbd3a05f31b8ec..3b4db18049d8a20be3a0ddf39d1bcc4356c7fe45 100644 (file)
@@ -201,6 +201,8 @@ static void LogTlsLogExitPrintStats(ThreadVars *tv, void *data)
  * */
 static OutputInitResult LogTlsLogInitCtx(ConfNode *conf)
 {
+    SCLogWarning("The tls-log output has been deprecated and will be removed in Suricata 9.0.");
+
     OutputInitResult result = { NULL, false };
     LogFileCtx* file_ctx = LogFileNewCtx();
 
index a8a63ec357ea3669bd7b5adcd9f7686d50c0f3da..5a61c8050f1f02c17a2f04c740a1a00f03013966 100644 (file)
@@ -352,19 +352,6 @@ outputs:
         #   state-update: false             # log packets triggering a TCP state update
         #   spurious-retransmission: false  # log spurious retransmission packets
 
-  # a line based log of TLS handshake parameters (no alerts)
-  - tls-log:
-      enabled: no  # Log TLS connections.
-      filename: tls.log # File to store TLS logs.
-      append: yes
-      #extended: yes     # Log extended information like fingerprint
-      #custom: yes       # enabled the custom logging format (defined by customformat)
-      #customformat: "%{%D-%H:%M:%S}t.%z %a:%p -> %A:%P %v %n %d %D"
-      #filetype: regular # 'regular', 'unix_stream' or 'unix_dgram'
-      # output TLS transaction where the session is resumed using a
-      # session id
-      #session-resumption: no
-
   # output module to store certificates chain to disk
   - tls-store:
       enabled: no