summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2016-05-07 01:10:53 +0300
committerytti <saku@ytti.fi>2016-05-07 01:10:53 +0300
commite56d23e886f96689ad4089f00667acb837ce05f9 (patch)
tree6761568ddf71f73a44af5978429d91ea1b9ed464
parentb79eb20eb8c06ccd69e79f5791b05e359d0122cb (diff)
parentd2dd80200e6a2df8fe4fa51cf1c2d91e6e744bcf (diff)
Merge pull request #414 from jkrauska/master
Document remove_secret
-rw-r--r--README.md24
1 files changed, 24 insertions, 0 deletions
diff --git a/README.md b/README.md
index 6bc3b39..cc19144 100644
--- a/README.md
+++ b/README.md
@@ -292,6 +292,30 @@ vars:
enable: S3cre7
```
+### Removing secrets
+
+To strip out secrets from configurations before storing them, Oxidized needs the the remove_secrets flag. You can globally enable this by adding the following snippet to the global sections of the configuration file.
+
+```
+vars:
+ remove_secret: true
+```
+
+Device models can contain substitution filters to remove potentially sensitive data from configs.
+
+As a partial example from ios.rb:
+
+```
+ cmd :secret do |cfg|
+ cfg.gsub! /^(snmp-server community).*/, '\\1 <configuration removed>'
+ (...)
+ cfg
+ end
+```
+The above strips out snmp community strings from your saved configs.
+
+**NOTE:** Removing secrets reduces the usefulness as a full configuration backup, but it may make sharing configs easier.
+
### Source: CSV
One line per device, colon seperated.