qontract-reconcile 0.10.2.dev298__py3-none-any.whl → 0.10.2.dev299__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: qontract-reconcile
3
- Version: 0.10.2.dev298
3
+ Version: 0.10.2.dev299
4
4
  Summary: Collection of tools to reconcile services with their desired state as defined in the app-interface DB.
5
5
  Project-URL: homepage, https://github.com/app-sre/qontract-reconcile
6
6
  Project-URL: repository, https://github.com/app-sre/qontract-reconcile
@@ -213,7 +213,7 @@ reconcile/glitchtip_project_alerts/integration.py,sha256=d3PMy-mQSbSZdIGAVaZCA2U
213
213
  reconcile/glitchtip_project_dsn/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
214
214
  reconcile/glitchtip_project_dsn/integration.py,sha256=3GgcqUM6hWhLpo9Yx5Xr9vrdexF-WNevVCNL9bJ0Upc,8162
215
215
  reconcile/gql_definitions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
216
- reconcile/gql_definitions/introspection.json,sha256=Aak1w7K7K1fhgZoZNN2gQ2TV3Jwh0X2GhqfpqRLwWp4,2359202
216
+ reconcile/gql_definitions/introspection.json,sha256=jJN4kUVnrBkb39pHZ0lwt_0ZuIyrhjyzsL17pQuGwXo,2358826
217
217
  reconcile/gql_definitions/acs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
218
218
  reconcile/gql_definitions/acs/acs_instances.py,sha256=L91WW9LbhJbBSrECqShQpFtjoBOsmNIYLRpMbx1io5o,2181
219
219
  reconcile/gql_definitions/acs/acs_policies.py,sha256=Ygpfl2-VkYLSlJvHgp_dJBfb66K_Rwfdfpsa18w1v1s,4338
@@ -426,7 +426,7 @@ reconcile/gql_definitions/terraform_repo/__init__.py,sha256=47DEQpj8HBSa-_TImW-5
426
426
  reconcile/gql_definitions/terraform_repo/terraform_repo.py,sha256=9cDKdP9ziBh9J_mw2Gi6GUOP4mFxMABY_D62qSeMtJI,3881
427
427
  reconcile/gql_definitions/terraform_resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
428
428
  reconcile/gql_definitions/terraform_resources/database_access_manager.py,sha256=yv0_YC-LmhaKD_gyGG3le1w5BtypBjlsO894-Zgdg4U,4813
429
- reconcile/gql_definitions/terraform_resources/terraform_resources_namespaces.py,sha256=EKqXL8Bx6NXqsVI4nfyQpKq8B_uHQl0L7QWnerBQTy0,44668
429
+ reconcile/gql_definitions/terraform_resources/terraform_resources_namespaces.py,sha256=j1xemQQIjR4O80Ni4RbJhDOWzk9iYcGinO79jZ3kZow,44688
430
430
  reconcile/gql_definitions/terraform_tgw_attachments/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
431
431
  reconcile/gql_definitions/terraform_tgw_attachments/aws_accounts.py,sha256=r6RacQX243Rrtm_6wobSLJZlObehqzkV-seyCVCqiv8,2596
432
432
  reconcile/gql_definitions/unleash_feature_toggles/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -658,7 +658,7 @@ reconcile/utils/sqs_gateway.py,sha256=XNIf3PY4UCPNufP2Ul0UJj3fKlt5larBba-VTT-41F
658
658
  reconcile/utils/state.py,sha256=vCHYIfrWLfPyIWEHSaADWlc4OqhwcOiqM3Egqvw-lfo,16372
659
659
  reconcile/utils/structs.py,sha256=LcbLEg8WxfRqM6nW7NhcWN0YeqF7SQzxOgntmLs1SgY,352
660
660
  reconcile/utils/terraform_client.py,sha256=GoLbfs4d4YItNCeV3NZnrth4sD8ziNYgY2IszruRDpg,37303
661
- reconcile/utils/terrascript_aws_client.py,sha256=jVzh5PmphbCAN7Pog_PFYHoHj7lmQGb6Q4FwT_c8pF8,295634
661
+ reconcile/utils/terrascript_aws_client.py,sha256=o5-K61gEbQN48IRfdHVDfgt0sW-sYN9WYho4ZZ7j7io,295917
662
662
  reconcile/utils/three_way_diff_strategy.py,sha256=oQcHXd9LVhirJfoaOBoHUYuZVGfyL2voKr6KVI34zZE,4833
663
663
  reconcile/utils/throughput.py,sha256=iP4UWAe2LVhDo69mPPmgo9nQ7RxHD6_GS8MZe-aSiuM,344
664
664
  reconcile/utils/vault.py,sha256=6V15LByFghp-U3k0N4lum6V7qt2EAlRfcAxjy5e-FAU,15146
@@ -796,7 +796,7 @@ tools/saas_promotion_state/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJ
796
796
  tools/saas_promotion_state/saas_promotion_state.py,sha256=uQv2QJAmUXP1g2GPIH30WTlvL9soY6m9lefpZEVDM5w,3965
797
797
  tools/sre_checkpoints/__init__.py,sha256=CDaDaywJnmRCLyl_NCcvxi-Zc0hTi_3OdwKiFOyS39I,145
798
798
  tools/sre_checkpoints/util.py,sha256=zEDbGr18ZeHNQwW8pUsr2JRjuXIPz--WAGJxZo9sv_Y,894
799
- qontract_reconcile-0.10.2.dev298.dist-info/METADATA,sha256=gruuhkwrqSh_2pDHyY0JBlIRMju96xZrOUm2bP1qoVA,24916
800
- qontract_reconcile-0.10.2.dev298.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
801
- qontract_reconcile-0.10.2.dev298.dist-info/entry_points.txt,sha256=5i9l54La3vQrDLAdwDKQWC0iG4sV9RRfOb1BpvzOWLc,698
802
- qontract_reconcile-0.10.2.dev298.dist-info/RECORD,,
799
+ qontract_reconcile-0.10.2.dev299.dist-info/METADATA,sha256=54Nao8mXsCO6eAMPlZPwsMC2JeDlPEBuT1Xgnk40mJk,24916
800
+ qontract_reconcile-0.10.2.dev299.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
801
+ qontract_reconcile-0.10.2.dev299.dist-info/entry_points.txt,sha256=5i9l54La3vQrDLAdwDKQWC0iG4sV9RRfOb1BpvzOWLc,698
802
+ qontract_reconcile-0.10.2.dev299.dist-info/RECORD,,
@@ -47157,13 +47157,9 @@
47157
47157
  "description": null,
47158
47158
  "args": [],
47159
47159
  "type": {
47160
- "kind": "NON_NULL",
47161
- "name": null,
47162
- "ofType": {
47163
- "kind": "SCALAR",
47164
- "name": "String",
47165
- "ofType": null
47166
- }
47160
+ "kind": "SCALAR",
47161
+ "name": "String",
47162
+ "ofType": null
47167
47163
  },
47168
47164
  "isDeprecated": false,
47169
47165
  "deprecationReason": null
@@ -47173,13 +47169,9 @@
47173
47169
  "description": null,
47174
47170
  "args": [],
47175
47171
  "type": {
47176
- "kind": "NON_NULL",
47177
- "name": null,
47178
- "ofType": {
47179
- "kind": "SCALAR",
47180
- "name": "String",
47181
- "ofType": null
47182
- }
47172
+ "kind": "SCALAR",
47173
+ "name": "String",
47174
+ "ofType": null
47183
47175
  },
47184
47176
  "isDeprecated": false,
47185
47177
  "deprecationReason": null
@@ -817,8 +817,8 @@ class NamespaceTerraformResourceS3CloudFrontPublicKeyV1(NamespaceTerraformResour
817
817
 
818
818
  class NamespaceTerraformResourceALBMutualAuthenticationV1(ConfiguredBaseModel):
819
819
  mode: str = Field(..., alias="mode")
820
- ca_cert_bundle_s3_bucket_name: str = Field(..., alias="ca_cert_bundle_s3_bucket_name")
821
- ca_cert_bundle_s3_bucket_key: str = Field(..., alias="ca_cert_bundle_s3_bucket_key")
820
+ ca_cert_bundle_s3_bucket_name: Optional[str] = Field(..., alias="ca_cert_bundle_s3_bucket_name")
821
+ ca_cert_bundle_s3_bucket_key: Optional[str] = Field(..., alias="ca_cert_bundle_s3_bucket_key")
822
822
 
823
823
 
824
824
  class NamespaceTerraformResourceALBTargetHealthcheckV1(ConfiguredBaseModel):
@@ -5563,22 +5563,27 @@ class TerrascriptClient:
5563
5563
 
5564
5564
  # mutual authentication section
5565
5565
  if mutual_authentication := resource.get("mutual_authentication"):
5566
- trust_store_values = {
5567
- "ca_certificates_bundle_s3_bucket": mutual_authentication[
5568
- "ca_cert_bundle_s3_bucket_name"
5569
- ],
5570
- "ca_certificates_bundle_s3_key": mutual_authentication[
5571
- "ca_cert_bundle_s3_bucket_key"
5572
- ],
5573
- }
5574
- trust_store = aws_lb_trust_store(
5575
- f"{identifier}-trust-store", **trust_store_values
5576
- )
5577
- tf_resources.append(trust_store)
5578
- values["mutual_authentication"] = {
5579
- "mode": mutual_authentication["mode"],
5580
- "trust_store_arn": f"${{{trust_store.arn}}}",
5581
- }
5566
+ if mutual_authentication["mode"] in {"off", "passthrough"}:
5567
+ values["mutual_authentication"] = {
5568
+ "mode": mutual_authentication["mode"],
5569
+ }
5570
+ else:
5571
+ trust_store_values = {
5572
+ "ca_certificates_bundle_s3_bucket": mutual_authentication[
5573
+ "ca_cert_bundle_s3_bucket_name"
5574
+ ],
5575
+ "ca_certificates_bundle_s3_key": mutual_authentication[
5576
+ "ca_cert_bundle_s3_bucket_key"
5577
+ ],
5578
+ }
5579
+ trust_store = aws_lb_trust_store(
5580
+ f"{identifier}-trust-store", **trust_store_values
5581
+ )
5582
+ tf_resources.append(trust_store)
5583
+ values["mutual_authentication"] = {
5584
+ "mode": mutual_authentication["mode"],
5585
+ "trust_store_arn": f"${{{trust_store.arn}}}",
5586
+ }
5582
5587
 
5583
5588
  forward_identifier = f"{identifier}-forward"
5584
5589
  forward_lbl_tf_resource = aws_lb_listener(forward_identifier, **values)