File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,9 @@ use crate::{
18
18
} ;
19
19
use aws_sdk_dynamodb:: types:: { AttributeValue , Delete , Put , TransactWriteItem } ;
20
20
use cipherstash_client:: {
21
- config:: { console_config:: ConsoleConfig , zero_kms_config:: ZeroKMSConfig } ,
21
+ config:: {
22
+ console_config:: ConsoleConfig , cts_config:: CtsConfig , zero_kms_config:: ZeroKMSConfig ,
23
+ } ,
22
24
credentials:: {
23
25
auto_refresh:: AutoRefresh ,
24
26
service_credentials:: { ServiceCredentials , ServiceToken } ,
@@ -66,11 +68,16 @@ impl<D> EncryptedTable<D> {
66
68
impl EncryptedTable < Headless > {
67
69
pub async fn init_headless ( ) -> Result < Self , InitError > {
68
70
info ! ( "Initializing..." ) ;
71
+
69
72
let console_config = ConsoleConfig :: builder ( ) . with_env ( ) . build ( ) ?;
73
+
74
+ let cts_config = CtsConfig :: builder ( ) . with_env ( ) . build ( ) ?;
75
+
70
76
let zero_kms_config = ZeroKMSConfig :: builder ( )
71
77
. decryption_log ( true )
72
78
. with_env ( )
73
79
. console_config ( & console_config)
80
+ . cts_config ( & cts_config)
74
81
. build_with_client_key ( ) ?;
75
82
76
83
let zero_kms_client = ZeroKMS :: new_with_client_key (
You can’t perform that action at this time.
0 commit comments