-
Notifications
You must be signed in to change notification settings - Fork 4k
encryption: encrypt data written to disk by Distsql's temp engine. #25591
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
Conversation
pkg/cli/start.go
Outdated
| return err | ||
| } | ||
| if serverCfg.TempStorageConfig, err = initTempStorageConfig(ctx, serverCfg.Settings, stopper, serverCfg.Stores.Specs[0]); err != nil { | ||
| var useStore base.StoreSpec |
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.
This section could use some comments.
pkg/base/config.go
Outdated
| } | ||
|
|
||
| // IsEmpty returns if TempStorageConfig is empty. | ||
| func (cfg TempStorageConfig) IsEmpty() bool { |
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.
I'm not sure this is necessary. The call in start.go can be removed by just keeping track of the index into the spec list. The testserver.go use case can probably stay as it was.
Now whenever distsql's temp engine writes to disk, the data written will be encrypted. This commit is part of the `use encryption for all local disk usage (non-logs)`. Issue: cockroachdb#19783. Release note: None
|
@mberhault Is it good to go, Marc? |
|
LGTM. Thank. |
|
bors r+ |
25591: encryption: encrypt data written to disk by Distsql's temp engine. r=windchan7 a=windchan7 Now whenever distsql's temp engine writes to disk, the data written will be encrypted. This commit is part of the `use encryption for all local disk usage (non-logs)`. Issue: #19783. Release note: None Co-authored-by: Victor Chen <victor@cockroachlabs.com>
Build succeeded |
Now whenever distsql's temp engine writes to disk, the data written will be
encrypted. This commit is part of the
use encryption for all local disk usage (non-logs).Issue: #19783.
Release note: None