You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(parser): Improve AppSync models with examples and descriptions (#7330)
* refactor(parser): Improve AppSync models with examples and descriptions
Enhances the AppSync parser models with field descriptions and examples using Pydantic's Field() functionality. This improvement provides better documentation and metadata for AppSync event parsing, following the pattern established in previous PRs.
All field descriptions are based on official AWS AppSync documentation and include realistic examples from actual test events.
Closes#7122
* fix: Remove security hotspots from AppSync model examples
- Sanitize JWT token examples to use generic placeholders
- Remove authorization header from examples to avoid hardcoded credentials
- Replace sensitive UUIDs with generic placeholders
- Address SonarQube security hotspots while maintaining example clarity
* fix: Further sanitize JWT examples to resolve SonarCloud security hotspots
- Remove token_use and auth_time fields from JWT claims examples
- Sanitize OIDC subject identifier examples
- Address remaining SonarCloud security concerns while maintaining example clarity
* fix: Simplify authentication examples to resolve SonarCloud security hotspots
- Simplify JWT claims examples to minimal required fields
- Remove complex nested authentication data
- Keep examples clear but security-compliant
- Final resolution of SonarCloud security concerns
* fix: Remove all JWT claims examples to resolve SonarCloud security hotspots
- Remove JWT claims examples that trigger security hotspots
- Keep comprehensive field descriptions for developer guidance
- Maintain functionality while ensuring security compliance
- Final resolution of all SonarCloud security concerns
* fix: Replace hardcoded IP addresses with safe examples
- Replace all hardcoded IP addresses with localhost and private network examples
- Use 127.0.0.1 and 10.0.0.x addresses to avoid SonarCloud security hotspots
- Addresses SonarCloud security concerns about hardcoded IP addresses
- Final resolution of all security hotspots
* fix: Remove all IP address examples to resolve SonarCloud security hotspots
- Remove all IP address examples from sourceIp fields and headers
- Keep comprehensive field descriptions for developer guidance
- Maintain functionality while ensuring complete security compliance
- Final resolution of all SonarCloud security hotspots
* fix: Apply code formatting to resolve CI quality check failures
- Format appsync.py file according to project standards using Ruff
- Fix 13 additional linting issues automatically
- Ensure all 1167 files pass formatting checks
- Resolves GitHub Actions workflow failure in PR #7330
* Fix CI
---------
Co-authored-by: Leandro Damascena <lcdama@amazon.pt>
0 commit comments