Skip to content

Commit

Permalink
roachprod: support --secure flag for start-tenant
Browse files Browse the repository at this point in the history
The in-development tenant streaming features require a secure tenant
to test them properly.

This change adds support for the --secure flag when starting a
tenant. When passed, we use the host cluster to generate tenant-client
certificates and distribute them to the tenant cluster, along with the
CA and previously created client certificates.

For simplicity, we've stuck with using a single CA for all certificate
creation.

Release note: None
  • Loading branch information
stevendanna authored and abarganier committed Aug 5, 2022
1 parent 033c911 commit f843d36
Show file tree
Hide file tree
Showing 4 changed files with 277 additions and 92 deletions.
2 changes: 1 addition & 1 deletion pkg/cmd/roachprod/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ func initFlags() {
cmd.Flags().StringVarP(&config.Binary,
"binary", "b", config.Binary, "the remote cockroach binary to use")
}
for _, cmd := range []*cobra.Command{startCmd, sqlCmd, pgurlCmd, adminurlCmd, runCmd} {
for _, cmd := range []*cobra.Command{startCmd, startTenantCmd, sqlCmd, pgurlCmd, adminurlCmd, runCmd} {
cmd.Flags().BoolVar(&secure,
"secure", false, "use a secure cluster")
}
Expand Down
Loading

0 comments on commit f843d36

Please sign in to comment.