Skip to content

Commit

Permalink
security: embed certs for a few hard-coded tenants
Browse files Browse the repository at this point in the history
We already have tests that want to use more than one tenant.
These will need to have certs for each of the tenants that
they use soon, so pave the way for that by adding a few
hard-coded tenant IDs that have certs embedded.

Release note: None
  • Loading branch information
tbg committed Jul 21, 2020
1 parent 77d55e4 commit 9c0d40f
Show file tree
Hide file tree
Showing 28 changed files with 613 additions and 411 deletions.
3 changes: 3 additions & 0 deletions pkg/ccl/backupccl/backup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4254,6 +4254,9 @@ func TestBackupRestoreTenant(t *testing.T) {
defer cleanupFn()
srv := tc.Server(0)

// NB: tenant certs for 10, 11, 20 are embedded. See:
_ = security.EmbeddedTenantIDs()

// Setup a few tenants, each with a different table.
conn10 := serverutils.StartTenant(t, srv, base.TestTenantArgs{TenantID: roachpb.MakeTenantID(10), TenantInfo: []byte("ten")})
defer conn10.Close()
Expand Down
7 changes: 6 additions & 1 deletion pkg/ccl/serverccl/server_sql_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import (

"github.com/cockroachdb/cockroach/pkg/base"
"github.com/cockroachdb/cockroach/pkg/roachpb"
"github.com/cockroachdb/cockroach/pkg/security"
"github.com/cockroachdb/cockroach/pkg/sql/pgwire/pgcode"
"github.com/cockroachdb/cockroach/pkg/testutils/serverutils"
"github.com/cockroachdb/cockroach/pkg/testutils/sqlutils"
Expand Down Expand Up @@ -42,7 +43,11 @@ func TestSQLServer(t *testing.T) {
tc := serverutils.StartTestCluster(t, 3, base.TestClusterArgs{})
defer tc.Stopper().Stop(ctx)

db := serverutils.StartTenant(t, tc.Server(0), base.TestTenantArgs{TenantID: roachpb.MakeTenantID(10)})
db := serverutils.StartTenant(
t,
tc.Server(0),
base.TestTenantArgs{TenantID: roachpb.MakeTenantID(security.EmbeddedTenantIDs()[0])},
)
defer db.Close()
r := sqlutils.MakeSQLRunner(db)
r.QueryStr(t, `SELECT 1`)
Expand Down
2 changes: 1 addition & 1 deletion pkg/security/certs_tenant_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func testTenantCertificatesInner(t *testing.T, embedded bool) {
defer cleanup()
} else {
certsDir = security.EmbeddedCertsDir
tenant = fmt.Sprint(security.EmbeddedTenantID)
tenant = fmt.Sprint(security.EmbeddedTenantIDs()[0])
}

// Now set up the config a server would use. The client will trust it based on
Expand Down
244 changes: 170 additions & 74 deletions pkg/security/securitytest/embedded.go

Large diffs are not rendered by default.

34 changes: 17 additions & 17 deletions pkg/security/securitytest/test_certs/ca-client-tenant.crt
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
-----BEGIN CERTIFICATE-----
MIIDBjCCAe6gAwIBAgIQIx90jzYYGuem+REGEEh6njANBgkqhkiG9w0BAQsFADAr
MRIwEAYDVQQKEwlDb2Nrcm9hY2gxFTATBgNVBAMTDENvY2tyb2FjaCBDQTAeFw0y
MDA3MTUwODA5MDNaFw0zMDA3MjQwODA5MDNaMCsxEjAQBgNVBAoTCUNvY2tyb2Fj
aDEVMBMGA1UEAxMMQ29ja3JvYWNoIENBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A
MIIBCgKCAQEAsQmetpp+pg0L4i2Xf6WtY/QtERR5QqOe1/r1cO9y9nUG63b+E0Y8
AHtMEhBp53csLzOnSzLRqaUlJk/f0mShRYuyxSy4rMxjXur+EepDNYyZ3i4HX5Rr
xVcscoeHwI8VfJJ/Gb9xoTVZWnSU0mxX/ycIgQJFY0ia80lZBHohD+dQeDlRc9RX
m4PAQ0qRPDl847rv6wA8A0xwygCZQA/j23cfLuAteViMffKSW6HrSjjNT+kGs8P3
MmKIDXYp+kpKLaLJUsyhGFEsPot96k5vzIA+oBdMpk44RblMwjrcz6RjcwY/9+VC
fgg59yf6cRm+KOVURKQYSAEIPpvOpk3hrwIDAQABoyYwJDAOBgNVHQ8BAf8EBAMC
AuQwEgYDVR0TAQH/BAgwBgEB/wIBATANBgkqhkiG9w0BAQsFAAO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e6iMVsbyb2JWcOk3zTaIKmwRj2dDckocqQs2xxmqoL+hv20gBkUP/bxsxZtOpE
5nJiQoGqE9xqIVEDAu0Pn4GoFmqHOttUxJX3JiXXeOGAj3nWCxTYbM9QLt8JCLjS
N/K1owbIAJwJ14aIZ2/h+Z3HsSWp9r6Cvc1UWI5VXNxIcQC4e1vhbIiCvn2H15M1
HnD+uLd7HV/AlmRRQrDmArbhgOWA8+FPXZi8uOeaRYZ8dvoxh2tPmTGCRQ1Efv4A
iaHLaOD2M8WQXX9Ae+lHEjrL1mU/o5sU4Nlbv8avybtf697wPg5KxFfLg4iwvJ73
VCgsZdYy4vsCRhQ=
-----END CERTIFICATE-----
50 changes: 25 additions & 25 deletions pkg/security/securitytest/test_certs/ca-client-tenant.key
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
-----BEGIN RSA PRIVATE KEY-----
MIIEowIBAAKCAQEAsQmetpp+pg0L4i2Xf6WtY/QtERR5QqOe1/r1cO9y9nUG63b+
E0Y8AHtMEhBp53csLzOnSzLRqaUlJk/f0mShRYuyxSy4rMxjXur+EepDNYyZ3i4H
X5RrxVcscoeHwI8VfJJ/Gb9xoTVZWnSU0mxX/ycIgQJFY0ia80lZBHohD+dQeDlR
c9RXm4PAQ0qRPDl847rv6wA8A0xwygCZQA/j23cfLuAteViMffKSW6HrSjjNT+kG
s8P3MmKIDXYp+kpKLaLJUsyhGFEsPot96k5vzIA+oBdMpk44RblMwjrcz6RjcwY/
9+VCfgg59yf6cRm+KOVURKQYSAEIPpvOpk3hrwIDAQABAoIBAQCKw9iUlqpYq3c6
FLRgCFPNOfItJhgaBLgX4IyLthQtW/NNkxp5rx6O3hX1PspT9JQ8d0dU6QNv7pMc
4ZS1i8zg/yvj4zbpstbc6mK1ViLSEV/1x6xd3a9PohGjv9nHNCAKYaWgX+/IBVIB
Vcnk2alrxIOk40vSE3Ho6gANQ1Ew7bewcM5MiWWVWez/jTFatHCPxRSFSZsB6ouj
yD6NEXo+ILak1gM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+X7xUCb/F5F1Q4EC4hAvvYVNyWshGvrevW+rEI
etx8Ah932AlKjWHPmAj84uZOqEvXcUTpIAfxL5JL18SQeTL3RM3PMOwBfFpC2931
sb+tG3vmXQMBl8Wo78Z+DQKBgQCBwe3aBzDF4CJvQpCP5zQMWprU5YXWPRFpv41p
DzeNq4m+1EH3RonldP5MhEKhHdM2l7s4Wk7FUGgnPlLVYPP84QG09PXcAmm+gjIL
/PGQ49zj34dq95feKSccqzSt2Jf2xYSbydodGZQU8jRMHjiySt8X73wVhrPRpJUm
sDrs6QKBgDFrQ/TxQFGbR57O4+qFYMqct4kmXuc21Sb8e4Ellw99gvpvISuJd39h
mf1LWj7A+7gbyBrYzVFZScxatZEht9sX7YQ45eyLfBjJQhNnKYLQRtabzQgQT8kg
ca0pFukJkYRJvnaA8Q2+kTczn7NcDyoeZaK+gTq2byDVHYR1nPYK
-----END RSA PRIVATE KEY-----
30 changes: 15 additions & 15 deletions pkg/security/securitytest/test_certs/ca-server-tenant.crt
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
-----BEGIN CERTIFICATE-----
MIIDBjCCAe6gAwIBAgIQa5P91ovdazkoyfC8MnoayjANBgkqhkiG9w0BAQsFADAr
MIIDBjCCAe6gAwIBAgIQdcYD8J5t+ouxKBAzVSXSWjANBgkqhkiG9w0BAQsFADAr
MRIwEAYDVQQKEwlDb2Nrcm9hY2gxFTATBgNVBAMTDENvY2tyb2FjaCBDQTAeFw0y
MDA3MTUwODA5MDNaFw0zMDA3MjQwODA5MDNaMCsxEjAQBgNVBAoTCUNvY2tyb2Fj
MDA3MTUxMTQ2MjhaFw0zMDA3MjQxMTQ2MjhaMCsxEjAQBgNVBAoTCUNvY2tyb2Fj
aDEVMBMGA1UEAxMMQ29ja3JvYWNoIENBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A
MIIBCgKCAQEA3UxoWZoyTDklzDxDOGEqCC+MVDxysW3+xe0QUB834z6z23hFfyq4
JkXJJXhGvWjNoV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QRQIDAQABoyYwJDAOBgNVHQ8BAf8EBAMC
AuQwEgYDVR0TAQH/BAgwBgEB/wIBATANBgkqhkiG9w0BAQsFAAOCAQEAIiu3gYWL
tH76mFGmXIkPoSxkaYf2AsLqQggsPvz6rXqYd8r+XB3ZXlUr3lLs505JtOYG7Obk
7ZqhlTRRcKeTQZWPOvcPC/oB0cQHUuJEiB8oZaPRdH6yA9zpdG6U9SkPhim8+6Pz
ha8YC+px4weQgnS/bjbBdlSTRcqllm2KoZXy55mzqKQ9/SAPtcZ6cFcE8prPVmLh
XInRgQFqCWngKupPN01aKr2Wv+RUEkiCkE6d0QPBpc7j6VejtfXGOfyOSCSItP0p
QsMe6/XjaDNIcRic1vhzavThNdw2KgIvcEFaTpQwSviKpogFGNDYFBMfMVZLec/k
E0YN7oZEJbj48g==
-----END CERTIFICATE-----
50 changes: 25 additions & 25 deletions pkg/security/securitytest/test_certs/ca-server-tenant.key
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
-----BEGIN RSA PRIVATE KEY-----
MIIEpAIBAAKCAQEA3UxoWZoyTDklzDxDOGEqCC+MVDxysW3+xe0QUB834z6z23hF
fyq4JkXJJXhGvWjNoV83rl7lmbV1phcKH2aMfbiQ0HKAyGnixsph+FeE1rxCNQMX
6utocFUV2F0kK/euCusHwLYU9Qd6BdvP9gRhtmFu1zC8VTmCIdH4n4KiKQuWE0eA
XqQgMXLDxqSXPnkzZ1LygpF5GRa7Vyl3dC3iUk2H7rAQ40IwhvaYIRmYvEsK+yqR
rd78A6dhXKX8vfUt6Vu9OTKd6ZaJamcIlbqi57xJkGjpkCTu+wZ9eqnlf2zYBgwC
kG/D08sfooVGxf0/YRFkO4jnd5opqkT3erhlMwIDAQABAoIBAQCzmmCSYA/0RulD
UaFor4sSa6yjbQ/UqqX8cwMrU7rjBq+oLnuQ0tXz0e2HKI+ZB+bj0kh5j3Eeh+Q8
8TP4+hyJqHJ3ioa0oSM5HWXXzQf104KUTbdqpLX1fUimeilyOaka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fockSDqKPT0SgLk9L/N494wN9DQPYjMCgYAaqj/XpvVgOqfAUvQb8y0m
X8vMC0kXEpzkm7qNMj0QvRKMrE8kKaBRYLMbLtKUY/eez/e7Hdm3RZcEYpxfONKy
6kvqM9RDwqvggYP+jbmJi3BjatfkqKJkc0iDcKR7RI16mPOqe098sCfoBAJDCgu3
+yLj6RK65kYoWQ9LHOeKLwJ/TWCKbJzLtplyh49fhq3n180U/NYcL62UfgMb586s
hkS8xMeASWcX1EWIU3Xl32zupR9HAzj7Au7ywV9j5OpW0QhGshbJygxug/Bx0Qty
VsRTj4PsbDRUIt68U6i6KPPGxQbastnb4Vccl+NVcTZzxFv87cIGCUW01mvCUjte
/wKBgQCUM3h2C37D1Mkj3m+ulYECCe0G9cxZg2oYECSYmQCI3ITYRbP6Cn6nT0jX
eQP+35YuVN4lhaFywwO/bD9T/UxbIGborbWUScaGk9iT+D8gTLjWuBKUm16+MHkY
qfwq6YHCBWljRclKovFByM3030Z4XfqESbdpLLuN0NuJnkqQVQ==
-----END RSA PRIVATE KEY-----
34 changes: 17 additions & 17 deletions pkg/security/securitytest/test_certs/ca.crt
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
-----BEGIN CERTIFICATE-----
MIIDBjCCAe6gAwIBAgIQcO7c8woB7kFKAq5bnkirBTANBgkqhkiG9w0BAQsFADAr
MRIwEAYDVQQKEwlDb2Nrcm9hY2gxFTATBgNVBAMTDENvY2tyb2FjaCBDQTAeFw0y
MDA3MTUwODA5MDJaFw0zMDA3MjQwODA5MDJaMCsxEjAQBgNVBAoTCUNvY2tyb2Fj
aDEVMBMGA1UEAxMMQ29ja3JvYWNoIENBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A
MIIBCgKCAQEAv/nD8JthvBj6hOS71AIhpbBkh2L5xSMmHEaowCaDlYLG19X0DBiU
FlfBt+g/Lelh3naLmYb/W4KlQCW3IBvcRwjFUcLdAeErgaNoygnDmeO+kxGl8maD
DYiTTkQ5ttAQp39y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AXv1NdEjhE8x0izgk0aWyLZrTvFkpIbIl61ogDD
2SR6vd0u9Kjsyfv5eu7caS0G8JXHJYN78RvZZK4+etR+qoOgdPErZj7I7stLDb9T
crjc4Vj5D9bGp0fiJ3OsMB3v1mOLvAQO2VqIMKIMwHzERL23Qc2tGfUJam2qp7sU
ZJnIK0bfLDXhPSdawgYPwKpQMxpB1o5YXIMCAwEAAaMmMCQwDgYDVR0PAQH/BAQD
AgLkMBIGA1UdEwEB/wQIMAYBAf8CAQEwDQYJKoZIhvcNAQELBQADggEBAChnKRf2
a5VeoWjUxScPClAHduMa99r9XvCu5i9RRTEfE+IGO8UuswSajb3uTpuN4tSs209B
ZrWzskaI1cFZWhNMslszQuotUFcgzpqFrCF5EMioNpSVattAVWIYsiY8KPUMuUYO
9RkOOdqeM3PrmYsVR3kicdLTOMVb/mWMxEWrMwbC966PtdXbBFDNsFOHXwMtB46i
J2Yh7WGHjCOwOqmNOlZ/RQkSzqYo61HJ1Dlc0uO7s6n38Ud+P3d5K9Onqh0SmWin
yipZLHZ9IUjCemirVytoC9o6PcxGufh66nEE3qG/L5kQvTfyYsPW+g/1bYK7Dm1h
oO1otHyDZwmW+yE=
-----END CERTIFICATE-----
50 changes: 25 additions & 25 deletions pkg/security/securitytest/test_certs/ca.key
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
-----BEGIN RSA PRIVATE KEY-----
MIIEogIBAAKCAQEAv/nD8JthvBj6hOS71AIhpbBkh2L5xSMmHEaowCaDlYLG19X0
DBiUFlfBt+g/Lelh3naLmYb/W4KlQCW3IBvcRwjFUcLdAeErgaNoygnDmeO+kxGl
8maDDYiTTkQ5ttAQp39yrIZiSQnxG0wpd71nXzdCiD4nPW43o5EpyB4g+OVSzYiT
jui5LLxvX9+owg2rNzDQtYB7cogQAG7d/YPA9YFRAybkc03pS+5E/gPG/y4p3LAk
wn5PiHTVlHC4NZg78XE6lvQVkvYOLPyTHGN0IjTgy2CRA8lkxRIBFNshViBM6lSq
TJ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Y8KqEfzw0jBLy+CmG1AoGBAM/C
b959TDExUD270WgD1lWSTiryNtDRnP7QIbch7dIaroVw2LkR/heQxk1GKfETy9yw
o0B8PV3uL2kCyve3WkvJS9HxeMkPfvRY07P/+wVTSs6rGfVLrS0Uer/J5H/Abwyk
n9mj6NMw1UaM0/lh0O4C5WSGZHwtTeCRR0eW5YhXAoGBANYpB17ARzQY9jSzYA0q
bfzk8PobcpzxRRiIlWSeLsT6DygwEqjfKQyStpB+Uk+hWCxQbMBX9x/fizddBF/A
rK54wrbWP2NgKAl8cwP0gfUPj3my0hkMzw42OCpkLD7Xl+pBL5UMUmvhPR41YTBN
QNjC94r7BZ6iwGwIVSDLt53VAoGAXFOH61O7PFEx231Pve2Wnkh6PFOPUJUWM5bC
pOOLEEeTLvHLHdOFG2vW9BguI1gszFIi+lE75DYpE32OPS9aDTvTWeT5TEB6ppOi
4Obs4pz1LYqT6pJKzzG+quRJiww1TWULNGjG2rNk1AlZWgXCF0NqNZYTqatoZFer
WYERV9kCgYBnfYvQ0aD/c95lZpu0el6vkvDQzA4UYoK/6n1uEAb8pvLiitHrR2Wc
Bib8k/A/PHmyzG4PYIQ2OfmriYeZeeZMa2X9Y/VxNFwmqy4psPmo6iItZtMZ16VP
I+DG9MfZ8xg41oEOK4s50WmVYEep6/03b2b8szjeDAxtQ1lXiBxAww==
-----END RSA PRIVATE KEY-----
19 changes: 19 additions & 0 deletions pkg/security/securitytest/test_certs/client-tenant.10.crt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
-----BEGIN CERTIFICATE-----
MIIC/TCCAeWgAwIBAgIQNpOVxM/f/h4pveU5jxIigTANBgkqhkiG9w0BAQsFADAr
MRIwEAYDVQQKEwlDb2Nrcm9hY2gxFTATBgNVBAMTDENvY2tyb2FjaCBDQTAeFw0y
MDA3MTUxMTQ2MjdaFw0yNTA3MjAxMTQ2MjdaMCExEjAQBgNVBAoTCUNvY2tyb2Fj
aDELMAkGA1UEAxMCMTAwggEiMA0GC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