qontract-reconcile 0.10.1rc404__py3-none-any.whl → 0.10.1rc405__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {qontract_reconcile-0.10.1rc404.dist-info → qontract_reconcile-0.10.1rc405.dist-info}/METADATA +1 -1
- {qontract_reconcile-0.10.1rc404.dist-info → qontract_reconcile-0.10.1rc405.dist-info}/RECORD +6 -6
- reconcile/utils/aws_api.py +13 -1
- {qontract_reconcile-0.10.1rc404.dist-info → qontract_reconcile-0.10.1rc405.dist-info}/WHEEL +0 -0
- {qontract_reconcile-0.10.1rc404.dist-info → qontract_reconcile-0.10.1rc405.dist-info}/entry_points.txt +0 -0
- {qontract_reconcile-0.10.1rc404.dist-info → qontract_reconcile-0.10.1rc405.dist-info}/top_level.txt +0 -0
{qontract_reconcile-0.10.1rc404.dist-info → qontract_reconcile-0.10.1rc405.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: qontract-reconcile
|
3
|
-
Version: 0.10.
|
3
|
+
Version: 0.10.1rc405
|
4
4
|
Summary: Collection of tools to reconcile services with their desired state as defined in the app-interface DB.
|
5
5
|
Home-page: https://github.com/app-sre/qontract-reconcile
|
6
6
|
Author: Red Hat App-SRE Team
|
{qontract_reconcile-0.10.1rc404.dist-info → qontract_reconcile-0.10.1rc405.dist-info}/RECORD
RENAMED
@@ -479,7 +479,7 @@ reconcile/typed_queries/terraform_tgw_attachments/aws_accounts.py,sha256=T5HSeyB
|
|
479
479
|
reconcile/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
480
480
|
reconcile/utils/aggregated_list.py,sha256=0wvfrjuFjyO1pblC1N9zTNq_4ihAiw0D7yguiNyQLjc,3330
|
481
481
|
reconcile/utils/amtool.py,sha256=9p9FYkv4RYPnkDICuN1apcqJyZ5n8WbHF6vC0FIiQIw,2166
|
482
|
-
reconcile/utils/aws_api.py,sha256=
|
482
|
+
reconcile/utils/aws_api.py,sha256=Bt_TtVM3FVWvVAJ-z-UclVYYZjWoXeA1UAJYzYqKcIE,63026
|
483
483
|
reconcile/utils/aws_helper.py,sha256=E8NHkStoHRmvLVjRll2f5kGtU3i3f7ekp5V6nrn7B_M,1691
|
484
484
|
reconcile/utils/binary.py,sha256=3IBnwjKakHM367skPPvG6yVSQYjKt5muQlFNdoa63DU,2352
|
485
485
|
reconcile/utils/config.py,sha256=ZhYy3ZKI0vB_QvrYr14JPxu0EAVM5gS8cKRbM8ECRSE,992
|
@@ -622,8 +622,8 @@ tools/test/test_app_interface_metrics_exporter.py,sha256=dmEcNwZltP1rd_4DbxIYakO
|
|
622
622
|
tools/test/test_qontract_cli.py,sha256=awwTHEc2DWlykuqGIYM0WOBoSL0KRnOraCLk3C7izis,1401
|
623
623
|
tools/test/test_sd_app_sre_alert_report.py,sha256=v363r9zM7__0kR5K6mvJoGFcM9BvE33fWAayrqkpojA,2116
|
624
624
|
tools/test/test_sre_checkpoints.py,sha256=SKqPPTl9ua0RFdSSofnoQX-JZE6dFLO3LRhfQzqtfh8,2607
|
625
|
-
qontract_reconcile-0.10.
|
626
|
-
qontract_reconcile-0.10.
|
627
|
-
qontract_reconcile-0.10.
|
628
|
-
qontract_reconcile-0.10.
|
629
|
-
qontract_reconcile-0.10.
|
625
|
+
qontract_reconcile-0.10.1rc405.dist-info/METADATA,sha256=bIqWFa2YEDDCInJCzun3qZNNLuo-Ok-3ib1HmGEXccg,2347
|
626
|
+
qontract_reconcile-0.10.1rc405.dist-info/WHEEL,sha256=Xo9-1PvkuimrydujYJAjF7pCkriuXBpUPEjma1nZyJ0,92
|
627
|
+
qontract_reconcile-0.10.1rc405.dist-info/entry_points.txt,sha256=rTjAv28I_CHLM8ID3OPqMI_suoQ9s7tFbim4aYjn9kk,376
|
628
|
+
qontract_reconcile-0.10.1rc405.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
|
629
|
+
qontract_reconcile-0.10.1rc405.dist-info/RECORD,,
|
reconcile/utils/aws_api.py
CHANGED
@@ -20,6 +20,7 @@ from typing import (
|
|
20
20
|
|
21
21
|
import botocore
|
22
22
|
from boto3 import Session
|
23
|
+
from botocore.config import Config
|
23
24
|
from pydantic import BaseModel
|
24
25
|
from sretoolbox.utils import threaded
|
25
26
|
|
@@ -170,6 +171,13 @@ class AWSApi: # pylint: disable=too-many-public-methods
|
|
170
171
|
access_key = secret["aws_access_key_id"]
|
171
172
|
secret_key = secret["aws_secret_access_key"]
|
172
173
|
region_name = account["resourcesDefaultRegion"]
|
174
|
+
self.use_fips = False
|
175
|
+
|
176
|
+
# ensure that govcloud accounts use FIPs endpoints
|
177
|
+
if "partition" in account and account["partition"] == GOVCLOUD_PARTITION:
|
178
|
+
logging.debug(f"FIPS endpoint enabled for AWS account: {account_name}")
|
179
|
+
self.use_fips = True
|
180
|
+
|
173
181
|
session = Session(
|
174
182
|
aws_access_key_id=access_key,
|
175
183
|
aws_secret_access_key=secret_key,
|
@@ -203,7 +211,11 @@ class AWSApi: # pylint: disable=too-many-public-methods
|
|
203
211
|
region_name: Optional[str] = None,
|
204
212
|
):
|
205
213
|
region = region_name if region_name else session.region_name
|
206
|
-
client = session.client(
|
214
|
+
client = session.client(
|
215
|
+
service_name,
|
216
|
+
region_name=region,
|
217
|
+
config=Config(use_fips_endpoint=self.use_fips),
|
218
|
+
)
|
207
219
|
self._session_clients.append(client)
|
208
220
|
return client
|
209
221
|
|
File without changes
|
File without changes
|
{qontract_reconcile-0.10.1rc404.dist-info → qontract_reconcile-0.10.1rc405.dist-info}/top_level.txt
RENAMED
File without changes
|