You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f3fbfa2
Browse filesBrowse the repository at this point in the historyBrowse files
support: redact secrets from the collected configuration
Private keys, password hashes and RADIUS secrets are of no use to
support and a hazard in transit. Export the datastores with copy -r
and drop the environment dump. --no-redact keeps them, the RPC always
redacts.
Signed-off-by: Mattias Walström <lazzer@gmail.com>
Verify that the support-collect RPC returns a valid archive with the
8
-
expected content, that the archive can be GPG encrypted, and that NACM
9
-
denies the RPC to users outside the admin group.
8
+
expected content, that private keys and login hashes are removed from
9
+
the configuration in it, that the archive can be GPG encrypted, and
10
+
that NACM denies the RPC to users outside the admin group.
10
11
11
12
==== Topology
12
13
@@ -15,9 +16,17 @@ image::topology.svg[Support Data Collection topology, align=center, scaledwidth=
15
16
==== Sequence
16
17
17
18
. Set up topology and attach to target DUT
18
-
. Collect support data with the support-collect RPC
19
-
. Verify the archive returned by the RPC
20
-
. Add user 'supportless', outside the admin NACM group
21
-
. Verify user 'supportless' is denied the support-collect RPC
22
-
. Collect an encrypted archive with the support-collect RPC
23
-
. Decrypt the encrypted archive and verify it
19
+
. Call the infix-system:support-collect RPC without a password
20
+
. Base64 decode the 'data' reply to a .tar.gz file, verify its length matches the 'size' reply
21
+
. Verify the archive holds collection.log, running-config.json, operational-config.json, system/dmesg.txt, system/meminfo.txt and network/ip/addr.json
22
+
. Verify running-config.json in the archive has the ietf-keystore:keystore container and the admin user
23
+
. Verify the admin user in running-config.json has no password leaf
24
+
. Verify neither running-config.json nor operational-config.json has any password, cleartext-private-key, cleartext-symmetric-key or shared-secret leaf
25
+
. Add user 'supportless' with password 'supportless-password', member of no NACM group
26
+
. Verify the support-collect RPC is denied when called as 'supportless'
27
+
. Call the support-collect RPC with password 'test-support-password-123'
28
+
. Base64 decode the reply to a .gpg file, decrypt it with gpg and the same password
29
+
. Verify the decrypted archive holds the same files as the first one
30
+
. Verify the decrypted archive has the same secrets removed
0 commit comments