aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/report_tests/plugin_tests/juju/agent.conf219
-rw-r--r--tests/report_tests/plugin_tests/juju/juju.py40
-rw-r--r--tests/report_tests/plugin_tests/networking/90-NM-d377ae8e-fff5-11ee-bd96-07ef2a5f9e02.yaml25
-rw-r--r--tests/report_tests/plugin_tests/networking/networking.py (renamed from tests/report_tests/plugin_tests/networking.py)22
4 files changed, 305 insertions, 1 deletions
diff --git a/tests/report_tests/plugin_tests/juju/agent.conf b/tests/report_tests/plugin_tests/juju/agent.conf
new file mode 100644
index 00000000..69258243
--- /dev/null
+++ b/tests/report_tests/plugin_tests/juju/agent.conf
@@ -0,0 +1,219 @@
+# format 2.0
+tag: machine-0
+datadir: /var/lib/juju
+transient-datadir: /var/run/juju
+logdir: /var/log/juju
+metricsspooldir: /var/lib/juju/metricspool
+nonce: user-admin:bootstrap
+jobs:
+- JobManageModel
+- JobHostUnits
+upgradedToVersion: 2.9.47
+cacert: |
+ -----BEGIN CERTIFICATE-----
+ MIIEEjCCAnqgAwIBAgIUXRUjAHgO+z8hifta518W/MvxZ9gwDQYJKoZIhvcNAQEL
+ BQAwITENMAsGA1UEChMESnVqdTEQMA4GA1UEAxMHanVqdS1jYTAeFw0yNDAyMDYx
+ MTUxNTNaFw0zNDAyMDYxMTU2NTNaMCExDTALBgNVBAoTBEp1anUxEDAOBgNVBAMT
+ B2p1anUtY2EwggGiMA0GCSqGSIb3DQEBAQUAA4IBjwAwggGKAoIBgQCfDj2vFQls
+ DlV4C7uObnHcmkdCve8Bn8Bqjov+GtTsnfdqidVUKbImQbWiagaBPTP2uuwHo7ak
+ 2zp7ZrP3TRmgsUSIx6O+OEUqWPQ6cqZ4D2rB8iWuHzTLcT/pUo60g3ydwtKwcgcx
+ /4x2ioy/j5DoINEzkUfJRr53D0mQldmT2zRcGYjELBy10Dn+aKWmfC5xWfwLEYqJ
+ pdvPH9gDAvwGrzz9E3NCtwjUwBwjJPHhj2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54-804c-59882170d3a6
+apiaddresses:
+- 10.28.18.119:17070
+apipassword: cR97RRZheQgiLDrnkGxp8mlE
+oldpassword: 111512798b7abbd4c2884e4de83d7989
+loggingconfig: <root>=INFO
+values:
+ AGENT_SERVICE_NAME: jujud-machine-0
+ CONTAINER_TYPE: ""
+ NUMA_CTL_PREFERENCE: "false"
+ PROVIDER_TYPE: lxd
+agent-logfile-max-size: 100
+agent-logfile-max-backups: 2
+controllercert: |
+ -----BEGIN CERTIFICATE-----
+ MIIEfjCCAuagAwIBAgIVANVl9irudWew6MVfGuzX85+5nW/OMA0GCSqGSIb3DQEB
+ CwUAMCExDTALBgNVBAoTBEp1anUxEDAOBgNVBAMTB2p1anUtY2EwHhcNMjQwMjA2
+ MTE1MjQwWhcNMzQwMjA2MTE1NzQwWjBtMQ0wCwYDVQQKEwRKdWp1MS0wKwYDVQQD
+ EyRKdWp1IHNlcnZlciBjZXJ0aWZpY2F0ZSAtIGNvbnRyb2xsZXIxLTArBgNVBAUT
+ JDQ3YmNiNzQ5LWYxYTUtNDBhMS04NWVmLTE5OTM3N2FjMGNiYTCCAaIwDQYJKoZI
+ hvcNAQEBBQADggGPADCCAYoCggGBALzpvEWdgNgWyyBYOShQ/3ZAzESaMevycKXz
+ GnA86uw7keVxq4vqdzWp4wleOA1ZJ+W+Rm9xF8wXzdqz7i73zYa90qtKkies0faE
+ 1/OsMO0IbKH8YEYmxleV5sRyl/+jB/kPuXOr3HbQ/5Gay7pUwdh+XkKK1WJWwaS4
+ Ve7d7WnuSNAbKXGyqbil0/8dpNIFv4X9k3WrfjRamo7KREJtfHkKjFgdTS4PfVWb
+ BCZJhcE/JzE/FQ6/mwoa6tFySfwp0dyndKtVmRp/Egf2NCfCjCywfYqZgYCfenba
+ 2RnvxrFBaPgHghDbrl65+ccOoPaf2aOimOx0C/zHbysOPHc0w1XYfvZTrsffVvw1
+ O6+MjC/QhjbVppwJUTNR6oYb3OiFrnhzZ65B1Rk/cZvsBnMA2jXHuQCmrQ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a65VDJCKu8kw9UuBKpFPZXuiw
+ J/yZibYKp3j4FLVx1dxhp9D8uaSZc37KzeCcaR8CgYAA882IRtLDQRf5lfd67EXZ
+ 4+EH/xvLrr6T/JwMZ2JEmCBgL1Y0NhsLe8iUkmjy5wUVDIrNabx6/Xnq5uwvHMjw
+ C1zLiUroX4g4QsKYltlb3AP0tWBeVP9XMX34xik7lU2o0N+jw/clS/GjqL4Jifo5
+ xJ6ksXw1eWjI4rHF0gUlwQKBgDWeSP1vEPT+cs7mlWirF/zSx7JRX2846OiabYMa
+ OePH9B7Ug29rlDsn0h0jt0cd2FhYTFnW4NbCUDSY0lFkTvCCLQeIvvIZIh/pUwoL
+ Fx+8djo+q9dA+T/wYiy0iw603N+joz6tWiRfwz2LG3gbyVL+zR78yz9Bv4JIOPEu
+ LIwbAoGBAI8Nx9UcD3vy4Q8PkI6FN/GLN+rPwl9vOfeGEIdU/nH21JaJi287U2G3
+ zEEzX4rY3dmLtEs3r2TMQwRUkmm9846iorjgxi+K+5zVtM7SK/TXqUDaJ9tCGtcX
+ L/x36ewmw1rsKYlFI5X/6qM6n5DIKU+IJGNj5VSYb1u3Q7TZZ1yF
+ -----END RSA PRIVATE KEY-----
+mongoversion: 4.4.18/wiredTiger
+mongomemoryprofile: default
+juju-db-snap-channel: 4.4/stable
diff --git a/tests/report_tests/plugin_tests/juju/juju.py b/tests/report_tests/plugin_tests/juju/juju.py
new file mode 100644
index 00000000..3f4e3347
--- /dev/null
+++ b/tests/report_tests/plugin_tests/juju/juju.py
@@ -0,0 +1,40 @@
+# This file is part of the sos project: https://github.com/sosreport/sos
+#
+# This copyrighted material is made available to anyone wishing to use,
+# modify, copy, or redistribute it subject to the terms and conditions of
+# version 2 of the GNU General Public License.
+#
+# See the LICENSE file in the source distribution for further information.
+
+from sos_tests import StageTwoReportTest
+
+
+class JujuAgentConfScrubbedTest(StageTwoReportTest):
+ """Ensure that agent conf is picked up and properly scrubbed
+
+ :avocado: tags=stagetwo
+ """
+
+ sos_cmd = '-o juju'
+ ubuntu_only = True
+ files = [('agent.conf', '/var/lib/juju/agents/machine-0/agent.conf')]
+
+ def test_unit_agent_conf_collected(self):
+ self.assertFileCollected('/var/lib/juju/agents/machine-0/agent.conf')
+
+ def test_unit_agent_conf_scrubbed(self):
+ # Ensure that we scrubbed all passwords/secrets and the certificates
+ check_text_scrub = [
+ 'cR97RRZheQgiLDrnkGxp8mlE',
+ '111512798b7abbd4c2884e4de83d7989',
+ 'FaIBoxLXcbn6RghOnbZBh0r7v8a8PTdQWJ9fG5ey6OJLjTSd/Fk8',
+ 'MIIEEjCCAnqgAwIBAgIUXRUjAHgO+z8hifta518W/MvxZ9gwDQYJKoZIhvcNAQEL',
+ 'MIIEfjCCAuagAwIBAgIVANVl9irudWew6MVfGuzX85+5nW/OMA0GCSqGSIb3DQEB',
+ 'MIIEEjCCAnqgAwIBAgIUXRUjAHgO+z8hifta518W/MvxZ9gwDQYJKoZIhvcNAQEL',
+ 'MIIG/AIBADANBgkqhkiG9w0BAQEFAASCBuYwggbiAgEAAoIBgQC86bxFnYDYFssg',
+ 'MIIG/gIBADANBgkqhkiG9w0BAQEFAASCBugwggbkAgEAAoIBgQCfDj2vFQlsDlV4',
+ 'MIIEowIBAAKCAQEAsQmlk3a4OBmBNSy43bl66+rX+5sTsu+2yO93E/iGuzmGqX0t',
+ ]
+ for text in check_text_scrub:
+ self.assertFileNotHasContent(
+ '/var/lib/juju/agents/machine-0/agent.conf', text)
diff --git a/tests/report_tests/plugin_tests/networking/90-NM-d377ae8e-fff5-11ee-bd96-07ef2a5f9e02.yaml b/tests/report_tests/plugin_tests/networking/90-NM-d377ae8e-fff5-11ee-bd96-07ef2a5f9e02.yaml
new file mode 100644
index 00000000..c3f9c148
--- /dev/null
+++ b/tests/report_tests/plugin_tests/networking/90-NM-d377ae8e-fff5-11ee-bd96-07ef2a5f9e02.yaml
@@ -0,0 +1,25 @@
+network:
+ version: 2
+ wifis:
+ NM-d377ae8e-fff5-11ee-bd96-07ef2a5f9e02:
+ renderer: NetworkManager
+ match:
+ name: "wlp166s0"
+ dhcp4: true
+ access-points:
+ "arif-home":
+ auth:
+ key-management: "psk"
+ password: "awifipasswordforauth"
+ networkmanager:
+ uuid: "d377ae8e-fff5-11ee-bd96-07ef2a5f9e02"
+ name: "wifi-guest"
+ passthrough:
+ connection.timestamp: "1694069964"
+ ipv6.addr-gen-mode: "default"
+ ipv6.method: "disabled"
+ ipv6.ip6-privacy: "-1"
+ proxy._: ""
+ networkmanager:
+ uuid: "d377ae8e-fff5-11ee-bd96-07ef2a5f9e02"
+ name: "wifi-guest"
diff --git a/tests/report_tests/plugin_tests/networking.py b/tests/report_tests/plugin_tests/networking/networking.py
index 360d5552..77afe6d5 100644
--- a/tests/report_tests/plugin_tests/networking.py
+++ b/tests/report_tests/plugin_tests/networking/networking.py
@@ -8,7 +8,7 @@
import os
-from sos_tests import StageOneReportTest
+from sos_tests import StageOneReportTest, StageTwoReportTest, ubuntu_only
class NetworkingPluginTest(StageOneReportTest):
@@ -39,3 +39,23 @@ class NetworkingPluginTest(StageOneReportTest):
self.assertFileGlobInArchive(
"sos_commands/networking/ethtool_*_%s" % dev
)
+
+
+class NetplanScrubTest(StageTwoReportTest):
+ """
+ ensure that netplan configuration is collected and then the wifi password
+ is scrubbed correctly
+
+ :avocado: tags=stagetwo
+ """
+
+ sos_cmd = '-o networking'
+
+ files = [('90-NM-d377ae8e-fff5-11ee-bd96-07ef2a5f9e02.yaml',
+ '/etc/netplan/90-NM-d377ae8e-fff5-11ee-bd96-07ef2a5f9e02.yaml')]
+
+ @ubuntu_only
+ def test_netplan_wifi_password_scrubbed(self):
+ self.assertFileNotHasContent(
+ '/etc/netplan/90-NM-d377ae8e-fff5-11ee-bd96-07ef2a5f9e02.yaml',
+ 'awifipasswordforauth')