Network and TLS responsibilities
Trace TLS by connection
TLS ends at the component holding the server key for that connection. A client HTTPS connection and the connection from a managed load balancer to Nginx are independent. If the second leg is HTTP, it is not encrypted; use it only in an explicitly accepted isolated design. When policy requires re-encryption, choose a supported backend HTTPS configuration and check each product’s certificate verification behavior. Azure Application Gateway supports backend TLS validation; AWS ALB HTTPS target groups do not validate target certificates, so they do not provide the same identity assurance. Google Cloud backend authentication depends on the selected mode and configuration. Do not equate encryption with verified peer identity.
Client -- HTTPS --> edge -- HTTP --> Nginx -- HTTP --> local appAlternative: edge -- HTTPS --> Nginx; record CA, hostname and validation policyA redirect must use the externally intended HTTPS scheme, not merely the inner HTTP scheme.Forwarded identity is a trust contract
An incoming X-Forwarded-For header can include user-supplied values. ALB supports append, preserve and remove modes; Google global external Application Load Balancer appends a client and load-balancer address. Azure Application Gateway adds forwarding metadata. These formats are not interchangeable. Restrict direct access first, document the exact chain, configure the appropriate trusted proxy ranges and test hostile or malformed header input only as inert offline policy examples. Do not simply copy the first address or trust every network. The following loopback fixture intentionally ignores client-supplied forwarding data; it models a new boundary, not a cloud provider adapter.
location /api/ { proxy_set_header Host catalog.example.test; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header X-Forwarded-Proto $scheme; proxy_pass http://127.0.0.1:18531/;}Health checks need explicit semantics
Use a small unauthenticated health endpoint reachable only from approved network paths. A static /healthz response checks Nginx availability; it does not prove the application or database is ready. If application readiness controls traffic admission, use a separate dependency-aware endpoint with bounded latency. Probe host, port, protocol and expected status must match the configuration. Some probes use an unexpected Host value, so verify the actual provider rules. Never place secrets in the response. The lab accepts one hostname for app traffic and a separate default server for a minimal probe.
server { listen 127.0.0.1:18530 default_server; server_name _; location = /healthz { return 200 "edge alive\n"; } location / { return 404; }}Verify each path before cutover
Build a matrix: client TLS and DNS, health probe, intended API path, denied direct origin access, forwarding identity, one target unavailable, logging and rollback. Test zone redundancy with approved controlled failure only; multiple instances in one zone do not address a zone outage. For production design choose at least two failure domains where supported and check capacity after losing one. Retain the old route until the new path meets its reliability gate. A green health check is one signal, not the release gate.
Expected: valid client TLS, healthy target, intended API responseDenied: direct origin traffic from an untrusted sourceFailover: healthy target remains within capacityRollback: restore previous reviewed route and verify responsePractice and next steps
Practice: Trace the three links in the fixture, explain what the static probe proves and why incoming forwarding headers cannot be trusted directly. Describe the evidence needed for a provider-specific TLS and identity policy. Use the staged manual exercise; no live deployment is required.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Network and TLS responsibilities
Assess Cloud delivery design and operational reasoning.
Where does client TLS end?
Does AWS ALB validate HTTPS target certificates?
What should precede trusting a forwarded header?
What does a static health endpoint prove?
What is a release gate?