Skip to content
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

ccl: debug encryption-active-key command to show active store key ID. #35234

Merged
merged 1 commit into from
Feb 27, 2019

Conversation

mberhault
Copy link
Contributor

Given a data directory, this displays the active store key ID and
encryption algorithm in use.

Unlike debug encryption-status, this command does not open the
rocksdb instance and therefore does not require knowing the encryption
key. This makes it useful to determine the encryption status with zero
knowledge.

Sample outputs:

$ cockroach debug encryption-active-key foobar
Error: data directory foobar does not exist: stat foobar: no such file or directory
Failed running "debug encryption-active-key"

$ cockroach debug encryption-active-key cockroach-noencryption/
Plaintext:

$ cockroach debug encryption-active-key cockroach-plain/
Plaintext:

$ cockroach debug encryption-active-key cockroach-data
AES128_CTR:be235c29239aa84a48e5e1874d76aebf7fb3c1bdc438cec2eb98de82f06a57a0

Release note (enterprise change): add debug encryption-active-key
command

Given a data directory, this displays the active store key ID and
encryption algorithm in use.

Unlike `debug encryption-status`, this command does not open the
rocksdb instance and therefore does not require knowing the encryption
key. This makes it useful to determine the encryption status with zero
knowledge.

Sample outputs:
```
$ cockroach debug encryption-active-key foobar
Error: data directory foobar does not exist: stat foobar: no such file or directory
Failed running "debug encryption-active-key"

$ cockroach debug encryption-active-key cockroach-noencryption/
Plaintext:

$ cockroach debug encryption-active-key cockroach-plain/
Plaintext:

$ cockroach debug encryption-active-key cockroach-data
AES128_CTR:be235c29239aa84a48e5e1874d76aebf7fb3c1bdc438cec2eb98de82f06a57a0
```

Release note (enterprise change): add debug encryption-active-key
command
@mberhault mberhault requested review from bdarnell and a team February 27, 2019 15:01
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor

@bdarnell bdarnell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 of 1 files at r1.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained

@mberhault
Copy link
Contributor Author

bors r+

craig bot pushed a commit that referenced this pull request Feb 27, 2019
35126: sql: don't double call ConsumerClosed in wrapped local plans r=jordanlewis a=jordanlewis

Previously, if someone double-closed a planNode tree containing a
wrapped distsql plan, that might double close a RowChannel, which is
illegal. Add a protection against that.

Release note: None

35234: ccl: debug encryption-active-key command to show active store key ID. r=mberhault a=mberhault

Given a data directory, this displays the active store key ID and
encryption algorithm in use.

Unlike `debug encryption-status`, this command does not open the
rocksdb instance and therefore does not require knowing the encryption
key. This makes it useful to determine the encryption status with zero
knowledge.

Sample outputs:
```
$ cockroach debug encryption-active-key foobar
Error: data directory foobar does not exist: stat foobar: no such file or directory
Failed running "debug encryption-active-key"

$ cockroach debug encryption-active-key cockroach-noencryption/
Plaintext:

$ cockroach debug encryption-active-key cockroach-plain/
Plaintext:

$ cockroach debug encryption-active-key cockroach-data
AES128_CTR:be235c29239aa84a48e5e1874d76aebf7fb3c1bdc438cec2eb98de82f06a57a0
```

Release note (enterprise change): add debug encryption-active-key
command

Co-authored-by: Jordan Lewis <jordanthelewis@gmail.com>
Co-authored-by: marc <marc@cockroachlabs.com>
@craig
Copy link
Contributor

craig bot commented Feb 27, 2019

Build succeeded

@craig craig bot merged commit 1aa43b6 into cockroachdb:master Feb 27, 2019
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.

None yet

3 participants