This is ByteBrigadeAI/assettrack, adapted from
github-samples/contoso-inventory.
Contoso is the upstream fictional organization; no customer data is used.
The MIT license and upstream authorship are preserved.
The default branch is demo-baseline; demo PRs target that branch.
Before a session, run Actions > Prepare demo assets. It idempotently
creates missing issues and reuses review PRs. New PRs require the organization
and repository Actions permission plus create_pull_requests; otherwise the
summary provides a comparison link without attempting a forbidden API call.
Select restore_demo to restore only
curated source fixtures and reopen issues after a completed demo. Select
scan_security or scan_quality for a fresh real CodeQL scan. The run summary
links the assets. A labeled issue contains only generated, nonfunctional secret
patterns; change secret_revision for a fresh alert after resolving a prior one.
No live credentials are created or committed.
See the demo hub walkthrough for verified issue, PR, security, and quality finding links.
The seeded defects in exercises.md now have actionable GitHub issues.
An open badge-color fix PR supports the review demo. GitHub Actions checks
the .NET, Java, Python, and web components. CodeQL scans all four language
families, including the intentional Java SQL injection examples.
Upstream course-branch regeneration workflows are removed.
There are no scheduled workflows, recurring Dependabot updates, or automatic
push/PR checks. CI and CodeQL are manual-only: Actions > select a workflow >
Run workflow > choose the demo branch. Default-setup scanning is disabled
to avoid duplicate or implicit recurring scans.
Use the supplied Codespaces/devcontainer environment for the full polyglot app. The root development scripts are POSIX commands and are not native PowerShell commands. Keep forwarded ports private, use synthetic data, and do not deploy the intentionally insecure services to a public endpoint.
The organization walkthrough lives in ByteBrigadeAI/demo-hub.
Important
Security Warning
This repository contains intentionally insecure code and an intentionally vulnerable application for educational and security-testing purposes only. Do not deploy it to production, expose it to the public internet, or run it on systems containing sensitive data. Use it only in an isolated, authorized environment, such as a sandbox or disposable virtual machine. You are responsible for preventing unauthorized access, misuse, or unintended impact on your systems and networks.
AssetTrack is Contoso Industries' internal application for tracking hardware assets (laptops, monitors, phones, badges, docking stations) and the employees they're assigned to. It is intentionally built as a polyglot microservices application so that course learners can practice agentic, Copilot-driven development across a realistic multi-language stack — including a couple of older Java services that still need modernization.
flowchart LR
browser([Browser]) --> web
subgraph frontend
web[web<br/>Astro SSR + React islands]
end
subgraph modern[Modern services]
assets[assets-svc<br/>.NET 10]
workforce[workforce-svc<br/>Java 21 / Spring Boot 3]
reporting[reporting-svc<br/>Python FastAPI]
notifications[notifications-svc<br/>Python FastAPI]
end
subgraph behind[Services a generation behind - due for a currency upgrade]
audit[audit-svc<br/>Java 17 / Spring Boot 3.5]
auth[auth-svc<br/>Java 17 / Spring Boot 3.5]
end
web --> assets
web --> workforce
web --> reporting
web --> auth
workforce -.audit hook<br/>not yet wired.-> audit
workforce --> notifications
assets -.JWKs.-> auth
workforce -.JWKs.-> auth
All services talk over REST/JSON. Each service owns its own SQLite database.
| Service | Stack | Port | Owns |
|---|---|---|---|
web |
Astro (SSR) + React islands + Bootstrap 5 | 4321 | UI, BFF composition |
assets-svc |
.NET 10 (ASP.NET Core minimal APIs) | 5001 | Asset CRUD + search |
workforce-svc |
Java 21 / Spring Boot 3 | 5002 | Employees + Assignments |
reporting-svc |
Python 3.12 / FastAPI | 5003 | Reports, CSV bulk import |
notifications-svc |
Python 3.12 / FastAPI | 5004 | Webhook receiver, email/Slack stub |
audit-svc |
Java 17 / Spring Boot 3.5 (a generation behind) | 5005 | Audit event log |
auth-svc |
Java 17 / Spring Boot 3.5 (a generation behind) | 5006 | JWT issuer, user lookup |
-
Open the repository in GitHub Codespaces, or in VS Code with the Dev Containers extension.
-
Wait for the devcontainer to finish provisioning. It installs:
- Node 22, .NET 10, Python 3.12, Maven, and Java 21 (the JDK for all three JVM services; the two currency-lagging services target Java 17 bytecode and build fine on JDK 21).
concurrentlyand editable Python installs for the FastAPI services (viapostCreateCommand).
-
From the workspace root:
npm run dev
This starts all seven services as plain processes (no Docker required). A startup banner prints the URL. Run
npm run dev:verboseif you need full log output instead of WARN-only. -
Open http://localhost:4321 — that's the UI. Backend services listen on 5001–5006 if you want to hit them directly with
curl.
You need Node 22, .NET 10, Python 3.12, Maven, and Java 21 on your machine. Then:
npm install
npm run install:all
npm run devA docker-compose.yml is still provided as an alternative to the dockerless workflow:
docker compose up --buildOpen http://localhost:4321.
Each service folder has its own README.md with native (non-Docker) run instructions and per-service scripts. See:
services/web/README.mdservices/assets-svc/README.mdservices/workforce-svc/README.mdservices/reporting-svc/README.mdservices/notifications-svc/README.mdservices/audit-svc/README.mdservices/auth-svc/README.md
auth-svc issues RS256 JWTs from POST /token. Other services validate tokens via the JWKs document at http://auth-svc:8080/.well-known/jwks.
For course exercises that aren't about auth, the frontend runs with DEV_TOKEN_MODE=true, which uses a pre-issued long-lived token so learners aren't blocked by login flows. To exercise the real flow, set it to false.
This is a teaching codebase. Several services have deliberate gaps that drive the course exercises (see exercises.md). For example:
- The two legacy Java services use raw JDBC string concatenation and have SQL injection.
reporting-svchas old-style Python helpers and an import endpoint that crashes on bad rows.assets-svcaccepts unvalidated input on create.- The dashboard renders some status badges with the wrong colors.
workforce-svcdoes not yet POST toaudit-svcon assignment changes.
See exercises.md for the full exercise list.
See exercises.md. Each exercise is atomic — completing one is not a prerequisite for another. Exercises cover all five stacks (Astro, .NET, modern Java, Python, legacy Java) so learners can pick what's most useful to them.
This project is licensed under the terms of the MIT license. See LICENSE for the full text.
Contributions are welcome! Please read CONTRIBUTING.md for how to set up the polyglot devcontainer, run the tests, and open a pull request.
This project has adopted a Code of Conduct. By participating, you are expected to uphold it.
Looking for help? See SUPPORT.md for how to file issues and get assistance.
To report a security vulnerability, please follow the process described in SECURITY.md. Please do not report security issues through public GitHub issues.