Skip to content

Commit

Permalink
Add or modify encryption related codes (#13364)
Browse files Browse the repository at this point in the history
Co-authored-by: zhujt <zhujt20@mails.tsinghua.edu.cn>
  • Loading branch information
zhujt20 and zhujt authored Nov 13, 2024
1 parent 57c668c commit e1cc229
Show file tree
Hide file tree
Showing 23 changed files with 1,273 additions and 34 deletions.
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

0 comments on commit e1cc229

Please sign in to comment.