File tree Expand file tree Collapse file tree 2 files changed +1
-12
lines changed
apps/hip-3-pusher/src/pusher Expand file tree Collapse file tree 2 files changed +1
-12
lines changed Original file line number Diff line number Diff line change 5
5
6
6
class KMSConfig (BaseModel ):
7
7
enable_kms : bool
8
- aws_region_name : str
9
8
key_path : str
10
- access_key_id_path : str
11
- secret_access_key_path : str
12
9
13
10
14
11
class LazerConfig (BaseModel ):
Original file line number Diff line number Diff line change @@ -37,17 +37,9 @@ def __init__(self, config: Config):
37
37
logger .info ("KMSSigner address: {}" , self .address )
38
38
39
39
def _init_client (self , config ):
40
- aws_region_name = config .kms .aws_region_name
41
- access_key_id_path = config .kms .access_key_id_path
42
- access_key_id = open (access_key_id_path , "r" ).read ().strip ()
43
- secret_access_key_path = config .kms .secret_access_key_path
44
- secret_access_key = open (secret_access_key_path , "r" ).read ().strip ()
45
-
40
+ # AWS_REGION, AWS_ACCESS_KEY_ID, and AWS_SECRET_ACCESS_KEY should be set as environment variables
46
41
return boto3 .client (
47
42
"kms" ,
48
- region_name = aws_region_name ,
49
- aws_access_key_id = access_key_id ,
50
- aws_secret_access_key = secret_access_key ,
51
43
# can specify an endpoint for e.g. LocalStack
52
44
# endpoint_url="http://localhost:4566"
53
45
)
You can’t perform that action at this time.
0 commit comments