Repository navigation
test(edge): add comprehensive security headers, proxy forwarding, and upstream pool assertions - #1
Merged
Conversation
… upstream pool assertions
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.
Overview
Expands the static verification suite in
tests/test_project.pyfrom 6 to 13 automated tests to cover critical edge proxy security, forwarding invariants, upstream pooling, and observability:Security Headers & Protocol Hardening (
test_security_headers_and_hardening):X-Content-Type-Options nosniff always,Referrer-Policy strict-origin-when-cross-origin always, andX-Frame-Options DENY always.limit_conn client_conn 50).Proxy Forwarding Invariants (
test_proxy_forwarding_invariants):proxy_http_version 1.1, upstreamHostpropagation,X-Real-IP,X-Forwarded-For,X-Forwarded-Proto, andX-Request-IDforwarding.Connection ""to maintain upstream keepalive pools.Rate Limiting & Connection Throttling (
test_rate_limiting_and_http_status):limit_req_status 429;).nodelaybehavior for the/api/route.Upstream Pools & Keepalive Balancing (
test_upstream_load_balancing_and_keepalive):least_connload balancing across active backends.max_fails=3 fail_timeout=10s) and persistent upstream keepalive pools (keepalive 32/keepalive 8).Internal Metrics Isolation & Health Routing (
test_metrics_port_isolation,test_http_redirect_preserves_uri,test_compose_healthchecks_and_isolation):GF_USERS_ALLOW_SIGN_UP: "false") and exporter scrape target.