Browse Source

[trac875] Comments & descriptions

Michal 'vorner' Vaner 14 years ago
parent
commit
d3da4f1f4f
2 changed files with 9 additions and 1 deletions
  1. 8 1
      src/bin/cfgmgr/plugins/tsig_keys.py
  2. 1 0
      src/bin/cfgmgr/plugins/tsig_keys.spec

+ 8 - 1
src/bin/cfgmgr/plugins/tsig_keys.py

@@ -13,6 +13,12 @@
 # NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
 # WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
+# This is the plugin for tsig_keys configuration section. The TSIG keyring
+# lives there (eg. all the shared secrets, with some exceptions where there
+# are some TSIG keys elsewhere, but these should be removed soon). We do
+# sanity checking of user configuration here, simply by trying to construct
+# all the keys here.
+
 from isc.config.module_spec import module_spec_from_file
 from isc.util.file import path_search
 from pydnspp import TSIGKey, InvalidParameter
@@ -26,7 +32,8 @@ def check(config):
         return ' '.join(errors)
     # Get the list of keys, if any
     keys = config.get('keys', [])
-    # Run trough them, check they can be constructed and there are no dupes
+    # Run through them, check they can be constructed and there are no
+    # duplicates
     keyNames = set()
     for key in keys:
         try:

+ 1 - 0
src/bin/cfgmgr/plugins/tsig_keys.spec

@@ -1,6 +1,7 @@
 {
     "module_spec": {
         "module_name": "tsig_keys",
+        "module_description": "The TSIG keyring is stored here",
         "config_data": [
             {
                 "item_name": "keys",