summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2012-11-06 13:34:01 -0500
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2012-11-06 13:34:01 -0500
commitb7294206ffd1248997679eaaf5daa53a0a315054 (patch)
tree771bd356d0f234ce1885def0f4c4500c4097068e /doc
parent5bc666e0f90b6bf1294003043f734de2d74d1a20 (diff)
downloadbcfg2-b7294206ffd1248997679eaaf5daa53a0a315054.tar.gz
bcfg2-b7294206ffd1248997679eaaf5daa53a0a315054.tar.bz2
bcfg2-b7294206ffd1248997679eaaf5daa53a0a315054.zip
Properties: allow lax decryption, where failure to decrypt an element is not fatal and parsing of that file continues
Diffstat (limited to 'doc')
-rw-r--r--doc/server/plugins/connectors/properties.txt17
1 files changed, 17 insertions, 0 deletions
diff --git a/doc/server/plugins/connectors/properties.txt b/doc/server/plugins/connectors/properties.txt
index 2a037df94..1d276697a 100644
--- a/doc/server/plugins/connectors/properties.txt
+++ b/doc/server/plugins/connectors/properties.txt
@@ -150,6 +150,9 @@ raw data, the following access methods are defined:
for el in metadata.Properties['ntp.xml'].XMLMatch(metadata).findall("//Server")]
%}
+ ``XMLMatch()`` can be run automatically on properties files by using
+ the :ref:`server-plugins-connectors-properties-automatch` feature.
+
You can also access the XML data that comprises a property file
directly in one of several ways:
@@ -282,6 +285,20 @@ with the other data in the file. Only character content of an element
can be encrypted; attribute content and XML elements themselves cannot
be encrypted.
+By default, decryption is *strict*; that is, if any element cannot be
+decrypted, parsing of the file is aborted. If you wish for parsing to
+continue, with unencryptable elements simply skipped, then you can set
+decryption to *lax* in one of two ways:
+
+* Set ``decrypt=lax`` in the ``[properties]`` section of
+ ``bcfg2.conf`` to set lax decryption on all Properties files by
+ default; or
+* Set the ``decrypt="lax"`` attribute on the top-level ``Properties``
+ tag of a Properties file to set lax decryption for a single file.
+
+Note that you could, for instance, set lax decryption by default, and
+then set strict decryption on individual files.
+
To encrypt or decrypt a file, use :ref:`bcfg2-crypt`.
See :ref:`server-encryption` for more details on encryption in Bcfg2