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

Add or modify encryption related codes #13364

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,24 @@ public CommonConfig setCompressor(String compressor) {
return this;
}

@Override
public CommonConfig setEncryptFlag(boolean encryptFlag) {
setProperty("encrypt_flag", String.valueOf(encryptFlag));
return this;
}

@Override
public CommonConfig setEncryptType(String encryptType) {
setProperty("encrypt_type", encryptType);
return this;
}

@Override
public CommonConfig setEncryptKeyPath(String encryptKeyPath) {
setProperty("encrypt_key_path", encryptKeyPath);
return this;
}

@Override
public CommonConfig setUdfMemoryBudgetInMB(float udfCollectorMemoryBudgetInMB) {
// udf_memory_budget_in_mb
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,27 @@ public CommonConfig setCompressor(String compressor) {
return this;
}

@Override
public CommonConfig setEncryptFlag(boolean encryptFlag) {
cnConfig.setProperty("encrypt_flag", String.valueOf(encryptFlag));
dnConfig.setProperty("encrypt_flag", String.valueOf(encryptFlag));
return this;
}

@Override
public CommonConfig setEncryptType(String encryptType) {
cnConfig.setProperty("encrypt_type", encryptType);
dnConfig.setProperty("encrypt_type", encryptType);
return this;
}

@Override
public CommonConfig setEncryptKeyPath(String encryptKeyPath) {
cnConfig.setProperty("encrypt_key_path", encryptKeyPath);
dnConfig.setProperty("encrypt_key_path", encryptKeyPath);
return this;
}

@Override
public CommonConfig setConfigRegionRatisRPCLeaderElectionTimeoutMaxMs(int maxMs) {
cnConfig.setConfigRegionRatisRPCLeaderElectionTimeoutMaxMs(maxMs);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,21 @@ public CommonConfig setCompressor(String compressor) {
return this;
}

@Override
public CommonConfig setEncryptFlag(boolean encryptFlag) {
return this;
}

@Override
public CommonConfig setEncryptType(String encryptType) {
return this;
}

@Override
public CommonConfig setEncryptKeyPath(String encryptKeyPath) {
return this;
}

@Override
public CommonConfig setConfigRegionRatisRPCLeaderElectionTimeoutMaxMs(int maxMs) {
return this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ public interface CommonConfig {

CommonConfig setCompressor(String compressor);

CommonConfig setEncryptFlag(boolean encryptFlag);

CommonConfig setEncryptType(String encryptType);

CommonConfig setEncryptKeyPath(String encryptKeyPath);

CommonConfig setConfigRegionRatisRPCLeaderElectionTimeoutMaxMs(int maxMs);

CommonConfig setUdfMemoryBudgetInMB(float udfCollectorMemoryBudgetInMB);
Expand Down
Loading