]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Deprecate the `options` parameter of `HTTPStatusAction` 15526/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 6 May 2025 13:07:31 +0000 (15:07 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 6 May 2025 13:09:58 +0000 (15:09 +0200)
As noted in #14791, it is probably not working as expected and there
is no practical use for it anyway.

pdns/dnsdistdist/dnsdist-actions-definitions.yml
pdns/dnsdistdist/docs/reference/actions.rst
pdns/dnsdistdist/docs/reference/yaml-actions.rst
pdns/dnsdistdist/docs/upgrade_guide.rst

index b7fe49e7b2fce358d88db119e41b6973eb641189..dd6073fae28659107e4be605c5dbef7757f29364 100644 (file)
@@ -79,7 +79,7 @@
     - name: "vars"
       type: "ResponseConfig"
       default: true
-      description: "The response options"
+      description: "The response options (deprecated since 2.0.0, do not use)"
 - name: "KeyValueStoreLookup"
   description: "Does a lookup into the key value store using the key returned by ``lookup_key_name``, and storing the result if any into the tag named ``destination_tag``. The store can be a ``CDB`` or a ``LMDB`` database.  The key can be based on the qname, source IP or the value of an existing tag. Subsequent rules are processed after this action. Note that the tag is always created, even if there was no match, but in that case the content is empty"
   skip-cpp: true
index 6ad2bb6d49643958474d8e0249ba667a05972682..8b5bdefc13e9be868ff38d6b224a45267e66f344 100644 (file)
@@ -174,12 +174,15 @@ The following actions exist.
   .. versionchanged:: 1.5.0
     Added the optional parameter ``options``.
 
+  .. versionchanged:: 2.0.0
+    The ``options`` parameter is now deprecated.
+
   Return an HTTP response with a status code of ''status''. For HTTP redirects, ''body'' should be the redirect URL.
 
   :param int status: The HTTP status code to return.
   :param string body: The body of the HTTP response, or a URL if the status code is a redirect (3xx).
   :param string contentType: The HTTP Content-Type header to return for a 200 response, ignored otherwise. Default is ''application/dns-message''.
-  :param table options: A table with key: value pairs with options.
+  :param table options: A table with key: value pairs with options. Deprecated since 2.0.0 as it had unexpected side-effects.
 
   Options:
 
index c7349d9eab91c78d0f8331e760c9b94beaa64750..8544483e51444cd2793c521b1f48872e70d7d177 100644 (file)
@@ -117,7 +117,7 @@ Parameters:
 - **status**: Unsigned integer - The HTTP status code to return
 - **body**: String - The body of the HTTP response, or a URL if the status code is a redirect (3xx)
 - **content_type**: String ``("")`` - The HTTP Content-Type header to return for a 200 response, ignored otherwise. Default is ``application/dns-message``
-- **vars**: :ref:`ResponseConfig <yaml-settings-ResponseConfig>` - The response options
+- **vars**: :ref:`ResponseConfig <yaml-settings-ResponseConfig>` - The response options (deprecated since 2.0.0, do not use)
 
 
 .. _yaml-settings-KeyValueStoreLookupAction:
index 165eccffaf931b205bc80bc34642f4bd1aa3d0cf..b35182944cf1ea3fb4b86eb53f12497961c5f7ce 100644 (file)
@@ -15,6 +15,8 @@ XPF support has been removed.
 
 :meth:`Server:setAuto` used to reset the health-check mode to ``active`` even if it had previously been set to ``lazy`` via :meth:`Server:setLazyAuto`. This is no longer the case, and :meth:`Server:setActiveAuto` should be used instead to set the health-check mode to ``Active``.
 
+The ``options`` parameter of :func:`HTTPStatusAction` has been deprecated because it had unexpected side-effects, and should thus no longer be used.
+
 1.8.x to 1.9.0
 --------------