Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate new testing server certificate and add docs #81

Merged
merged 1 commit into from
Nov 11, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
- Generate new testing cert with Subject Alternate Name (SAN) using t…
…he testing CA.

- Add documentation to testing README explaining how to mint a new cert.
- Add Certificate Signing Request (CSR) to certificates directory for use in generating future certs.
  • Loading branch information
thorner committed Nov 10, 2020
commit 0d75b91820803939fc21aa2a6a3ebe3e0d168ccb
9 changes: 9 additions & 0 deletions e2e/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,12 @@ make test
```

To save time on multiple runs by allowing the cluster to remain, use `make reuse-and-test`

### Generating a new server certificate for testing

Some of the tests require a secret containing a TLS certificate, for use in creating or updating a NodeBalancer config using TLS. A CA certificate and server certificate can be found in the `test/certificates` directory. The server certificate, used for TLS NodeBalancer configs, has an expiry of 4 years. You can use the following command to generate a new TLS certificate, using the existing CSR:

```
openssl x509 -req -in test/certificates/server.csr -CA test/certificates/ca.crt -CAkey test/certificates/ca.key -CAcreateserial -out test/certificates/server.crt -days 1440 -sha256 -extfile <(printf "subjectAltName=DNS:linode.test,DNS:www.linode.test")
```
Once a new cert is generated, you will need to replace the existing constants, "serverCert" and "serverKey", in test/framework/secret.go.
13 changes: 8 additions & 5 deletions e2e/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,26 @@ module e2e_test
go 1.12

require (
github.com/appscode/go v0.0.0-20190112082056-52eaa8008e2e
github.com/codeskyblue/go-sh v0.0.0-20190328095946-f4ce45e7999e
github.com/appscode/go v0.0.0-20200323182826-54e98e09185a
github.com/appscode/go-notify v0.0.0-20180516083708-17078f08a5ba // indirect
github.com/codeskyblue/go-sh v0.0.0-20190412065543-76bd3d59ff27
github.com/dnaeon/go-vcr v1.0.1 // indirect
github.com/ghodss/yaml v1.0.0 // indirect
github.com/gogo/protobuf v1.2.1 // indirect
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b
github.com/google/btree v1.0.0 // indirect
github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf // indirect
github.com/googleapis/gnostic v0.2.0 // indirect
github.com/gopherjs/gopherjs v0.0.0-20181103185306-d547d1d9531e // indirect
github.com/gregjones/httpcache v0.0.0-20190212212710-3befbb6ad0cc // indirect
github.com/imdario/mergo v0.3.7 // indirect
github.com/kr/pretty v0.1.0 // indirect
github.com/linode/linode-cloud-controller-manager v0.3.8 // indirect
github.com/linode/linodego v0.21.1
github.com/onsi/ginkgo v1.8.0
github.com/onsi/gomega v1.5.0
github.com/onsi/ginkgo v1.10.3
github.com/onsi/gomega v1.7.1
github.com/peterbourgon/diskv v2.0.1+incompatible // indirect
github.com/pkg/errors v0.8.0
github.com/pkg/errors v0.8.1
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4 // indirect
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect
Expand Down
292 changes: 292 additions & 0 deletions e2e/go.sum

Large diffs are not rendered by default.

32 changes: 32 additions & 0 deletions e2e/test/certificates/server.crt
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
-----BEGIN CERTIFICATE-----
MIIFcjCCA1qgAwIBAgIJAM2X8k3I/mF6MA0GCSqGSIb3DQEBCwUAMFIxCzAJBgNV
BAYTAkFVMRMwEQYDVQQIDApTb21lLVN0YXRlMSEwHwYDVQQKDBhJbnRlcm5ldCBX
aWRnaXRzIFB0eSBMdGQxCzAJBgNVBAMMAmNhMB4XDTIwMTEwOTE3NDU1NFoXDTI0
MTAxOTE3NDU1NFowcjELMAkGA1UEBhMCVVMxCzAJBgNVBAgMAlBBMRUwEw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5JOdVkyKs++Q6o1Or9oQIFdtbRIKXwATEUgJSiMq7
fyoDlWxFWNQ1bTJe6l+0rbZpIHpxbLnIimZUzgrYVlXHnPS2TSSLPo9vbxvvLFTJ
T6CF5fgdxkLq8NVbTHni/YjBMzk4q2D0WaoPO1Oeq+fAts+OrPDZMfXWmp4s7nPw
63cptWnY+5F30xdQFeXOSphyn2MZy6kZE0P4mU9rQaMyzOA2mA3QJTUhm2iB5K6+
kzv9ydXuX2j0X9dapAAKrxJtGuzbkpvmsL3G3x0rfS9TrKhugu5x+EvlsZcx92Xr
rFSF2tokIg+T/Rev3YNdrq0wHLYJTjAvS5+HWhGCNN9gdaGqkpx1g7BWExl8xgeo
nsLWeEMyQfEOrZyEloTmzAW9qN1qilmR2keQpzvS1PuhMnNxh+eBQyRfeOatwyPQ
ofGA0ZvUwXnAQH/+G1MmYOKkxDCKi+5oMvhaNenQjj2KSwftgQUhSeCV9aAQu9Fa
WpBrglz+S4SPWetrRGfnrxBznReY507ZSdzzMhZEXb+YPWjLd/bFPIiniD+U4a5Z
7gxpALyz
-----END CERTIFICATE-----
29 changes: 29 additions & 0 deletions e2e/test/certificates/server.csr
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
-----BEGIN CERTIFICATE REQUEST-----
MIIE8TCCAtkCAQAwcjELMAkGA1UEBhMCVVMxCzAJBgNVBAgMAlBBMRUwEwYDVQQH
DAxQaGlsYWRlbHBoaWExEzARBgNVBAoMCkxpbm9kZSBMTEMxFDASBgNVBAsMC0xp
bm9kZSBUZXN0MRQwEgYDVQQDDAtsaW5vZGUudGVzdDCCAiIwDQYJKoZIhvcNAQEB
BQADggIPADCCAgoCggIBANuycV24k/tGqbUrxNrhWpCUH/qsE+ZhhQjWkBUQQ3cc
S01BelMoJWX5U/SnVbSfZJrMmY/b4RZ8bM1p6FCtWP67pzmE3yZTQVadvHzuNx61
LWhxQmZ3L7tAuE3XNPe9tadqT+Z4YF7/AbWXgwFWP4Y0iBoD9dVjS0lj9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EcNBMsmZVDGHlfPRPAuMnYHelIvdNVrmHgU8Ry39sSlap
ow2nLjP5xFFvS4dLpx1s7pLlExb4ZG+BTEyEa18nVCaXCZSK51uXshwL3OLWnuzl
JBMFOuw3JtR02XZ/EUdgJG/Js8B1zAp8YuBwgx9uyh3WHSBfUFRPSz68h/zn6MP8
y6dGvgl7tShru6KQi7GiboeEzA8brn5y3UDmXG9/Wz6zCKagoks6otwdqfTo02Sp
bK+R/OrA/rXS4jVp5vupXswrgmdh
-----END CERTIFICATE REQUEST-----
51 changes: 51 additions & 0 deletions e2e/test/certificates/server.key
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
-----BEGIN RSA PRIVATE KEY-----
MIIJKAIBAAKCAgEA27JxXbiT+0aptSvE2uFakJQf+qwT5mGFCNaQFRBDdxxLTUF6
UyglZflT9KdVtJ9kmsyZj9vhFnxszWnoUK1Y/runOYTfJlNBVp28fO43HrUtaHFC
Zncvu0C4Tdc09721p2pP5nhgXv8BtZeDAVY/hjSIGgP11WNLSWP2eZn4+q4hr7iU
qVqLRYVz5e489b1sEXpCiSDWuq6GWRzvEBquHX0F82mW84DMfa2TrcG4bw0i0r4n
KWcgB3at7sR32DvEPFsFiEreFgNsx7b1KcG+ngzA3ZKL9bviQKSLjjn48VPoV/w5
lT3PYGIAjwu2tbNY8J6dUcni4aHnIwhwBFVb5299eIECnccueVExw8LtXBYOUKT4
A8doKy3ZBq4B+WY8N0QhE6H8tuLrAl6IUh8rduuvJc38+QIDD6IKr58zuest6q0/
lNvjruOfUMa+EsBPX795wyDuqL4tUyfySyUyYNXcQ4ip2nFTBYXoB75jLsXHULhO
C+7AbxzWeM76mjeNgKzUJaz+1EUMLYOSsfiYFMlWfoiLilf7WMdR3bLHccFAA/Qg
3CZETU/B20amYDI/+0TvY1td01gzoUx3UjDPB6mpntgrDoTISDNAvZgPOt9ebs7A
EM6/iHgIQtAnCQULTzQ48i3WZlpPYb2IeWOsNCXiOZPN+STXedL5M3IUwUcCAwE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2rm1kx
IlbC5rVePSeMz59Qty79dODAvGuJxOb/vKOlQqcULfgidpctBdtZJ/oencwOf/49
e0R5uYpvsxyvAro5OKxk0SD2YSgkdBf8gF5+opG6ZjcBcRk3jp8cdYDTIpViJco5
IJwbMqoWpJxuilj0imxDNQPPoN6yf3mkD2tyYp2YL9X5bgSB58l1LCBJDdJDC4tR
rrXq0Btn9jpwwW/AJ6mIFWWGQKDpkGhLRHxOOK4dC+XgbkEogDSOlZDOEALLvFI9
OVIIxvytGW/Qy6AEzsMnsTPUJMyPsktCQ2YI628dytmqXOniZe1QQ2R7dzw=
-----END RSA PRIVATE KEY-----
162 changes: 83 additions & 79 deletions e2e/test/framework/secret.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,87 +5,91 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

var serverCert = `-----BEGIN CERTIFICATE-----
MIIFITCCAwkCAWQwDQYJKoZIhvcNAQELBQAwUjELMAkGA1UEBhMCQVUxEzARBgNV
BAgMClNvbWUtU3RhdGUxITAfBgNVBAoMGEludGVybmV0IFdpZGdpdHMgUHR5IEx0
ZDELMAkGA1UEAwwCY2EwHhcNMTkwNDA5MDkzNjQyWhcNMjMwNDA4MDkzNjQyWjBb
MQswCQYDVQQGEwJBVTETMBEGA1UECAwKU29tZS1TdGF0ZTEhMB8GA1UECgwYSW50
ZXJuZXQgV2lkZ2l0cyBQdHkgTHRkMRQwEgYDVQQDDAtsaW5vZGUudGVzdDCCAiIw
DQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBANUC0KStr84PLnM1dTYuEtk4HOTc
ufb6pMHyttJv5oYxCAJaN5AI9QXPqJpUFI6GlS1oDpjRe9RQghXso/IihD9eoEP1
zkHcHJyb6TXThofatxX5jLUM9TgmTIrYH+1KyKraBO6iMz2UQkbJq04BZWI9wADq
ffn1Cw6RueDe4QdqXpv/M9d/PetsIQLjjNAFHo87gYIkw838DMyTNikIweg8tRSS
6hivBVLLF0WB7p4ZARic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bGSFwjCLyInOlK1K+QkOqWwfUMs1N5F4js3Xmr
uOK/X1Ss9Z6pX2P4t4GeK3Q+r4FXyHYsxWk8rZon/0jy81608ArfRzsaT9keJ2eV
1nWODJjIOLnI+zXHMRLkReVEz2zPfKFdJazaNQ8+8U3AUBWO+EalelUySvBw7Ts+
Pp7Lu90sLVF9n6sORZo3uyWHxKwJtCkx+T+kep5LGNM0PzsrVfr4hFw19KkAIuug
0dmpAoIBAQCbbix9b+DskdLfJwjSV2e1bC1iYWe9YDQtlBkLO+5cf0VDniMWRz/8
a5v3LOdUNRt5NsZjypDbd2ejKWuo0BgJgUcsRTF4bBTOBJUk6CHaynNUgC2GLpUy
FfBTnLY221QobMbumTOwAEYyZbZrDq56P5sreIs1nIrJohojOJnG31xIJgyI8wDM
wVmiHrcDBtm9q+belaekClPQcUV1fyk9fZ9xYZxQJWhutccyGZFMQVHsdMmRKCqN
YSdqnan44jW6tCIMZ4iSnz8K1TIMlA5W0iGv19nFxKdmsYh26wRa64Z4+/gCL3Af
NiH9SYSWvrAheEauQPXj8yIgnV9BqyjhAoIBAA0NGugiXqloQD4tKFYROZ2rm1kx
IlbC5rVePSeMz59Qty79dODAvGuJxOb/vKOlQqcULfgidpctBdtZJ/oencwOf/49
e0R5uYpvsxyvAro5OKxk0SD2YSgkdBf8gF5+opG6ZjcBcRk3jp8cdYDTIpViJco5
IJwbMqoWpJxuilj0imxDNQPPoN6yf3mkD2tyYp2YL9X5bgSB58l1LCBJDdJDC4tR
rrXq0Btn9jpwwW/AJ6mIFWWGQKDpkGhLRHxOOK4dC+XgbkEogDSOlZDOEALLvFI9
OVIIxvytGW/Qy6AEzsMnsTPUJMyPsktCQ2YI628dytmqXOniZe1QQ2R7dzw=
-----END RSA PRIVATE KEY-----`
)

func (i *lbInvocation) CreateTLSSecret(secretName string) (err error) {
secret := &corev1.Secret{
Expand Down