-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: adjustments in the domain and firewall processing transform config #101
Conversation
Pull Request AnalysisDate: 2025-02-05 Key Implementations1. Schema Definitions
2. Processing Strategies
3. Unit Tests
Good Practices
Possible Problems
Suggestions for Improvement
ConclusionThis pull request introduces a robust implementation for schema validation and configuration processing in Azion's platform. It adheres to good practices like strict validation, modular design, and comprehensive testing. While the implementation is solid, addressing the potential problems and suggestions for improvement will further enhance its maintainability, performance, and user experience.
Powered by
|
[skip ci] ### [1.14.1-stage.1](v1.14.0...v1.14.1-stage.1) (2025-02-06) ### Bug Fixes * adjustments in the domain and firewall processing transform config (#101) ([a455143](a455143))
🎉 This PR is included in version 1.14.1-stage.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
[skip ci] ### [1.14.1](v1.14.0...v1.14.1) (2025-02-06) ### Bug Fixes * adjustments in the domain and firewall processing transform config (#101) ([a455143](a455143))
🎉 This PR is included in version 1.14.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This pull request includes several changes aimed at improving the configuration processing and testing for firewall and domain configurations. The most important changes include updates to the schema manifest, adjustments in the domain and firewall processing strategies, and modifications to the test cases.
Schema Manifest Updates:
packages/config/src/configProcessor/helpers/schemaManifest.ts
: Simplified thefirewall
schema by spreadingschemaFirewallManifest
and updated error messages for additional properties. [1] [2]Domain Processing Strategy Adjustments:
packages/config/src/configProcessor/processStrategy/implementations/domainProcessConfigStrategy.ts
: Modified themtls
field to conditionally includemtls_verification
properties only if they are defined.Firewall Processing Strategy Adjustments:
packages/config/src/configProcessor/processStrategy/implementations/secure/firewallProcessConfigStrategy.ts
: Enhanced thetransformToConfig
method to return an empty object if thefirewall
payload is empty or undefined.Test Case Modifications:
packages/config/src/configProcessor/processStrategy/implementations/secure/firewallProcessConfigStrategy.test.ts
: Updated test cases to useexpect.objectContaining({})
and added type annotations to avoid TypeScript linting errors. [1] [2] [3] [4]