From 9740bd10e5972370f61453c4e0cc58b40196534b Mon Sep 17 00:00:00 2001 From: elainezhao96 <102555676+elainezhao96@users.noreply.github.com> Date: Mon, 22 Jan 2024 10:02:11 -0800 Subject: [PATCH] Image Customizer: remove adduser-config.yaml file as it contains password field (#7298) --- .config/CredScanSuppressions.json | 4 ---- .../imagecustomizerlib/testdata/addusers-config.yaml | 10 ---------- .../pkg/osmodifierlib/testdata/addusers-config.yaml | 9 --------- 3 files changed, 23 deletions(-) delete mode 100644 toolkit/tools/pkg/imagecustomizerlib/testdata/addusers-config.yaml delete mode 100644 toolkit/tools/pkg/osmodifierlib/testdata/addusers-config.yaml diff --git a/.config/CredScanSuppressions.json b/.config/CredScanSuppressions.json index 8ea787948ab..6be23952249 100644 --- a/.config/CredScanSuppressions.json +++ b/.config/CredScanSuppressions.json @@ -28,10 +28,6 @@ { "file": "\\toolkit\\tools\\imagecustomizer\\docs\\configuration.md", "_justification": "Secrets from documentation samples. No production secrets." - }, - { - "file": "\\toolkit\\tools\\pkg\\imagecustomizerlib\\testdata\\addusers-config.yaml", - "_justification": "Dummy secrets used to unit test configuration code." } ] } diff --git a/toolkit/tools/pkg/imagecustomizerlib/testdata/addusers-config.yaml b/toolkit/tools/pkg/imagecustomizerlib/testdata/addusers-config.yaml deleted file mode 100644 index ba9c3c4ad0d..00000000000 --- a/toolkit/tools/pkg/imagecustomizerlib/testdata/addusers-config.yaml +++ /dev/null @@ -1,10 +0,0 @@ -SystemConfig: - Users: - - Name: root - Password: password - - - Name: test - Password: $6$aEzRqlIsXn8I$uvdD6RgzdAao5qUxap/Edc/ABW2Qfvqe4ZK7AjoguwS1rX2Q5l72/4L4OW5lqOdY5pIIahBco3hdR32NAuZ/O1 - PasswordHashed: true - SecondaryGroups: - - sudo diff --git a/toolkit/tools/pkg/osmodifierlib/testdata/addusers-config.yaml b/toolkit/tools/pkg/osmodifierlib/testdata/addusers-config.yaml deleted file mode 100644 index 4b8335a5b09..00000000000 --- a/toolkit/tools/pkg/osmodifierlib/testdata/addusers-config.yaml +++ /dev/null @@ -1,9 +0,0 @@ -Users: -- Name: root - Password: password - -- Name: test - Password: $6$aEzRqlIsXn8I$uvdD6RgzdAao5qUxap/Edc/ABW2Qfvqe4ZK7AjoguwS1rX2Q5l72/4L4OW5lqOdY5pIIahBco3hdR32NAuZ/O1 - PasswordHashed: true - SecondaryGroups: - - sudo