Final multi-service Linux capstone
Quick answer
This capstone combines Linux hosting, networking, least privilege, observability and recovery in a small report service. The executable local exercise uses two loopback HTTP services and a private SQLite database. A separate disposable-VM design extends it to operating-system controls that cannot be validated in this container.
Judge the capstone by user-visible behavior and recovery, not by the number of commands run. Record a successful request, an expected rejection, a controlled failure and a verified recovery. Explain which checks are local simulations and which require the target VM.
Prepare the practice environment
Run python3 lab-fixtures/enterprise/setup.py from the extracted root as an ordinary user. Enter the printed private path and check pwd. Use fresh fixtures, Bash with set -e -o pipefail, LC_ALL=C and umask 077. The helper reads fictional records or uses private loopback services and SQLite. No root, external network or real fleet changes are required. Optional native checks require an authorized VM.
Prerequisites
Review: Operational change review and audit evidence.
How it works
Design the service boundary: a frontend calls a private backend, which reads a report row from a database. Define readiness as a successful end-to-end response with expected data, not merely an open port. The local helper binds both services to 127.0.0.1 with OS-assigned ports, disables HTTP proxy use, runs as an ordinary user and creates temporary database files. It backs up with SQLite's backup API, simulates a failed release by changing a readiness flag, restores into a fresh database and verifies the response through the frontend. The backup has mode 0600; this is a basic file permission check, not separate service-user isolation. Three HTTP observations provide a tiny evidence set, not a statistically meaningful SLO or actual disaster recovery time. Both servers are shut down and temporary files discarded. For the VM extension, prepare an authorized disposable VM and console, use distinct service users and private backend/database boundaries, validate reverse proxy and service units, set authorized network rules with a rollback plan, use test TLS credentials, document a monitoring window, backup and restore a data copy, then simulate a controlled application failure. Verify denied access, readiness, correct response, data and recovery before documenting results. Do not open public ports or deploy to a real system for this exercise. Use earlier hosting, security, backup and troubleshooting lessons as the implementation guide.
Try the examples
Tests database integrity and business data before service integration.
Expected stdout:
database integrity and expected row verifiedActual HTTP requests traverse two local services. Failure is injected via a flag; the fresh restored database is checked and then served. This is not a failover cluster.
Expected stdout:
HTTP 200 reportHTTP 503 not readyHTTP 200 report3 observations; 1 failed; restored data verifiedpython3 model.py negativeThe negative gate reinforces that a missing or failed health result cannot justify promotion.
Expected stdout:
empty and failing cohorts rejectedCommon mistakes
Do not claim this local exercise proves TLS, service-user isolation, firewall enforcement, real high availability or production readiness. Do not reuse a real database or expose the fixture publicly.
Practice
Run the local capstone. Draw the frontend/backend/data boundary and capture all three HTTP results. Explain the simulated fault, restore evidence and what remains unverified. Submit a VM design with a service-user access matrix, network/TLS plan, readiness checks, backup retention, recovery targets and rollback steps. Score yourself against capstone-guide.md in the lab fixture directory of the extracted package; keep local evidence distinct from VM evidence.
Related references
Study: systemctl, ss, curl. These are reference names, not deployed links.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Final multi-service Linux capstone — Knowledge Check
Apply enterprise operations concepts to concrete local examples.
What establishes readiness in this exercise?
What is the simulated failure?
Why restore to a fresh database?
Which gate remains unverified locally?