cdk-factory 0.7.20__py3-none-any.whl → 0.7.21__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.
Potentially problematic release.
This version of cdk-factory might be problematic. Click here for more details.
- cdk_factory/stack_library/api_gateway/api_gateway_stack.py +8 -4
- cdk_factory/utilities/api_gateway_integration_utility.py +1 -1
- cdk_factory/utilities/environment_services.py +1 -1
- cdk_factory/version.py +1 -1
- {cdk_factory-0.7.20.dist-info → cdk_factory-0.7.21.dist-info}/METADATA +1 -1
- {cdk_factory-0.7.20.dist-info → cdk_factory-0.7.21.dist-info}/RECORD +8 -8
- {cdk_factory-0.7.20.dist-info → cdk_factory-0.7.21.dist-info}/WHEEL +0 -0
- {cdk_factory-0.7.20.dist-info → cdk_factory-0.7.21.dist-info}/licenses/LICENSE +0 -0
|
@@ -353,7 +353,7 @@ class ApiGatewayStack(IStack, EnhancedSsmParameterMixin):
|
|
|
353
353
|
"""Setup Lambda integration for a route"""
|
|
354
354
|
route_path = route["path"]
|
|
355
355
|
# Secure by default: require Cognito authorization unless explicitly set to NONE
|
|
356
|
-
authorization_type = route.get("authorization_type", "
|
|
356
|
+
authorization_type = route.get("authorization_type", "COGNITO")
|
|
357
357
|
|
|
358
358
|
# If explicitly set to NONE, skip authorization
|
|
359
359
|
if authorization_type == "NONE":
|
|
@@ -392,7 +392,8 @@ class ApiGatewayStack(IStack, EnhancedSsmParameterMixin):
|
|
|
392
392
|
):
|
|
393
393
|
"""Setup fallback Lambda integration for routes without src"""
|
|
394
394
|
route_path = route["path"]
|
|
395
|
-
|
|
395
|
+
# Secure by default: require Cognito authorization unless explicitly set to NONE
|
|
396
|
+
authorization_type = route.get("authorization_type", "COGNITO")
|
|
396
397
|
|
|
397
398
|
resource = (
|
|
398
399
|
api_gateway.root.resource_for_path(route_path)
|
|
@@ -404,11 +405,14 @@ class ApiGatewayStack(IStack, EnhancedSsmParameterMixin):
|
|
|
404
405
|
method_options = {}
|
|
405
406
|
|
|
406
407
|
# Handle authorization type
|
|
407
|
-
if
|
|
408
|
+
if authorization_type.upper() == "NONE":
|
|
409
|
+
method_options["authorization_type"] = apigateway.AuthorizationType.NONE
|
|
410
|
+
elif authorizer:
|
|
408
411
|
method_options["authorization_type"] = apigateway.AuthorizationType.COGNITO
|
|
409
412
|
method_options["authorizer"] = authorizer
|
|
410
413
|
else:
|
|
411
|
-
|
|
414
|
+
# Default to COGNITO but no authorizer available
|
|
415
|
+
method_options["authorization_type"] = apigateway.AuthorizationType.COGNITO
|
|
412
416
|
|
|
413
417
|
# Add the method with proper options
|
|
414
418
|
try:
|
|
@@ -979,7 +979,7 @@ class ApiGatewayIntegrationUtility:
|
|
|
979
979
|
http_method=http_method,
|
|
980
980
|
resource_id=resource.resource_id,
|
|
981
981
|
rest_api_id=api_gateway.rest_api_id,
|
|
982
|
-
authorization_type="
|
|
982
|
+
authorization_type="COGNITO",
|
|
983
983
|
authorizer_id=self._get_existing_authorizer_id_with_ssm_fallback(
|
|
984
984
|
api_config, stack_config
|
|
985
985
|
),
|
cdk_factory/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.7.
|
|
1
|
+
__version__ = "0.7.21"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
cdk_factory/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
2
|
cdk_factory/app.py,sha256=xv863N7O6HPKznB68_t7O4la9JacrkG87t9TjoDUk7s,2827
|
|
3
3
|
cdk_factory/cdk.json,sha256=SKZKhJ2PBpFH78j-F8S3VDYW-lf76--Q2I3ON-ZIQfw,3106
|
|
4
|
-
cdk_factory/version.py,sha256=
|
|
4
|
+
cdk_factory/version.py,sha256=dsLz3w-bEQrCd7hoih-4i3AFeJ0J6O2MZqka_Yl9j0A,23
|
|
5
5
|
cdk_factory/builds/README.md,sha256=9BBWd7bXpyKdMU_g2UljhQwrC9i5O_Tvkb6oPvndoZk,90
|
|
6
6
|
cdk_factory/commands/command_loader.py,sha256=QbLquuP_AdxtlxlDy-2IWCQ6D-7qa58aphnDPtp_uTs,3744
|
|
7
7
|
cdk_factory/configurations/base_config.py,sha256=JKjhNsy0RCUZy1s8n5D_aXXI-upR9izaLtCTfKYiV9k,9624
|
|
@@ -72,7 +72,7 @@ cdk_factory/stack/stack_module_registry.py,sha256=J14-A75VZESzRQa8p-Fepdap7Z8T7m
|
|
|
72
72
|
cdk_factory/stack/stack_modules.py,sha256=kgEK-j0smZPozVwTCfM1g1V17EyTBT0TXAQZq4vZz0o,784
|
|
73
73
|
cdk_factory/stack_library/__init__.py,sha256=5Y9TpIe8ZK1688G60PGcuP-hM0RvYEY_3Hl2qJCJJrw,581
|
|
74
74
|
cdk_factory/stack_library/stack_base.py,sha256=tTleSFmlf26DuKVF_ytftf8P7IVWb5iex8cYfYupfvQ,4940
|
|
75
|
-
cdk_factory/stack_library/api_gateway/api_gateway_stack.py,sha256=
|
|
75
|
+
cdk_factory/stack_library/api_gateway/api_gateway_stack.py,sha256=LEjDNcCXpD2rqdi66ef1rbg6uTdt18WnZZcr__Wxjzw,29106
|
|
76
76
|
cdk_factory/stack_library/auto_scaling/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
77
77
|
cdk_factory/stack_library/auto_scaling/auto_scaling_stack.py,sha256=UsFqUb_3XPJAlmZ6F75nXna3elOggD1KuFmmdmhi0Lg,19070
|
|
78
78
|
cdk_factory/stack_library/aws_lambdas/lambda_stack.py,sha256=xT8-799fSXMpYaRhRKytxsbpb5EG3g2h6L822_RpRSk,22956
|
|
@@ -97,11 +97,11 @@ cdk_factory/stack_library/vpc/__init__.py,sha256=7pIqP97Gf2AJbv9Ebp1WbQGHYhgEbWJ
|
|
|
97
97
|
cdk_factory/stack_library/vpc/vpc_stack.py,sha256=zdDiGilf03esxuya5Z8zVYSVMAIuZBeD-ZKgfnEd6aw,10077
|
|
98
98
|
cdk_factory/stack_library/websites/static_website_stack.py,sha256=KBQiV6PI09mpHGtH-So5Hk3uhfFLDepoXInGbfin0cY,7938
|
|
99
99
|
cdk_factory/stages/websites/static_website_stage.py,sha256=X4fpKXkhb0zIbSHx3QyddBhVSLBryb1vf1Cg2fMTqog,755
|
|
100
|
-
cdk_factory/utilities/api_gateway_integration_utility.py,sha256=
|
|
100
|
+
cdk_factory/utilities/api_gateway_integration_utility.py,sha256=iQAdgUpQ1jQF_tBz7tvUlaKYERYrjGYNoBlEaNJJeuo,50657
|
|
101
101
|
cdk_factory/utilities/commandline_args.py,sha256=0FiNEJFbWVN8Ct7r0VHnJEx7rhUlaRKT7R7HMNJBSTI,2216
|
|
102
102
|
cdk_factory/utilities/configuration_loader.py,sha256=z0ZdGLNbTO4_yfluB9zUh_i_Poc9qj-7oRyjMRlNkN8,1522
|
|
103
103
|
cdk_factory/utilities/docker_utilities.py,sha256=9r8C-lXYpymqEfi3gTeWCQzHldvfjttPqn6p3j2khTE,8111
|
|
104
|
-
cdk_factory/utilities/environment_services.py,sha256=
|
|
104
|
+
cdk_factory/utilities/environment_services.py,sha256=cd2T0efJtFPMLa1Fm7MPL-sqUlhKXCB7_XHsR8sfymE,9696
|
|
105
105
|
cdk_factory/utilities/file_operations.py,sha256=HCZevKlmnHNB2wkIEPtdm-g2nJSKT3B9uipLk8Kx_Yk,8946
|
|
106
106
|
cdk_factory/utilities/git_utilities.py,sha256=7Xac8PaThc7Lmk5jtDBHaJOj-fWRT017cgZmgXkVizM,3155
|
|
107
107
|
cdk_factory/utilities/json_loading_utility.py,sha256=zdvqO2Bw5OpImJymfQRgqr6wfpZSCVtL20sYCYPAvMg,7617
|
|
@@ -109,7 +109,7 @@ cdk_factory/utilities/lambda_function_utilities.py,sha256=j3tBdv_gC2MdEwBINDwAqY
|
|
|
109
109
|
cdk_factory/utilities/os_execute.py,sha256=5Op0LY_8Y-pUm04y1k8MTpNrmQvcLmQHPQITEP7EuSU,1019
|
|
110
110
|
cdk_factory/utils/api_gateway_utilities.py,sha256=If7Xu5s_UxmuV-kL3JkXxPLBdSVUKoLtohm0IUFoiV8,4378
|
|
111
111
|
cdk_factory/workload/workload_factory.py,sha256=yBUDGIuB8-5p_mGcVFxsD2ZoZIziak3yh3LL3JvS0M4,5903
|
|
112
|
-
cdk_factory-0.7.
|
|
113
|
-
cdk_factory-0.7.
|
|
114
|
-
cdk_factory-0.7.
|
|
115
|
-
cdk_factory-0.7.
|
|
112
|
+
cdk_factory-0.7.21.dist-info/METADATA,sha256=acrJ7JO21mBhlQouEgaGU6TJtPyA7GhrWUsPDTE11t0,2451
|
|
113
|
+
cdk_factory-0.7.21.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
114
|
+
cdk_factory-0.7.21.dist-info/licenses/LICENSE,sha256=NOtdOeLwg2il_XBJdXUPFPX8JlV4dqTdDGAd2-khxT8,1066
|
|
115
|
+
cdk_factory-0.7.21.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|