feat: Add infrastructure and security improvements#169
Merged
AbelOsaretin merged 4 commits intoJun 30, 2026
Conversation
Implement request signing verification to ensure request integrity using HMAC-SHA256 signatures. Features include: - HMAC signature validation with configurable secret - Timestamp validation (5-minute window) to prevent replay attacks - Timing-safe comparison to prevent timing attacks - Middleware integration for admin endpoints - Comprehensive test coverage
Implement /ready endpoint for Kubernetes readiness checks. The probe verifies: - Database connection pool is operational - Satellite data sources are not in extended outage Returns 200 when ready, 503 when not ready with detailed check results.
…emetry Implement application performance monitoring integration with configurable provider support: - DataDog APM with dd-trace - New Relic monitoring - OpenTelemetry with auto-instrumentation - Environment-based configuration (APM_PROVIDER env var) - Graceful fallback when packages are not installed
Wire up the new middleware and endpoints: - Apply request signing middleware to admin routes - Add /ready endpoint alongside existing /health liveness endpoint - Initialize APM provider on server startup - Add environment variable documentation for all new features
|
@trustosaretin Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Closes #118, Closes #119, Closes #120, Closes #121
Type of Change
Summary
This PR implements four infrastructure and security improvements for the Heliobond backend:
Request Signing Verification (HMAC) - Adds middleware to verify request integrity using HMAC-SHA256 signatures with configurable secrets, timestamp validation (5-minute window), and timing-safe comparison to prevent replay and timing attacks.
Kubernetes Readiness Probe - Adds a
/readyendpoint that checks database connection pool status and satellite data source health, returning 200 when ready and 503 when not ready with detailed check results.Kubernetes Liveness Probe - The existing
/healthendpoint serves as the liveness probe, returning basic health status and uptime information.APM Integration - Implements application performance monitoring with configurable provider support for DataDog, New Relic, and OpenTelemetry, with graceful fallback when packages are not installed.
Motivation / Context
Closes #118, Closes #119, Closes #120, Closes #121
These improvements enhance the backend's production readiness by:
The implementation follows existing codebase patterns and includes comprehensive test coverage for the request signing middleware.