Skip to content

Conversation

@windchan7
Copy link
Contributor

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

@windchan7 windchan7 requested a review from a team May 16, 2018 20:52
@windchan7 windchan7 requested a review from a team as a code owner May 16, 2018 20:52
@windchan7 windchan7 requested a review from a team May 16, 2018 20:52
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@windchan7 windchan7 requested a review from mberhault May 16, 2018 22:48
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
Copy link
Contributor

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.

}

// IsEmpty returns if TempStorageConfig is empty.
func (cfg TempStorageConfig) IsEmpty() bool {
Copy link
Contributor

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
@windchan7 windchan7 requested review from a team May 17, 2018 21:44
@windchan7
Copy link
Contributor Author

windchan7 commented May 19, 2018

@mberhault Is it good to go, Marc?

@mberhault
Copy link
Contributor

LGTM. Thank.

@windchan7
Copy link
Contributor Author

bors r+

craig bot pushed a commit that referenced this pull request May 21, 2018
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>
@craig
Copy link
Contributor

craig bot commented May 21, 2018

Build succeeded

@craig craig bot merged commit 52f22d7 into cockroachdb:master May 21, 2018
@mberhault mberhault mentioned this pull request May 23, 2018
29 tasks
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.

3 participants