Ds allow caa failure flag and set http timeout #64
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces improvements to the configuration and environment handling for the AWS Lambda functions, updates dependencies, and enhances integration test coverage and diagnostics. The main changes include adding support for new timeout configuration options, refactoring environment variable injection to reduce duplication, and updating dependencies for better compatibility and features. The integration tests have also been expanded and improved for better reliability and debugging.
Configuration and Environment Handling:
http-client-timeout-seconds,dns-timeout-seconds,dns-resolution-lifetime-seconds) inconfig.example.yaml, and ensured these are injected into the Lambda environment via Terraform templates (aws-perspective.tf.template). [1] [2] [3]configure.pyby introducing theset_common_env_configurationhelper, reducing code duplication and making it easier to add new environment variables. [1] [2] [3]Lambda Function Initialization:
MpicDcvCheckerLambdaHandlerandMpicCaaCheckerLambdaHandlerto read new timeout environment variables and pass them to their respective checker classes, improving configurability and robustness. [1] [2]Dependency and Version Updates:
pyproject.toml(aiohttp,open-mpic-core) and bumped the API spec version and package version for compatibility and feature improvements. [1] [2] [3]Integration Test Improvements:
test_deployed_mpic_api.pyto print responses when assertions fail, aiding debugging. Added a new test to check behavior when CAA lookup failures are allowed, and improved assertion placement for clarity. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]Minor Documentation and Configuration Changes:
README.mdto clarify the order of deployment commands for DNSSEC and non-DNSSEC options.us-east-2.