forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
60627: bazel: fix up name of `forbiddenmethod` library target r=rickystewart a=rickystewart This was moved wholesale from a directory called `descriptormarshal`, so it retained its old library name. This isn't the normal style we're using and I'm concerned about how Gazelle will handle this going forward, so change it to the expected style. Also delete an accidentally duplicated test. Release note: None 60636: cli: Add connect command stub r=aaron-crl a=itsbilal Adds a new command stub, `connect`, with relevant args of `--certs-dir`, `--init-token`, and list of peers. Implementation code for this command is yet to come, and the command is not hooked up to the outer `cockroach` command yet. Very first part of cockroachdb#60632. Release note: None. Co-authored-by: Ricky Stewart <[email protected]> Co-authored-by: Bilal Akhtar <[email protected]>
- Loading branch information
Showing
10 changed files
with
60 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// Copyright 2021 The Cockroach Authors. | ||
// | ||
// Use of this software is governed by the Business Source License | ||
// included in the file licenses/BSL.txt. | ||
// | ||
// As of the Change Date specified in that file, in accordance with | ||
// the Business Source License, use of this software will be governed | ||
// by the Apache License, Version 2.0, included in the file | ||
// licenses/APL.txt. | ||
|
||
package cli | ||
|
||
import "github.com/spf13/cobra" | ||
|
||
// connectCmd triggers a TLS initialization handshake and writes | ||
// certificates in the specified certs-dir for use with start. | ||
var connectCmd = &cobra.Command{ | ||
Use: "connect --certs-dir=<path to cockroach certs dir> --init-token=<shared secret> --join=<host 1>,<host 2>,...,<host N>", | ||
Short: "build TLS certificates for use with the start command", | ||
Long: ` | ||
Connects to other nodes and negotiates an initialization bundle for use with | ||
secure inter-node connections. | ||
`, | ||
Args: cobra.NoArgs, | ||
RunE: MaybeDecorateGRPCError(runConnect), | ||
} | ||
|
||
// runConnect connects to other nodes and negotiates an initialization bundle | ||
// for use with secure inter-node connections. | ||
func runConnect(cmd *cobra.Command, args []string) error { | ||
// TODO(bilal): Implement TLS init handshake. | ||
// https://github.com/cockroachdb/cockroach/issues/60632 | ||
return nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters