From c309ccf4315f40de0d3bea9d8a75e450d96284a9 Mon Sep 17 00:00:00 2001 From: Laszlo Uveges Date: Tue, 7 Jan 2025 12:58:51 +0100 Subject: [PATCH] Use Base64 encoded certificates in test data to make pre-commit check happy (#584) --- .pre-commit-config.yaml | 1 - main_test.go | 16 ++++++++-------- testdata/certs/new/tls-b64.crt | 1 + testdata/certs/new/tls-b64.key | 1 + testdata/certs/new/tls.crt | 17 ----------------- testdata/certs/new/tls.key | 28 ---------------------------- testdata/certs/old/tls-b64.crt | 1 + testdata/certs/old/tls-b64.key | 1 + testdata/certs/old/tls.crt | 17 ----------------- testdata/certs/old/tls.key | 28 ---------------------------- 10 files changed, 12 insertions(+), 99 deletions(-) create mode 100644 testdata/certs/new/tls-b64.crt create mode 100644 testdata/certs/new/tls-b64.key delete mode 100644 testdata/certs/new/tls.crt delete mode 100644 testdata/certs/new/tls.key create mode 100644 testdata/certs/old/tls-b64.crt create mode 100644 testdata/certs/old/tls-b64.key delete mode 100644 testdata/certs/old/tls.crt delete mode 100644 testdata/certs/old/tls.key diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 163ec4da..f0877742 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,7 +15,6 @@ repos: - id: check-merge-conflict - id: check-shebang-scripts-are-executable - id: detect-private-key - exclude: ^testdata/certs/old/tls.key$|^testdata/certs/new/tls.key$ - id: end-of-file-fixer - id: mixed-line-ending - id: trailing-whitespace diff --git a/main_test.go b/main_test.go index 053facbb..3cb3d628 100644 --- a/main_test.go +++ b/main_test.go @@ -1,7 +1,7 @@ package main import ( - "io" + "encoding/base64" "net/http" "net/http/httptest" "os" @@ -54,7 +54,7 @@ func Test_healthCheck(t *testing.T) { } func copyCertificate(path string) error { - r, err := os.Open(path + "/tls.crt") + r, err := os.ReadFile(path + "/tls-b64.crt") if err != nil { return err } @@ -64,12 +64,12 @@ func copyCertificate(path string) error { return err } - _, err = io.Copy(w, r) + crt, err := base64.StdEncoding.DecodeString(string(r)) if err != nil { return err } - err = r.Close() + _, err = w.Write(crt) if err != nil { return err } @@ -79,22 +79,22 @@ func copyCertificate(path string) error { return err } - r, err = os.Open(path + "/tls.key") + r, err = os.ReadFile(path + "/tls-b64.key") if err != nil { return err } - w, err = os.Create("testdata/certs/current/tls.key") + key, err := base64.StdEncoding.DecodeString(string(r)) if err != nil { return err } - _, err = io.Copy(w, r) + w, err = os.Create("testdata/certs/current/tls.key") if err != nil { return err } - err = r.Close() + _, err = w.Write(key) if err != nil { return err } diff --git a/testdata/certs/new/tls-b64.crt b/testdata/certs/new/tls-b64.crt new file mode 100644 index 00000000..4b3c87e5 --- /dev/null +++ b/testdata/certs/new/tls-b64.crt @@ -0,0 +1 @@ +LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUN4ekNDQWErZ0F3SUJBZ0lVR1k1anA3MlpEZ3Zmby9HRjhVZFovcUhCT2NZd0RRWUpLb1pJaHZjTkFRRUwKQlFBd0FEQWVGdzB5TkRFd01Ea3hOREl5TVRGYUZ3MHpOREV3TURjeE5ESXlNVEZhTUFBd2dnRWlNQTBHQ1NxRwpTSWIzRFFFQkFRVUFBNElCRHdBd2dnRUtBb0lCQVFEY0EyN1J4elFFN0Z3ckg4QkFXYjd5K1NLVU1EN1lDczd4CnBUWVpPUEdhZ0EwV1RzSnlDL29Tb1RtZUUzOGhKRFFJZng0Q3hPcklocjVCdm9yZFJkem1LNVFwZDhDa1FIMTEKWHZDa3ZnSU81bDIwbHo5S09obHYwV2ZFNTlab0J5WTUyTTVBNHVSSEZsRGY0RE5MRDdpb2F1VU5weDcvRWVxYgpkQlFlZDFSWDVTV1VwOU9RSGFqSXVzVCtpV0ZoZnl6T2pRbHJvcWFPN1diNm10bDdWVzdyWkdESDFGYUdwQi92CmZGMm02dVpKRGNpQ1VCOUxjd0FhUlI0QldueUJLOVBWYVlVbnFEMk1uWFpQcmVzYWkxYnMvcFJ3bk5YNTJKMFQKSWJYbzNrL01vbGN1eVc3aFlIUnRERXFQQWltR2liSEtySVBJTW8rTERaZzNQT3dnaEpSTkFnTUJBQUdqT1RBMwpNQXNHQTFVZER3UUVBd0lGNERBSkJnTlZIUk1FQWpBQU1CMEdBMVVkRGdRV0JCVElJQmZSVDlRS0xBTjZHbDZDCmpJWVJwbDNMVFRBTkJna3Foa2lHOXcwQkFRc0ZBQU9DQVFFQXRFSkZkRWhTREVObVhVdFMrVEZPNUV3c3prK1EKOFVsZldMdlhJRkg4T2VFTHVKOURjVXFWKzlrSkRObzFNSnp0ZXMzc0FmZzQ5elZISUh5Ry9jWHFuYmZXdUJXTQpDV2RyaUwzMmJJREJYRzI2KzQ1aElHWStqZ283a0pOaHdZelFteTA2Q1AxK3UwZDRJOCtBZGtsZHpxQUIvelpaCmVTUGVhYUovZE40VE1SL3hQYjQ5QVNDYlJBNWsvZU02TERmWG9VVHZ1TzBnRWRVWTQ0dEVHNmw2SlFCTEc0YWMKTW9YdzlhSWpwSFBHa2tkVjN0WWdEN29tUXlBd2tzR3QzTW1aUGRVaTRqcnpFcjZ1dENvMkNEYkludndDbDhQTgpYY2R6eGdnR1FPdTRZZGZYS2NpSStNRDlycExxb0VNY0s3aFRKZUZ1OG4vRDJET21kaDRNM213MXJnPT0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo= diff --git a/testdata/certs/new/tls-b64.key b/testdata/certs/new/tls-b64.key new file mode 100644 index 00000000..e706ea7d --- /dev/null +++ b/testdata/certs/new/tls-b64.key @@ -0,0 +1 @@ +LS0tLS1CRUdJTiBQUklWQVRFIEtFWS0tLS0tCk1JSUV2d0lCQURBTkJna3Foa2lHOXcwQkFRRUZBQVNDQktrd2dnU2xBZ0VBQW9JQkFRRGNBMjdSeHpRRTdGd3IKSDhCQVdiN3krU0tVTUQ3WUNzN3hwVFlaT1BHYWdBMFdUc0p5Qy9vU29UbWVFMzhoSkRRSWZ4NEN4T3JJaHI1Qgp2b3JkUmR6bUs1UXBkOENrUUgxMVh2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00000000 --- a/testdata/certs/new/tls.crt +++ /dev/null @@ -1,17 +0,0 @@ ------BEGIN CERTIFICATE----- -MIICxzCCAa+gAwIBAgIUGY5jp72ZDgvfo/GF8UdZ/qHBOcYwDQYJKoZIhvcNAQEL -BQAwADAeFw0yNDEwMDkxNDIyMTFaFw0zNDEwMDcxNDIyMTFaMAAwggEiMA0GCSqG -SIb3DQEBAQUAA4IBDwAwggEKAoIBAQDcA27RxzQE7FwrH8BAWb7y+SKUMD7YCs7x -pTYZOPGagA0WTsJyC/oSoTmeE38hJDQIfx4CxOrIhr5BvordRdzmK5Qpd8CkQH11 -XvCkvgIO5l20lz9KOhlv0WfE59ZoByY52M5A4uRHFlDf4DNLD7ioauUNpx7/Eeqb -dBQed1RX5SWUp9OQHajIusT+iWFhfyzOjQlroqaO7Wb6mtl7VW7rZGDH1FaGpB/v -fF2m6uZJDciCUB9LcwAaRR4BWnyBK9PVaYUnqD2MnXZPresai1bs/pRwnNX52J0T -IbXo3k/MolcuyW7hYHRtDEqPAimGibHKrIPIMo+LDZg3POwghJRNAgMBAAGjOTA3 -MAsGA1UdDwQEAwIF4DAJBgNVHRMEAjAAMB0GA1UdDgQWBBTIIBfRT9QKLAN6Gl6C -jIYRpl3LTTANBgkqhkiG9w0BAQsFAAOCAQEAtEJFdEhSDENmXUtS+TFO5Ewszk+Q -8UlfWLvXIFH8OeELuJ9DcUqV+9kJDNo1MJztes3sAfg49zVHIHyG/cXqnbfWuBWM -CWdriL32bIDBXG26+45hIGY+jgo7kJNhwYzQmy06CP1+u0d4I8+AdkldzqAB/zZZ -eSPeaaJ/dN4TMR/xPb49ASCbRA5k/eM6LDfXoUTvuO0gEdUY44tEG6l6JQBLG4ac -MoXw9aIjpHPGkkdV3tYgD7omQyAwksGt3MmZPdUi4jrzEr6utCo2CDbInvwCl8PN -XcdzxggGQOu4YdfXKciI+MD9rpLqoEMcK7hTJeFu8n/D2DOmdh4M3mw1rg== ------END CERTIFICATE----- diff --git a/testdata/certs/new/tls.key b/testdata/certs/new/tls.key deleted file mode 100644 index 0c8a70c2..00000000 --- a/testdata/certs/new/tls.key +++ /dev/null @@ -1,28 +0,0 @@ ------BEGIN PRIVATE KEY----- -MIIEvwIBADANBgkqhkiG9w0BAQEFAASCBKkwggSlAgEAAoIBAQDcA27RxzQE7Fwr -H8BAWb7y+SKUMD7YCs7xpTYZOPGagA0WTsJyC/oSoTmeE38hJDQIfx4CxOrIhr5B -vordRdzmK5Qpd8CkQH11XvCkvgIO5l20lz9KOhlv0WfE59ZoByY52M5A4uRHFlDf -4DNLD7ioauUNpx7/EeqbdBQed1RX5SWUp9OQHajIusT+iWFhfyzOjQlroqaO7Wb6 -mtl7VW7rZGDH1FaGpB/vfF2m6uZJDciCUB9LcwAaRR4BWnyBK9PVaYUnqD2MnXZP -resai1bs/pRwnNX52J0TIbXo3k/MolcuyW7hYHRtDEqPAimGibHKrIPIMo+LDZg3 -POwghJRNAgMBAAECggEAJoF7Tb+9fPcZEnsWHK0YXFH6GVFwTkNmAKjXlQaAUngC -0lqqcWdjNwt8mAv1fglmCe6lg/qO1NWwSrVcfGmTxbzuy2soDhczXe1l1I9ksNLk -p4ypCQauGQHfVXj173MA37LwNi7/oOlo8iW9FHAF84Px3rfXFvE9zEM+mi5sVo1z -Jat/Ae2S/P3mw7GQZ/8mXlo/wDh/WiERZthiD332QXKz37fCQZOh6EiTUxXC2X3b -AmiFk8ZLSsG8JAE6pT9x6OjAWkytm2AvPtUYRB8dj3602ZIO1Ec5e4HJ7rr3lhjD -iTDLrZ/yqhWVio/a19aEjyyNlP3Kw32mPxAcO+FrCQKBgQD33Rfuyr2i3RTRytaP -TwFz4OsfTg9zGcBCiYv/OYzA+514t6P/DAvwqzeYg4tnN5nmiGYsy4EFC5Eh26PT -qE9nhQXVP66uzv65NIuHXIdXVe1X2RFOZgB/su4cbzXCOYag95MOYAMmrnOVp8hz -ndCUzjwuvkq3bBMvcDanes++LwKBgQDjPE071AxOWwuYurjBV7weUAu/1SqUIUq0 -C2vylmrbCMwwXiKjbFt8+89hYSDH+qB3D9d3ph0fPEzlNYeNQASSVn11uBmFRrVm -qeye58Qg1Pl7Qf99nZ5nJXlWPRB2sjaXmEsGaoSfnDg1DmL4NCGaM/0PPBfKhbne -SzweFIGSQwKBgQDISRrWtXLpUJZLNAmOgbvdxCiaAjzPuEY4PecnVHydUHSdoF7f -b/+R+PiSv/D8ddxhgWR22/akegVLg6ztEjsfnkjpWW0xCkigpYn91lHyy5de/iNS -42+RwKdRyLd6+3sDRSrKWeER97OkgZCjhCmQpNnSt6eucaFLGvS+/qkxtwKBgQC0 -dHXtNjdTnm/2KQqB2De3Zt/9xr4ahtm5Y3ylWJihOzpUit09JNb+yUZmUejjhwAZ -rUXyacOkw5FZUQpFvPokcHUPoFT8BywVzInxo6KYZCl/nejUi/B4f0T9nF7PtDUw -bCvge4S48Cme0L791wB8Yh7sE0/dcBcsFlk2lhhT2wKBgQDlent09IXaAvo1zy5O -7e8Dl1f8//ZH0zHis+vt8+72DnHSzTEvQmgfc4FUYmrnzJtnOCtEIYzIy5Msrl8d -qyZk5x4jCvZKbriOVGT/dOtXnx7G/QrBz18sSDT3Z1AUoi3oohfvVh9bLz0miGfm -h+OhIT2kCsacjTnCSIdcWhemDQ== ------END PRIVATE KEY----- diff --git a/testdata/certs/old/tls-b64.crt b/testdata/certs/old/tls-b64.crt new file mode 100644 index 00000000..292a0f57 --- /dev/null +++ b/testdata/certs/old/tls-b64.crt @@ -0,0 +1 @@ +LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUN4akNDQWE2Z0F3SUJBZ0lUVFZ6ZUgxR0ZjTHVmMmVocWU2MUR5eWtTNGpBTkJna3Foa2lHOXcwQkFRc0YKQURBQU1CNFhEVEkwTVRBd09URXpOVEl3TWxvWERUTTBNVEF3TnpFek5USXdNbG93QURDQ0FTSXdEUVlKS29aSQpodmNOQVFFQkJRQURnZ0VQQURDQ0FRb0NnZ0VCQU5majN3MHRXMlVjZn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EgxeVR3SwotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg== diff --git a/testdata/certs/old/tls-b64.key b/testdata/certs/old/tls-b64.key new file mode 100644 index 00000000..a28c9409 --- /dev/null +++ b/testdata/certs/old/tls-b64.key @@ -0,0 +1 @@ +LS0tLS1CRUdJTiBQUklWQVRFIEtFWS0tLS0tCk1JSUV2UUlCQURBTkJna3Foa2lHOXcwQkFRRUZBQVNDQktjd2dnU2pBZ0VBQW9JQkFRRFg0OThOTFZ0bEhIN0QKZm5zQXU0OURwVCtyNWFqS1V6N2pWSU44akJqWnFZUVN1Z3Z3K1ZXdDBRRjFzYzlPekl1TGl0OGFMMWdCdmN6cQpiWUlrZ3g1RjFHV2E0Z0oxTlVSWTZocFRsMy82RDh1bWZoMzBPYlVrbGV6b2VMai9JTUcwUE9IRHFqaEQzN3VzCng4QS9qZVBZYXJON3lPNkxsS2RuSURBbEtJaGRycnhvbVZ1MjBtelU2ck4xQUE0Z2xDVHpsUmZRK0tGOUJYQXUKdGU0TktxQUJYcUo3b2hBaWVUUWpmbVRDUEJ6akNFWmxWUGZ5dDBkd1d0MmVuSzJlQmFWMno4Uzc2am8xbkVjbApaZ01sNkRpdnB6VUk0RDA5bGd3RzlxNDc5dkxLTTZBZEd4Y2gwbW1xUEQrNC9BeFNieGNvaHVib0I3emhyeXFGCk9Hek1RdFBkQWdNQkFBRUNnZ0VBSlBka0EwL2JxUy9NcGVGVG92KzZxNERSYXZmdlk3dUcxbXFyZkFsS0hRVVoKZEJKdXhvT1BEK3pzbE5CT09NWXQ4OFlpNXdzcHhOeVF5S2haSXpMZlhXSWR4cnhCNHZ0c3VWUFdqNjh1anUwaQorQjU2dHcybGpuN3NlcTduTUdwVnVLeS9GSitpTkQ4TVZleTdKcmEvUjVpWHBJKzJodWg4bEp3dW1rSTdQVjBFCmF0N28rd2xjeGYyZGFPY21KT1JEMmROcjArUEdNOGZMVnFqT3VaNC85T0N0SHNXclloSTBYMVNvUGJWampUKzAKTV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LR3A2ZW1TaU5OditNZllKVGZtcCtldEF5WmhrQ2dZRUE0RFRJeXppaHVVOEdEOTRFTDJEcAo4K29rcEJPRW9ZdnphdnNqRngvUEJvZmxmWGZ5QmR0QTFZbmZNcHpuSldpSE43eG93cUNsMVBmaTU5bEtJcElOCmtDZDdtRjlYNzc0U0VFWEJVR0kzSFFJbllxZk5VRnM4TEQyNC9EZXJ0MStYWEFEYkJ2THFKdnJVbVZURjBwalMKYlBKcWppQ1ZFSlRKdzVNYXl6UWRGaXM9Ci0tLS0tRU5EIFBSSVZBVEUgS0VZLS0tLS0K diff --git a/testdata/certs/old/tls.crt b/testdata/certs/old/tls.crt deleted file mode 100644 index 023c2651..00000000 --- a/testdata/certs/old/tls.crt +++ /dev/null @@ -1,17 +0,0 @@ ------BEGIN CERTIFICATE----- -MIICxjCCAa6gAwIBAgITTVzeH1GFcLuf2ehqe61DyykS4jANBgkqhkiG9w0BAQsF -ADAAMB4XDTI0MTAwOTEzNTIwMloXDTM0MTAwNzEzNTIwMlowADCCASIwDQYJKoZI -hvcNAQEBBQADggEPADCCAQoCggEBANfj3w0tW2UcfsN+ewC7j0OlP6vlqMpTPuNU -g3yMGNmphBK6C/D5Va3RAXWxz07Mi4uK3xovWAG9zOptgiSDHkXUZZriAnU1RFjq -GlOXf/oPy6Z+HfQ5tSSV7Oh4uP8gwbQ84cOqOEPfu6zHwD+N49hqs3vI7ouUp2cg -MCUoiF2uvGiZW7bSbNTqs3UADiCUJPOVF9D4oX0FcC617g0qoAFeonuiECJ5NCN+ -ZMI8HOMIRmVU9/K3R3Ba3Z6crZ4FpXbPxLvqOjWcRyVmAyXoOK+nNQjgPT2WDAb2 -rjv28sozoB0bFyHSaao8P7j8DFJvFyiG5ugHvOGvKoU4bMxC090CAwEAAaM5MDcw -CwYDVR0PBAQDAgXgMAkGA1UdEwQCMAAwHQYDVR0OBBYEFKxuRwH6w4wi8jTiD9lC -AMlNmm4KMA0GCSqGSIb3DQEBCwUAA4IBAQDUNwV7SQybYH2DHH0fu3Qo44FXM0IJ -YhAATnB69XlBrGPgLOiQ0eXu6OnrxOBVu8gmX69g6mjP982P1zPmXCVKRtzTn1jH -lwGFL5tmS/aCjtmM80afs01kunjEE1k11ptFTtjS82xRHP9JeOupwqRsqaSkPJYJ -tHU/rb0eF6OOyv3DeK/JcMmhG9FxeQVyoRClP7zbKjMcB3Ui6CahVh/O6H4ZxBOA -1G5sOeGWK+oH5UqN/B0m6/p6Eqa2HeURvMIIv99XFpJI8IT2F3EDNdXMLThFo0SA -z67suTkyIqgBOvtSCueaT+z662gKvhZZ7xoxwOvbc05OS5un3lH1yTwK ------END CERTIFICATE----- diff --git a/testdata/certs/old/tls.key b/testdata/certs/old/tls.key deleted file mode 100644 index 730947bd..00000000 --- a/testdata/certs/old/tls.key +++ /dev/null @@ -1,28 +0,0 @@ ------BEGIN PRIVATE KEY----- -MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDX498NLVtlHH7D -fnsAu49DpT+r5ajKUz7jVIN8jBjZqYQSugvw+VWt0QF1sc9OzIuLit8aL1gBvczq -bYIkgx5F1GWa4gJ1NURY6hpTl3/6D8umfh30ObUklezoeLj/IMG0POHDqjhD37us -x8A/jePYarN7yO6LlKdnIDAlKIhdrrxomVu20mzU6rN1AA4glCTzlRfQ+KF9BXAu -te4NKqABXqJ7ohAieTQjfmTCPBzjCEZlVPfyt0dwWt2enK2eBaV2z8S76jo1nEcl -ZgMl6DivpzUI4D09lgwG9q479vLKM6AdGxch0mmqPD+4/AxSbxcohuboB7zhryqF -OGzMQtPdAgMBAAECggEAJPdkA0/bqS/MpeFTov+6q4DRavfvY7uG1mqrfAlKHQUZ -dBJuxoOPD+zslNBOOMYt88Yi5wspxNyQyKhZIzLfXWIdxrxB4vtsuVPWj68uju0i -+B56tw2ljn7seq7nMGpVuKy/FJ+iND8MVey7Jra/R5iXpI+2huh8lJwumkI7PV0E -at7o+wlcxf2daOcmJORD2dNr0+PGM8fLV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