-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
release-22.1: roachprod: support --secure flag for start-tenant #85719
release-22.1: roachprod: support --secure flag for start-tenant #85719
Conversation
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
Thanks for opening a backport. Please check the backport criteria before merging:
If some of the basic criteria cannot be satisfied, ensure that the exceptional criteria are satisfied within.
Add a brief release justification to the body of your PR to justify this backport. Some other things to consider:
|
This PR updates the `acceptance/multitenant` and `multitenant-upgrade` roachtests to run in secure mode, now that the necessary infra. to run multitenant roachtests in secure mode has been added to roachprod. It also updates the roachprod setup to detect whether or not the cockroach binary supports tenant-scoped client certificates via the `--help` command's output. Release note: none
Multitenant roachtest outputs with these changes: acceptance/multitenant
multitenant-upgrade
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ty!
TFTR! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Belatedly also giving a +1 here. Thanks for backporting this!
Backport 1/1 commits from #82248.
/cc @cockroachdb/release
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
Backport notes
This PR is a follow up to a previous backport (#84371) which introduced functionality to support tenant scoped client certificates & authz checks into CockroachDB v22.1.
While #84371 successfully provided all the necessary changes within CockroachDB to support these new certificates, it failed to include some necessary roachprod changes (#82248) required to make use of these new certificates in roachprod/roachtests, and more generally, to run multitenant roachtests in
secure
mode.This led to roachtest failures on the
release-22.1
branch (#85211). I've confirmed that the failing tests pass with the inclusion of #82248.Furthermore, with support for
secure
multitenant roachtests, we no longer have to skip theacceptance/multitenant
roachtest on therelease-22.1
branch. This PR removes theSkip
flag from the test registry foracceptance/multitenant
.Lastly, it adds the
install.SecureOption(true)
flag to the cluster settings used in the setup of themultitenant-upgrade
andacceptance/multitenant
roachtests.Release justification: fix for a roachtest failure marked as a release blocked for the
release-22.1
branch.