]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#2173] Some fixes
authorFrancis Dupont <fdupont@isc.org>
Tue, 9 Nov 2021 14:55:59 +0000 (15:55 +0100)
committerRazvan Becheriu <razvan@isc.org>
Wed, 10 Nov 2021 14:15:18 +0000 (14:15 +0000)
doc/examples/ddns/gss-tsig.json
doc/sphinx/arm/ext-gss-tsig.rst

index b3abccd96b1ce3740fe6637e76121f0c81d9f8c9..97aada9b5ff5010cbc18f5d94a6bdceca3dbe53f 100644 (file)
@@ -28,7 +28,8 @@
                     },
                     { // This server also has an entry there, so will
                       // use GSS-TSIG, too.
-                        "ip-address": "192.0.2.2"
+                        "ip-address": "192.0.2.2",
+                        "port": 5300
                     }
                 ]
             }
 
             "server-principal": "DNS/server.example.org@EXAMPLE.ORG",
             "client-principal": "DHCP/admin.example.org@EXAMPLE.ORG",
-            "client-keytab": "FILE:/etc/krb5.keytab", // toplevel only
+            "client-keytab": "FILE:/etc/dhcp.keytab", // toplevel only
             "credentials-cache": "FILE:/etc/ccache", // toplevel only
-            "tkey-lifetime": 3600,
+            "tkey-lifetime": 3600, // 1h
+            "rekey-interval": 2700, // 45mn
+            "retry-interval": 120, // 2mn
             "tkey-protocol": "TCP",
             "fallback": false,
 
@@ -86,7 +89,9 @@
                     "port": 53,
                     "server-principal": "DNS/server1.example.org@EXAMPLE.ORG",
                     "client-principal": "DHCP/admin1.example.org@EXAMPLE.ORG",
-                    "tkey-lifetime": 86400, // 24h
+                    "tkey-lifetime": 7200, // 2h
+                    "rekey-interval": 3600, // 1h
+                    "retry-interval": 600, // 10mn
                     "tkey-protocol": "TCP",
                     "fallback": true // if no key is available fallback to the
                                      // standard behavior (vs skip this server)
index 781f033cf4ea579b2521bff2688e58f069907d6a..bd6c63072f94d961e2e229bb636f6a0a213a9122 100644 (file)
@@ -559,8 +559,8 @@ An excerpt from D2 server is provided below. More examples are available in the
                 "client-keytab": "FILE:/etc/dhcp.keytab", // toplevel only
                 "credentials-cache": "FILE:/etc/ccache", // toplevel only
                 "tkey-lifetime": 3600, // 1h
-                "rekey-interval": 2700, // 45m
-                "retry-interval": 120, // 2m
+                "rekey-interval": 2700, // 45mn
+                "retry-interval": 120, // 2mn
                 "tkey-protocol": "TCP",
                 "fallback": false,
 
@@ -576,9 +576,9 @@ An excerpt from D2 server is provided below. More examples are available in the
                         "port": 53,
                         "server-principal": "DNS/server1.example.org@EXAMPLE.ORG",
                         "client-principal": "DHCP/admin1.example.org@EXAMPLE.ORG",
-                        "tkey-lifetime": 86400, // 24h
-                        "rekey-interval": 64800, // 18h
-                        "retry-interval": 3600, // 1h
+                        "tkey-lifetime": 7200, // 2h
+                        "rekey-interval": 3600, // 1h
+                        "retry-interval": 600, // 10mn
                         "tkey-protocol": "TCP",
                         "fallback": true // if no key is available fallback to the
                                          // standard behavior (vs skip this server)
@@ -655,15 +655,19 @@ The parameters have the following meaning:
   (one hour) if not specified.
 
 - ``rekey-interval`` governs the time interval the keys for each configured
-  server are checked if they expires before the next check cycle, so that
-  new keys are created. The value must be smaller than the ``tkey-lifetime``
-  value. It is expressed in seconds and it defaults to 2700 seconds
-  (45 minutes) if not specified.
+  server are checked for rekeying, i.e. a new key is created to replace
+  the current usable one when its age is greater than the ``rekey-interval``
+  value. The value must be smaller than the ``tkey-lifetime``
+  value, we recommend between 50 and 80 percent of it.
+  It is expressed in seconds and it defaults to 2700 seconds
+  (45 minutes, 75 percent of one hour) if not specified.
 
 - ``retry-interval`` governs the time interval to retry to create a key if
-  any error occured on any key. The value must be smaller than the
-  ``rekey-interval`` value. It is expressed in seconds and it defaults to
-  120 seconds (2 minutes) if not specified.
+  any error occurred on creating a key for a configured server.
+  The value must be smaller than the
+  ``rekey-interval`` value, and should be at most the third of the difference
+  between ``tkey-lifetime`` and ``rekey-interval``. It is expressed in
+  seconds and it defaults to 120 seconds (2 minutes) if not specified.
 
 - ``fallback`` governs the behavior when GSS-TSIG should be used (a
   matching DNS server is configured) but no GSS-TSIG key is available.
@@ -716,14 +720,21 @@ The server map parameters are:
   takes precedence. Default and supported values are the same as for the
   global level parameter.
 
-- ``rekey-interval`` governs the time interval the keys for each configured
-  server are checked if they expires before the next check cycle, so that
-  new keys are created. The rekey interval parameter per server takes
+- ``rekey-interval`` governs the time interval the keys for this particular
+  server are checked for rekeying, i.e. a new key is created to replace
+  the current usable one when its age is greater than the ``rekey-interval``
+  value. The value must be smaller than the ``tkey-lifetime``
+  value, we recommend between 50 and 80 percent of it.
+  The rekey interval parameter per server takes
   precedence. Default and supported values are the same as for the global
   level parameter.
 
 - ``retry-interval`` governs the time interval to retry to create a key if
-  any error occured on any key of this particular server. The retry interval
+  any error occurred creating a key for this server.
+  The value must be smaller than the
+  ``rekey-interval`` value, and should be at most the third of the difference
+  between ``tkey-lifetime`` and ``rekey-interval``.
+  The retry interval
   parameter per server takes precedence. Default and supported values are
   the same as for the global level parameter.