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.
129216: cli, security: add --tenant-name-scope CLI flag r=cthumuluru-crdb a=cthumuluru-crdb Currently client certificates can be generated with tenant scope using `cert create-client` command with `--tenant-scope` flag. Certificates generated with tenant scope restrict access to only those tenants. Tenant ID is an internal identifier to identify a specific tenant and it is not a great user experience to use it in customer facing interfaces (CLI in this case). The goal of the ticket [CRDB-28992](https://cockroachlabs.atlassian.net/browse/CRDB-28992) is to allow users to generate certificates with tenant scope using tenant names and use those certificates to authenticate. To complete this ticket, following changes are needed: 1. Allow users to generate tenant scoped certs using tenant names. 2. Use those certificates to authenticate. This PR addresses the first part of the changes. I'll send a followup PR for the second part of the changes. Changes in this PR allows users to use both `tenant-scope` and `tenant-name-scope` flags to specify the scopes. IMO, this will be useful for backward compatibility. We can eventually deprecate supporting `tenant-scope` flag. Another option is to make `tenant-scope`, `tenant-name-scope` flags mutually exclusive. Informs: cockroachdb#105340 EPIC: CRDB-39093 Release note: None Co-authored-by: Chandra Thumuluru <[email protected]>
- Loading branch information
Showing
15 changed files
with
309 additions
and
76 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
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
Oops, something went wrong.