Skip to content

roachprod: reintroduce --secure flag#123826

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
renatolabs:rc/roachprod-reintroduce-secure-flag
May 8, 2024
Merged

roachprod: reintroduce --secure flag#123826
craig[bot] merged 1 commit intocockroachdb:masterfrom
renatolabs:rc/roachprod-reintroduce-secure-flag

Conversation

@renatolabs
Copy link
Copy Markdown

In #123593, we changed roachprod's default when starting clusters: it will now start secure clusters unless the --insecure flag is passed (mirroring cockroach's behaviour and flag name).

However, this leads to problems when running roachprod commands in commits before and after this change. In this commit, we temporarily reintroduce the --secure flag to roachprod to reduce disruptions. Once the new default has existed for a while, we can revert this commit.

Epic: none

Release note: None

In cockroachdb#123593, we changed roachprod's default when starting clusters: it
will now start secure clusters unless the `--insecure` flag is
passed (mirroring cockroach's behaviour and flag name).

However, this leads to problems when running roachprod commands in
commits before and after this change. In this commit, we temporarily
reintroduce the `--secure` flag to roachprod to reduce
disruptions. Once the new default has existed for a while, we can
revert this commit.

Epic: none

Release note: None
@renatolabs renatolabs requested a review from a team as a code owner May 8, 2024 17:55
@renatolabs renatolabs requested review from herkolategan and srosenberg and removed request for a team May 8, 2024 17:55
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@renatolabs renatolabs requested a review from dt May 8, 2024 17:56
@renatolabs
Copy link
Copy Markdown
Author

bors r=dt,srosenberg

@craig
Copy link
Copy Markdown
Contributor

craig bot commented May 8, 2024

@craig craig bot merged commit ccfb104 into cockroachdb:master May 8, 2024
srosenberg added a commit to srosenberg/cockroach that referenced this pull request Jun 4, 2025
As of [1], [2], `roachprod` defaulted to
"secure" mode to keep it in one-to-one
correspondence with `roachtest`. However,
upon further reflection (see an internal thread [3]),
"secure mode" adds an unnecessary friction.

As of this change, `roachprod` now defaults to
"insecure" mode while `roachtest` _continues_ to
default to "secure".

We also refactor `drtprod` to reuse the cli wrapper
from `roachprod`. This way both binaries have the same
behavior wrt `--insecure/--secure`.

[1] cockroachdb#123593
[2] cockroachdb#123826
[3] https://cockroachlabs.slack.com/archives/C023S0V4YEB/p1748888536180379?thread_ts=1724452649.312729&cid=C023S0V4YEB

Epic: none
Release note: None
srosenberg added a commit to srosenberg/cockroach that referenced this pull request Jun 26, 2025
As of [1], [2], `roachprod` defaulted to
"secure" mode to keep it in one-to-one
correspondence with `roachtest`. However,
upon further reflection (see an internal thread [3]),
"secure mode" adds an unnecessary friction.

As of this change, `roachprod` now defaults to
"insecure" mode while `roachtest` _continues_ to
default to "secure". Further, `drtprod` also
continues to default to "secure" mode.

[1] cockroachdb#123593
[2] cockroachdb#123826
[3] https://cockroachlabs.slack.com/archives/C023S0V4YEB/p1748888536180379?thread_ts=1724452649.312729&cid=C023S0V4YEB

Epic: none
Release note: None
craig bot pushed a commit that referenced this pull request Jun 27, 2025
147737: roachprod: default `--insecure` to `true` r=herkolategan,darrylwong,nameisbhaskar a=srosenberg

As of [1], [2], `roachprod` defaulted to
"secure" mode to keep it in one-to-one
correspondence with `roachtest`. However,
upon further reflection (see an internal thread [3]),
"secure mode" adds an unnecessary friction.

As of this change, `roachprod` now defaults to
"insecure" mode while `roachtest` _continues_ to
default to "secure". Further, `drtprod` also
continues to default to "secure" mode.

[1] #123593
[2] #123826
[3] https://cockroachlabs.slack.com/archives/C023S0V4YEB/p1748888536180379?thread_ts=1724452649.312729&cid=C023S0V4YEB

Epic: none

Release note: None

Co-authored-by: Stan Rosenberg <stan.rosenberg@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants