Quality-Gated Deployment Pipeline
Picture the Learning Group city Raspberry Pi in the HvA server room (6th floor WBH). A classmate merges a change into the city's shared back-end on GitLab main. Nobody logs in to the Pi and nobody types docker compose up by hand. The pipeline takes over. A linter checks the code. The automated tests run and produce a coverage report. A second, independent quality tool such as SonarQube then measures bugs, code smells, duplication, security hotspots, and test coverage against an agreed quality gate. The new version goes to the Pi only if all checks pass. A few minutes later anyone on the school network opens https://<city-pi>/, sees a padlock without clicking past a warning, and sees the new commit in the footer. If any check fails, nothing is deployed and the city keeps running the last good version. That is professional delivery in miniature: commit in, verified and secured release out.
In this challenge you design and build the city's CI/CD pipeline. It runs a linter, automated tests with coverage, and a quality gate, and it deploys the shared Compose stack to the city Pi if and only if all three pass. You also put the city's front door on HTTPS with a certificate you install and manage yourself. You work in the city's one shared GitLab project, not in a private repo. You work through research, advice, design, and realisation for your Sprint 3-4 Learning Goal. Follow the city Requirements. Evidence is individual, even though the pipeline serves the whole Learning Group.
Your Learning Goal title in Portflow
Use: Sprint 3-4 - Learning Goal - Quality-Gated Deployment Pipeline (adjust the sprint number if needed). See the Learning Goal page for the Portflow template.
Illustration
The animation shows two pipeline runs. Run 1: a clean commit passes the linter, the tests, and the quality gate, gets deployed, and the city Pi moves from v1 to v2, served over HTTPS. Run 2: the code passes the linter and the existing tests, but the new code has too little test coverage, so it fails the quality gate. The deploy job does not run and the Pi stays on v2.
cov
gate
Challenge
Your Learning Group needs a trustworthy route from GitLab main to the city Raspberry Pi. Every push to main triggers a GitLab CI/CD pipeline with at least four jobs: a lint job, a test job that runs the automated tests and produces a coverage report, a quality analysis job that imports that coverage and waits for a pass/fail quality gate (SonarQube or an equivalent tool), and a deploy job. The deploy job rolls out the city's shared Docker Compose stack to the Pi. It runs only when lint, tests, and the quality gate have all passed, and nobody can skip that rule by accident. The stack is served through a reverse proxy on port 443 with a certificate you install, and port 80 only redirects to HTTPS.
You will deliver a working pipeline and the documents that justify and explain it. Work in this order:
- Understand the problem. What does "good enough to deploy" mean for the city? Which linter, which tests, which coverage threshold, which quality tool, which gate conditions? How does a change reach the Pi, and what happens when a check or the deploy itself fails? How does a classmate's browser come to trust the city Pi's certificate? Write clear rules, for example: "Deploy happens only from
main, only afterlint,test, andqualitysucceed; a failed deploy leaves the previous version running." - Research. Compare realistic options for: where the runner lives (a GitLab Runner on the Pi, or a runner elsewhere that reaches the Pi over SSH); which test framework and coverage tool fit the city's languages, and which report format the quality tool can import; which quality tool (SonarQube Community Build in Docker, SonarQube Cloud, or an alternative such as Qodana, Codacy, or Semgrep) and where its server runs; and which certificate strategy fits a Pi with a school-network address (your own lab CA with mkcert or step-ca, the reverse proxy's internal CA, or Let's Encrypt with a DNS-01 challenge if you control a domain). Keep it short: enough to choose, not a survey of DevOps tooling. Cite sources for decisions.
- Advise. Recommend one pipeline and one certificate approach for the city: stages, test and coverage strategy, gate conditions (including the coverage threshold), runner placement, secret handling, rollout and rollback, certificate issuing/trust/renewal. State what you are not building in this period. Hosting on the city Raspberry Pi is already decided.
- Design. Specify the pipeline (stages, jobs,
rules/needs, branches, artefacts), the test strategy and coverage reporting, the quality gate thresholds, the runner and its access rights, the CI/CD variables and secrets, the deploy procedure and health check, and the TLS setup (proxy, certificate chain, SANs, file locations, renewal). Write it so someone else could rebuild the pipeline from scratch. - Realise. Build in small steps: lint job first, then the test job with coverage, then the quality job with a waiting gate, then a deploy job, then HTTPS. Commit
.gitlab-ci.yml, tests, and proxy configuration to the city GitLab project onmain. Demonstrate that a clean commit is deployed and that a lint failure, a failing test, and a quality-gate failure are not.
Minimum scope (Sprint 3–4)
Your contribution must include:
- A
.gitlab-ci.ymlin the city's shared GitLab project (main) that deploys the city's shared Compose stack. If the shared stack is not ready yet, deploy a minimal placeholder service from that same project. Do not wait for classmates, and do not build a private demo repo instead. - A lint job that uses a linter that fits the city's code (for example ESLint, Ruff, or Checkstyle), uses a configuration file committed to the repo, and fails the job on errors.
- A test job that:
- runs automated tests on the city code: unit tests plus at least one API-level test (for example an endpoint called with a test client). Hardware and the MQTT broker are replaced by stubs or mocks, so the tests run in CI without the city.
- fails the job when any test fails
- produces a machine-readable coverage report (for example lcov, Cobertura, or JaCoCo XML) and shows the coverage percentage in GitLab (
coverage:regex and/orartifacts:reports:coverage_report) - passes that report on as an artefact so the quality tool can import it
- A quality analysis job with a tool that does more than the linter: at least bugs/reliability, maintainability (code smells or duplication), security findings, and test coverage, judged by a quality gate with explicit conditions. The gate includes a coverage condition on new code. Agree the threshold (for example 70–80 %) with the Learning Group and justify it in your advice. The job waits for the gate result and fails when the gate fails (for SonarQube, for example with
sonar.qualitygate.wait=true). A dashboard that only shows results without failing the pipeline does not count. - A deploy job that:
- runs only on
main - runs only after lint, test, and quality all succeed (stages and/or
needs). There is noallow_failure: true,when: always, or manual button that lets it run after a failed check. - rolls out the stack on the city Pi (for example
docker compose pull && docker compose up -d, or a build on the Pi) - ends with a health check against the HTTPS endpoint and fails the job if the new version does not respond
- runs only on
- Merge requests run lint, tests, and quality but never deploy.
- A visible version marker: the running app shows or exposes the deployed commit (for example
CI_COMMIT_SHORT_SHAin the footer or on/version), so you can prove which commit is live. - Secrets (SSH key or runner token, analysis token, certificate private key) live in masked and/or protected GitLab CI/CD variables or on the Pi. They are never in Git and never baked into an image.
- HTTPS on port 443 through a reverse proxy in the Compose stack (for example Caddy, nginx, or Traefik):
- a certificate whose Subject Alternative Name matches how the Pi is reached (IP address and/or hostname)
- the certificate is installed in the proxy from a mounted volume or secret, not committed to the repo
- port 80 redirects to 443; the other services are not published to the network
- at least one demo device trusts the issuing CA, so the browser shows a padlock without "proceed anyway"
- the expiry date and a renewal procedure are documented
- Decisions, gate conditions, and the "how to deploy / how to trust the certificate" how-to in English Markdown (city MkDocs / repo), with references.
Recommended scope
If you have time, add one or more of:
- Smoke or integration tests against the running Compose stack in CI (for example start the stack in the job and call the API through the proxy).
- Coverage visualisation in merge requests and a coverage trend over time, so reviewers see which changed lines are untested.
- A container image scan (for example Trivy) as an extra gate before deploy.
- Automatic rollback: images tagged with the commit SHA; when the health check fails, the job restarts the previous tag.
resource_groupon the deploy job so two pipelines never deploy to the Pi at the same time.- Quality feedback in merge requests (gate status or annotations visible in the MR), plus a protected
mainthat only accepts merges when the pipeline passes. - Let's Encrypt with DNS-01 if the Learning Group has a domain, so trust no longer depends on installing a lab CA.
- Automated certificate renewal (for example the proxy's built-in ACME client, or a scheduled pipeline) with an alert before expiry.
Out of scope for this challenge
These are not part of this challenge:
- Kubernetes, Argo CD, Helm, or cloud hosting as the deploy target.
- Exposing the city Pi to the public internet (port forwarding, tunnels) just to get a certificate.
- Blue/green or canary releases across several machines.
- A secrets-management platform (Vault and similar). GitLab CI/CD variables are enough.
- Writing your own linter rules or SonarQube plugins.
- Pushing other students' code to a perfect score. The gate guards new code at agreed thresholds; fixing all existing debt is not the task.
- Chasing 100 % coverage, or writing tests for all existing code. Meaningful tests for what you touch, plus the agreed threshold on new code, are enough.
- End-to-end tests against real city hardware in the pipeline. Stubs and mocks are the CI path.
- Mutual TLS between internal services, or TLS on MQTT/database traffic inside the Compose network.
- Rewriting the city's application features. You deliver the pipeline and the secure front door, not new dashboard functions.
Demo and safety context
Treat the pipeline as lab infrastructure that the whole Learning Group depends on:
- Default to "no deploy". Any red check, any failing test, a missing coverage report, any missing token, or an unreachable quality server means the deploy job does not run. This is the CI/CD version of "default to red". The Pi keeps serving the last good version.
- A failed deploy must not leave the city broken. The health check makes the job red. Document how to get back to the previous version (and automate it if you can).
- No hand deploys. After the pipeline works, the documented way to change the Pi is through
main. If an emergency procedure exists, document who may use it and why. - Least privilege. The runner or deploy user can run Compose for the city stack and nothing more. Do not use a personal account or
rootSSH keys. Revoke tokens you no longer use. - Guard the private key. Never commit it, paste it in chat, or print it in job logs. Rotate it if that happens.
- Careful with HSTS. A long
max-agewith a lab certificate can lock classmates' browsers out of the Pi. Use a short value, or leave it out, while you experiment. - Clear demo script. Anyone in your Learning Group can show four runs: "clean commit → deployed, new SHA visible over HTTPS", "lint error → deploy skipped, old SHA still live", "failing test → deploy skipped, old SHA still live", and "quality-gate failure (for example new code without tests, so coverage on new code is below the threshold) → deploy skipped, old SHA still live". Add "http:// → redirects to https://, padlock without warning".
- Agree before you gate. The pipeline will block your classmates' merges. Agree the gate conditions, including the coverage threshold, with the Learning Group before you switch them on.
Starting points
Use these concrete first steps early in Sprint 3:
- Read the city Requirements and agree your challenge with the Learning Group (no duplicate challenges). If someone works on the City Sensor Dashboard, agree who owns
.gitlab-ci.ymland the reverse proxy. - Write the deploy rule in one sentence. For example: "
main+ lint ✓ + tests ✓ + quality gate ✓ (including coverage) ⇒ deploy; anything else ⇒ no deploy." - Inventory the city Pi. Check the OS and architecture (
uname -m), free memory, Docker + Compose, the school-network IP, and which GitLab instance and runners the city project can use. Confirm access with your coach. - Hello pipeline. Add a
.gitlab-ci.ymlwith onelintjob and get it green onmain. Then break it on purpose and watch it turn red. See CI/CD basics. - Tests and coverage locally. Run the city's tests (or write the first ones) with a coverage report on your laptop. Then add a
testjob and get it green onmain, with the coverage percentage visible in GitLab. See Testing fundamentals. - Try the quality tool locally. Run one analysis by hand (for example SonarQube Community Build in Docker on your laptop), import your coverage report, and read the default quality gate. Note memory needs and ARM64 support before you decide where it runs.
- Hello HTTPS. Serve a static page through the reverse proxy on the Pi with a test certificate. Install the CA on your own laptop and get the padlock.
- Draft your research question. Example: Which runner placement, test and coverage setup, quality tool, and certificate strategy let the city deploy to a school-network Raspberry Pi only after lint, tests, and a quality gate pass, while keeping secrets out of Git?
- Create your Learning Goal in Portflow. Link the product deliverables you plan to submit. Follow Learning Goal.
Suggested sprint timeline
The Learning Group does not use Scrum, but you still follow the sprint rhythm of the Group Project: two sprints for this challenge (Sprint 3-4).
In the first sprint you focus on research and advice, with a hello pipeline and hello HTTPS as experiments. In the second sprint you focus on design and realisation of the complete gated pipeline and the certificate setup on the city Pi.
| Sprint | Focus | Outcome |
|---|---|---|
| 3 | Research & advise | Research report; advisory report; runner, test/coverage, quality tool, and certificate choice; draft gate conditions and coverage threshold agreed with the Learning Group; green lint and test jobs on main with coverage visible; hello HTTPS experiment |
| 4 | Design & realisation | Design (pipeline, tests, gate, secrets, TLS); full lint → test → quality → deploy pipeline on city GitLab main; HTTPS with trusted certificate on the Pi; four-run demo; Portflow evidence linked; reflection |
Tools, frameworks, and hardware
| Area | Suggestions |
|---|---|
| Host | City Raspberry Pi (server room, 6th floor WBH); school-network IP; published ports 80 (redirect only) and 443 |
| CI/CD | City GitLab project, .gitlab-ci.yml; GitLab Runner on the Pi (tagged) or a runner that deploys over SSH; rules, needs, protected/masked variables, environment, resource_group |
| Linter | ESLint, Ruff/Flake8, Checkstyle, hadolint for Dockerfiles: match the city's languages and code conventions |
| Tests & coverage | Vitest or Jest (coverage via v8/istanbul, lcov), pytest + pytest-cov (Cobertura/XML), JUnit + JaCoCo: match the city's languages; test clients and mocks for API and MQTT |
| Quality tool | SonarQube Community Build (self-hosted Docker) or SonarQube Cloud; alternatives such as Qodana, Codacy, Semgrep: justify in research, including where the server runs and the Pi's memory/ARM limits |
| Reverse proxy | Caddy, nginx, or Traefik in the Compose stack: TLS termination, 80 → 443 redirect, routes to front-end and API |
| Certificates | mkcert or step-ca (lab CA), the proxy's internal CA, or Let's Encrypt via DNS-01; openssl x509 -text / openssl s_client to check SANs and the chain |
| Documentation | English Markdown on city MkDocs + repo; cite sources for decisions |
Profile knowledge worth revisiting:
- CI/CD basics
- CI/CD complete pipeline design
- CI/CD & containerization fundamentals
- Containerization
- Testing fundamentals
- Advanced testing strategy & test environment
- Advanced testing automation, reporting & quality gates
- Technical debt management & code quality governance
- Version control with Git
- Web security fundamentals
- Security threat basics
- Secure coding practices
Products
Your challenge evidence is a set of products: studio deliverables tied to learning outcomes. Submit them in Portflow and link them from your Learning Goal.
Analyse & Advise
| Product | What you deliver | Template |
|---|---|---|
| Research | Short analysis of runner placement, test + coverage setup, quality tool + gate, and certificate strategy for deploying to the school-network city Pi; comparison with criteria (Pi resources, network reachability, security, effort, cost); recommendation for design | Research product |
| Advice | Decision document: pipeline stages and deploy rule, test strategy and coverage threshold, gate conditions, runner and secret handling, rollout/rollback, certificate issuing, trust and renewal, and implementation order. Pi hosting in the server room is given. | Advisory report |
Suggested titles for Portflow
- Research: Runner, quality gate, and certificate options for deploying to the city Pi
- Advice: Lint, test, and quality-gated GitLab pipeline with HTTPS for the city stack
The advice report should build on the research report. Do not repeat the full comparison tables. If the research grows past a runner, test/coverage, quality tool, and certificate choice, it is too big. Cut it so you still deploy.
Design & Realise
Deliver two products for Design & Realise. The Design Document sets the requirements. The Realisation Document proves each requirement is built. Copy those templates. The lists below are what this challenge adds inside those two documents. Submit both in Portflow and link them from your Learning Goal.
| Product | What you deliver | Template |
|---|---|---|
| Design Document | In the Design Document, cover: context, city Requirements link-in, pipeline diagram, deploy rule, lint configuration, test strategy and coverage reporting, quality gate conditions (including coverage) with reasons, runner placement and rights, CI/CD variables and secrets, deploy and health-check steps, rollback, TLS architecture (proxy, certificate chain, SANs, trust, renewal), port map, and test plan | Design Document |
| Realisation Document | Prove each requirement with a working pipeline in the city GitLab project on main, a deployed stack on the city Raspberry Pi reachable on https://<pi-ip-or-host>/, and validation evidence for a successful deploy, a lint-blocked deploy, a test-blocked deploy, a gate-blocked deploy, the coverage report, the HTTP→HTTPS redirect, and a trusted certificate |
Realisation Document |
Suggested titles for Portflow
- Design: Quality-Gated Deployment Pipeline — stages, tests, gate, secrets, and TLS
- Realisation: Quality-Gated Deployment Pipeline — city Pi deploy and validation
Design Document — what to specify
Put the items below in your Design Document as requirements, or as a diagram a requirement points to. A peer should be able to rebuild the pipeline and the HTTPS setup without guessing:
- Requirements. Lint, tests with coverage, and quality gate on every push and MR; deploy only from
mainand only after all three pass; version marker; HTTPS with a trusted certificate; 80 → 443; secrets outside Git. - Pipeline diagram. Stages, jobs,
needs/rules, which branches run what, where each job runs (which runner, which tag), and which artefacts or reports pass between jobs. - Tests & coverage. What is tested (units, API endpoints), what is stubbed or mocked (MQTT, hubs, database), the test framework and coverage tool, the report format and path, and how the report reaches the quality tool.
- Quality gate. The tool, the server location, the conditions (for example "no new bugs", "no new vulnerabilities", "coverage on new code ≥ x %", "duplication on new code < y %", "security hotspots reviewed"), and why these values fit the city.
- Deploy procedure. Commands, the deploy user and its rights, how images are built or pulled, how the version marker is injected, the health check, and rollback.
- Secrets. Each variable: purpose, scope (protected/masked), where it is used, and how to rotate it.
- TLS. Proxy configuration, certificate issuer, SANs, file locations on the Pi, how a device trusts the CA, expiry, and the renewal steps.
- Network. City Pi IP/hostname, published ports (80, 443 only), and which services stay internal.
- Test plan. For example: "clean commit → deployed, SHA matches", "lint error → deploy job not created/skipped", "failing test → test job red, deploy skipped", "new code without tests → coverage condition fails the gate, deploy skipped", "coverage report missing → quality job fails", "MR → no deploy", "health check fails → job red, previous version restorable", "
http://→ 301 tohttps://", "openssl s_clientshows the expected SAN and chain".
Realisation Document — what to prove
For each requirement, the Realisation Document needs proof it was engineered. For this challenge, include:
.gitlab-ci.yml, lint configuration, the tests, test/coverage configuration, quality-tool configuration (for examplesonar-project.properties), and proxy configuration on city GitLabmain.- Pipeline screenshots or links for the four runs: deployed / lint-blocked / test-blocked / gate-blocked, each with the SHA that was live afterwards.
- The coverage percentage in GitLab and the same coverage imported in the quality tool.
- A screenshot of the quality gate result and its conditions, including the coverage condition.
- Proof of HTTPS: the padlock without a warning on a classmate's device, the certificate details (SAN, issuer, expiry), and the redirect from
http://. - A list of CI/CD variables (names and scope only, never values) showing the secrets are not in the repo.
- README: how the pipeline works, how to run the tests and coverage locally, how to add a service so it is linted, tested, analysed, and deployed, how to trust the city CA, and how to renew the certificate.
- Honest known limitations (for example "quality server runs on a laptop, so the pipeline is blocked when it is off", "certificate trust requires installing the lab CA", "rollback is manual").
Quality indicators
When assessing this challenge as a whole, the following indicators are used. Use them as a self-check before you submit.
Problem fit
- The deploy rule ("deploy if and only if lint, tests, and the quality gate pass on
main") and the fail behaviour are described in plain language. - Scope is explicit: this challenge delivers the city's shared pipeline and secure front door on the city Pi, not a private demo repo and not a DevOps platform.
- The work respects the city Requirements (shared GitLab project on
main, Docker on the city Pi, documented decisions with references, no waiting on classmates).
Analyse & Advise products
- Research and advice reports meet the research and advisory report quality indicators and are kept short enough that deploy still happens.
- The advice report references the research report and states one clear recommendation for runner placement, test + coverage setup, quality tool + gate, and certificate strategy.
- Choices are supported by current documentation (GitLab CI/CD, the quality tool's requirements, the proxy's TLS docs), not only opinion. Pi hosting is not re-litigated.
Design
- The Design Document meets that product's quality indicators: a short plan, testable requirements with sources, and at least one requirement that comes from the end user (the Learning Group as users of the pipeline, or the visitor of the dashboard).
- The test strategy states what is tested, what is stubbed, and why the coverage threshold fits the city.
- The pipeline diagram, deploy rule, and gate conditions match the realised
.gitlab-ci.ymland quality-tool settings (or differences are documented with a reason). - Secrets, runner rights, and the certificate chain are designed explicitly, including rotation and renewal.
- Fail-safe behaviour is designed: no deploy on any failed or missing check, a health check after deploy, and a route back to the last good version.
Realisation
- The Realisation Document meets that product's quality indicators: every MUST requirement has proof it was built, including feedback and the end-user requirement.
- A clean commit on
mainis linted, analysed, and deployed automatically to the city Pi; the live version marker shows the new SHA. - A lint failure, a failing test, and a quality-gate failure each demonstrably prevent the deploy; the Pi keeps serving the previous SHA.
- The test job runs unit and API-level tests with real assertions, fails the pipeline on a red test, and publishes a coverage report that is visible in GitLab.
- The coverage report is imported by the quality tool, and the coverage condition on new code demonstrably blocks a deploy.
- The quality job fails the pipeline on a failed gate. The tool checks more than the linter (reliability, maintainability, security, coverage).
- Merge requests run the checks but never deploy; nothing in the pipeline lets the deploy job run after a failed check.
- The stack is reachable on 443 from another school-network device with a trusted certificate whose SAN matches the address; 80 redirects to HTTPS; no other ports are published.
- No secrets or private keys in the repository, images, or job logs.
- Repository README explains the pipeline, how to trust the certificate, how to renew it, and how to roll back.
Professional practice
- Learning Goal in Portflow uses the correct naming format and links to all product evidence.
- Gate conditions and the coverage threshold were agreed with the Learning Group before they were enforced, and classmates know how to read a failed gate.
- End-of-sprint reflection connects results to your learning question and to full-stack practice (CI/CD, automated testing, code quality governance, secrets, TLS).
- Documentation is in English Markdown and usable by other city students.
- You did not block on classmates: a placeholder service, local analysis, or a test certificate kept you moving.
Focus points
Watch out for these common issues while you work:
- A gate that does not block. A quality tool that only shows a dashboard, a job with
allow_failure: true, or a scanner that does not wait for the gate result is not a quality gate. Prove it by failing it on purpose. - "Linter" twice. ESLint with extra rules is still a linter. The second tool must judge the code as a whole (bugs, smells, duplication, security) against a gate.
- Forgetting the negative tests. "It deploys" is half the proof. The other half is that lint, test, and gate failures each stop the deploy.
- Coverage theatre. Tests that call code without asserting anything raise the percentage but prove nothing. Coaches read your tests, not only the number.
- Coverage that never arrives. If the report path or format does not match the quality tool's settings, the tool silently shows 0 % or "no coverage". Check that the number in the quality tool matches the one in GitLab.
- Tests that need the city. Tests that only pass with a live broker, a real hub, or the Pi itself will break the pipeline. Stub or mock them.
- The Pi runs out of memory. A self-hosted SonarQube server is heavy. Check its requirements before you put it next to the city stack on the Pi.
- Shared runners cannot reach the Pi. The Pi has a school-network address. Decide early whether the runner lives on the Pi or how a remote runner reaches it.
- Secrets in the repo.
.envfiles, private keys, and tokens do not belong in Git. If one slipped in, rotate it; deleting the file is not enough. - "Proceed anyway" HTTPS. A self-signed certificate that everyone clicks past is not the goal. Install a CA on the demo devices, or use a publicly trusted certificate.
- Wrong SAN. A certificate for
localhostor for a hostname nobody uses does not matchhttps://<pi-ip>/. Check withopensslbefore the demo. - Silent expiry. Lab CAs and ACME certificates expire. Write the date and the renewal steps down.
- Gating your classmates by surprise. Switching on strict conditions on day one blocks the whole city. Start with conditions on new code and agree them first.
- Design–code drift. When you change stages, gate conditions, ports, or the certificate setup, update the Design Document first, then the proof in the Realisation Document.
Key points
- Core task: a GitLab CI/CD pipeline in the city's shared project: lint → tests with coverage → quality gate → deploy to the city Pi, where the deploy runs if and only if all checks pass on
main. - Tests are required: a failing test stops the deploy, and the coverage report feeds a coverage condition in the quality gate.
- The second quality tool (for example SonarQube) must fail the pipeline through a quality gate; a dashboard alone does not count.
- The city stack is served over HTTPS on 443 with a certificate you install, trusted by the demo devices; port 80 redirects.
- Secrets stay out of Git; a failed check or failed deploy leaves the last good version running.
- Deliver four products: research, advice, a design document, and a realisation document.
- Work research → advice → design → realise; Sprint 3 emphasises research & advice; Sprint 4 emphasises design & realisation.
- Kubernetes, cloud hosting, public exposure of the Pi, and secrets platforms are out of scope for this challenge.
- Link everything to your Learning Goal in Portflow and reflect at the end of Sprint 3-4.