Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
163 commits
Select commit Hold shift + click to select a range
87004f0
docs: add Lecture Rescheduling module spec
claude Oct 27, 2026
b93a71e
docs: propose docs folder structure plan
claude Oct 27, 2026
b2f6cf1
docs: finalize docs folder structure per owner decisions
claude Oct 27, 2026
5ad75ab
docs: record batch 1 business-logic decisions (approval, roles, confl…
claude Oct 27, 2026
252264e
docs: record batch 2 business-logic decisions (reverts, same-slot tic…
claude Oct 27, 2026
3dc9b1e
docs: decide issue closing and expiry in batch 2
claude Oct 27, 2026
eacd0e5
docs: record batch 3 business-logic decisions (rooms, notifications, …
claude Oct 27, 2026
60a8053
docs: add lecture mode (in person or online) to batch 3 room rules
claude Oct 27, 2026
4685743
docs: online lectures store a meeting link in the location field
claude Oct 27, 2026
b48f71e
docs: meeting link is optional for online lectures for now
claude Oct 27, 2026
7c72d00
docs: record batch 4 business-logic decisions (shared courses, load, …
claude Oct 27, 2026
3416fdb
docs: move batch decisions into the lecture-rescheduling module per S…
claude Oct 27, 2026
35fe5f7
docs: fix relative links in lecture-rescheduling README and open ques…
claude Oct 27, 2026
c3dafe4
Rename docs folder to timetia-docs and update references (Fixes #1)
bitanchor-ui Oct 27, 2026
abd47ea
Merge pull request #2 from Kizunia/rename-docs-folder
bitanchor-ui Oct 27, 2026
c7444be
docs: add ticket lifecycle states and conflict handling (batch 1)
claude Oct 30, 2026
a154b6c
docs: record ticket edit, rejection and withdrawal decisions (batch 2…
claude Nov 3, 2026
17cf8ba
docs: record cancel, revert and expiry decisions (batch 2, part 2)
claude Nov 3, 2026
ddf7c46
docs: finish ticket lifecycle with audit log and notifications, link …
claude Nov 6, 2026
4a157b2
docs: resolve open questions on ERP access, sync, meeting link, CRs, …
claude Nov 6, 2026
8cf6fec
docs: make version 1 standalone with a manually arranged timetable
claude Nov 6, 2026
1df4fa3
docs: migrate spec overview and requirements into the module folder
ishanKulkarni13 Nov 6, 2026
0246031
docs: migrate glossary terms, roles, change types and room entity to …
ishanKulkarni13 Nov 6, 2026
747f2d6
docs: migrate user flows into the module and align them with current …
ishanKulkarni13 Nov 6, 2026
755bbe7
docs: add required data, ERP ownership, architecture boundaries and m…
ishanKulkarni13 Nov 6, 2026
69e240b
docs: archive the original spec, link the module parts and update ind…
ishanKulkarni13 Nov 6, 2026
1d3329e
docs: handle shared courses per batch from a manually seeded list
ishanKulkarni13 Nov 6, 2026
aa11501
docs: let the author, affected faculty and HOD revert before the lect…
bitanchor-ui Nov 8, 2026
c4c6faa
add initial docs for the project
ishanKulkarni13 Oct 27, 2026
7133bfb
remove the env
ishanKulkarni13 Oct 27, 2026
0298318
ignore env
ishanKulkarni13 Oct 27, 2026
0d0eeff
rename the docs folder to kibootia-docs
ishanKulkarni13 Oct 27, 2026
be39b0e
docs: add Kibootia documentation standards, supersede ADR 0001, remov…
ishanKulkarni13 Oct 27, 2026
62dbd7e
docs(decisions): add ADRs 0023-0038 and update existing decisions
ishanKulkarni13 Oct 30, 2026
6b70694
docs(product): replace roadmap milestones with milestones 0-6
ishanKulkarni13 Oct 30, 2026
a786a2e
docs: update architecture, operations and engineering docs
ishanKulkarni13 Oct 30, 2026
cedd891
docs: add technology area, recipe template and glossary terms
ishanKulkarni13 Oct 30, 2026
a533354
docs(decisions): add ADRs 0039-0048 and update existing decisions, op…
ishanKulkarni13 Nov 8, 2026
b05e00b
docs(architecture): update architecture docs and add audit log, front…
ishanKulkarni13 Nov 8, 2026
f5092e2
docs(glossary): add application module, authorization scope, definiti…
ishanKulkarni13 Nov 8, 2026
2ec7278
docs(engineering): update package structure, local setup and testing …
ishanKulkarni13 Nov 8, 2026
0b017f4
docs(operations): update configuration, deployment, monitoring and se…
ishanKulkarni13 Nov 8, 2026
db61c7a
docs(product): update vision, goals and roadmap milestones
ishanKulkarni13 Nov 8, 2026
f673bfd
docs(temp): add decision log, ideation decisions and implementation r…
ishanKulkarni13 Nov 8, 2026
f5cabde
build(backend): move to Java 25 and add JPA, Spring Modulith, ArchUni…
ishanKulkarni13 Nov 8, 2026
3deea97
feat(backend): add module skeleton, event publication table and archi…
ishanKulkarni13 Nov 8, 2026
dcbf370
feat(platform): fail startup when a required setting is missing and d…
ishanKulkarni13 Nov 8, 2026
845ea87
chore: add .env.example, pnpm setup script and pin Adminer
ishanKulkarni13 Nov 8, 2026
17f366f
ci: add GitHub Actions workflow and Renovate configuration
ishanKulkarni13 Nov 8, 2026
6a2ae5d
docs: update milestone 0 status, configuration, setup and enforcement…
ishanKulkarni13 Nov 8, 2026
b356208
ci(backend): make the Maven wrapper executable
ishanKulkarni13 Nov 8, 2026
cfdaf17
chore(scripts): rename pnpm setup to bootstrap and add missing .env k…
ishanKulkarni13 Nov 8, 2026
e52ec1f
docs: record milestone 0 as verified in CI and rename setup to bootstrap
ishanKulkarni13 Nov 8, 2026
ab37132
feat(infra): add Keycloak, Mailpit and Grafana LGTM to Compose and ap…
ishanKulkarni13 Nov 9, 2026
1728d1c
feat(backend): validate Keycloak access tokens, add /api/v1/me and he…
ishanKulkarni13 Nov 9, 2026
e83201c
feat(frontend): add the Next.js server with Keycloak sign-in, session…
ishanKulkarni13 Nov 9, 2026
a96236c
feat(backend): export traces and metrics over OTLP and print structur…
ishanKulkarni13 Nov 9, 2026
014d212
feat(infra): add Dockerfiles for both applications and the apps Compo…
ishanKulkarni13 Nov 9, 2026
118bf82
ci: add frontend, image scan and end-to-end jobs
ishanKulkarni13 Nov 9, 2026
b75650b
docs: record milestone 1 status, settings and the fresh-clone guide
ishanKulkarni13 Nov 9, 2026
ca5ec1d
fix(ci): pin pnpm 11.28.11 because 11.12.0 is a broken release
ishanKulkarni13 Nov 9, 2026
f501ba0
fix(backend): update to Spring Boot 4.1.2 and patch OS packages in th…
ishanKulkarni13 Nov 9, 2026
53a476a
ci: ignore two reviewed gitleaks false positives
ishanKulkarni13 Nov 9, 2026
c0c6785
docs: let rejected tickets be edited and resubmitted (ADR 0006)
bitanchor-ui Nov 9, 2026
7c9e023
docs: add data model audit and proposed fixes as research notes
bitanchor-ui Nov 9, 2026
1a36acf
chore(backend): split fast tests from integration tests, name migrati…
ishanKulkarni13 Nov 9, 2026
b3b01c3
fix(frontend): tamper with the middle of the cookie in the tamper test
ishanKulkarni13 Nov 9, 2026
c47fedd
feat(backend): add persistence base types, tenant context and tenant-…
ishanKulkarni13 Nov 9, 2026
ce0928f
feat(backend): add Problem Details errors, the status mapping and pag…
ishanKulkarni13 Nov 9, 2026
2453db6
feat(backend): add the authorization decision point, the audit module…
ishanKulkarni13 Nov 9, 2026
a4b86d7
feat(backend): add durable events, lock-protected jobs, the retention…
ishanKulkarni13 Nov 9, 2026
7e0b77b
feat(backend): add the notes reference feature
ishanKulkarni13 Nov 9, 2026
0a0f818
feat: generate the OpenAPI description and the frontend client, with …
ishanKulkarni13 Nov 9, 2026
e4a78e4
docs: record milestone 2 implementation status and decisions (ADR 0049)
ishanKulkarni13 Nov 9, 2026
dddb6fb
feat(backend): add the platform pieces for user administration
ishanKulkarni13 Nov 10, 2026
dc5e539
feat(backend): add stored roles, user profiles and the user administr…
ishanKulkarni13 Nov 10, 2026
30a31d9
feat(infra): give the administration client the Admin API audience an…
ishanKulkarni13 Nov 10, 2026
3b30b57
feat(frontend): add profile, user, role and audit screens with the AD…
ishanKulkarni13 Nov 10, 2026
7117317
test(frontend): add end-to-end tests for administration, registration…
ishanKulkarni13 Nov 10, 2026
5be67fd
docs: record milestone 3 implementation status and decisions (ADR 0050)
ishanKulkarni13 Nov 10, 2026
3359022
docs: add a guide to start Kibootia and check each main feature
ishanKulkarni13 Nov 10, 2026
8d97b00
feat(backend): add the S3 object storage port and adapter, with the R…
ishanKulkarni13 Nov 10, 2026
2d448c6
feat(backend): add the files module and the avatar API
ishanKulkarni13 Nov 10, 2026
89d057c
feat(infra): run RustFS in the files Compose profile and give the bac…
ishanKulkarni13 Nov 10, 2026
0af1133
feat(frontend): add the avatar upload, replace and remove screen, ava…
ishanKulkarni13 Nov 10, 2026
3b9e28c
docs: record milestone 4 implementation status and decisions (ADR 0051)
ishanKulkarni13 Nov 10, 2026
4ce99ae
test(frontend): find the demo user by search in the avatar end-to-end…
ishanKulkarni13 Nov 10, 2026
9978249
fix: use full-contrast initials in the avatar and generate the contra…
ishanKulkarni13 Nov 10, 2026
fadd50e
test(frontend): wait for toasts to clear before the accessibility che…
ishanKulkarni13 Nov 10, 2026
004093b
docs: mark milestone 4 as verified (CI run 42873216224)
ishanKulkarni13 Nov 10, 2026
6968119
feat(backend): add fit renditions to the image pipeline
ishanKulkarni13 Nov 10, 2026
09f3268
feat(backend): attach a picture to a note and make the notes module r…
ishanKulkarni13 Nov 10, 2026
2d05fc9
feat(frontend): add the notes screens, a module registry and a shared…
ishanKulkarni13 Nov 10, 2026
330f354
test(frontend): add the notes end-to-end story with accessibility checks
ishanKulkarni13 Nov 10, 2026
3ea75f2
feat(ci): add the module removal script and the module-removal job
ishanKulkarni13 Nov 10, 2026
9f15d3f
fix(ci): let the removal script skip comments and allow two intention…
ishanKulkarni13 Nov 10, 2026
3e8d800
docs(backend): point FilesDisabledIT at the module-removal job
ishanKulkarni13 Nov 10, 2026
a14606b
test(frontend): correct two assertions in the notes story
ishanKulkarni13 Nov 10, 2026
714d4ee
test(backend): give the notes rate-limit test a context of its own
ishanKulkarni13 Nov 11, 2026
4cea34f
docs: record milestone 5 implementation status and decisions (ADR 0052)
ishanKulkarni13 Nov 11, 2026
7254aa3
Merge pull request #3 from ishanKulkarni13/main
ishanKulkarni13 Nov 11, 2026
9e637e5
docs(auth): update docs for the auth impl
ishanKulkarni13 Nov 11, 2026
d8a4954
docs(auth): record the scoped-assignment and identity-hardening decis…
ishanKulkarni13 Nov 11, 2026
414e788
fix(access): give only roles you hold, and only administrators act on…
ishanKulkarni13 Nov 11, 2026
4e6add9
feat(security): accept only access tokens, and pin the token edge cases
ishanKulkarni13 Nov 11, 2026
c4a0b92
feat(audit): record refusals of signed-in users as security events
ishanKulkarni13 Nov 11, 2026
78f9562
feat(config): refuse development defaults when the environment is pro…
ishanKulkarni13 Nov 11, 2026
6e27733
feat(identity): Timetia names for the realm, clients and cookies, and…
ishanKulkarni13 Nov 11, 2026
1b408d1
docs(auth): record the status of Phases 0 and 1 and the fixed backlog…
ishanKulkarni13 Nov 11, 2026
71074af
feat(authorization): policy-decided permissions, grants and reach in …
ishanKulkarni13 Nov 11, 2026
3a535fd
feat(access): roles and assignments within a scope, and the API to gi…
ishanKulkarni13 Nov 11, 2026
1a3b7d0
feat(academic): Timetia's permissions, role templates and per-record …
ishanKulkarni13 Nov 11, 2026
e9f8477
chore(frontend): regenerate the API client for scoped roles and the s…
ishanKulkarni13 Nov 11, 2026
056169f
test(academic): check the seeded roles against the documented role by…
ishanKulkarni13 Nov 12, 2026
3a9e982
docs(auth): record the Phase 2 implementation, the test map and what …
ishanKulkarni13 Nov 12, 2026
482907b
feat(platform): look up scope codes in the scope directory, add an im…
ishanKulkarni13 Nov 12, 2026
e89d6bf
feat(access): add one scoped role at a time, name places by code, por…
ishanKulkarni13 Nov 12, 2026
b95c58e
feat(identity): invite the bootstrap administrator at startup, grant …
ishanKulkarni13 Nov 12, 2026
2c800c7
feat(identity): administrator flag on GET /me
ishanKulkarni13 Nov 12, 2026
10af389
feat(identity): add-only CSV import of people and scoped roles
ishanKulkarni13 Nov 12, 2026
d00f5fe
chore(api): regenerate the API description and client for imports and…
ishanKulkarni13 Nov 12, 2026
a2e2087
feat(frontend): roles in a place on the user page and an import screen
ishanKulkarni13 Nov 12, 2026
1f4c4a4
docs(auth): record Phase 3, the provisioning runbook and what was and…
ishanKulkarni13 Nov 12, 2026
08527f8
(version control): ignore the .vscode
ishanKulkarni13 Nov 12, 2026
57adde4
fix(access): a scope directory that cannot answer refuses the place, …
ishanKulkarni13 Nov 12, 2026
2f257bb
test(academic): a base class for tests of roles in places, and a work…
ishanKulkarni13 Nov 12, 2026
38b552d
fix(identity): only an administrator may change a user's email or use…
ishanKulkarni13 Nov 12, 2026
d675cc2
fix(frontend): accessibility failures found by the first end-to-end run
ishanKulkarni13 Nov 12, 2026
e533227
test(e2e): rename for Timetia, and specs for provisioning, the realm'…
ishanKulkarni13 Nov 12, 2026
ff8f1b9
test: a developer's root .env no longer changes what the backend test…
ishanKulkarni13 Nov 12, 2026
eee70f7
docs(auth): record Phase 3 completion work, the first Phase 4 deliver…
ishanKulkarni13 Nov 12, 2026
4b4de4f
docs(auth): record the named CI run and tick only what it backs
ishanKulkarni13 Nov 12, 2026
339adad
reference data + ScopeDirectory
omkesti Nov 15, 2026
993ac10
Live Timetable + ticket raising
omkesti Nov 15, 2026
7a4e398
the review flow
omkesti Nov 15, 2026
88a8b14
Backend suite complete.
omkesti Nov 15, 2026
0881b4d
docs(frontend): backend audit and three-phase frontend/backend plan
omkesti Nov 15, 2026
dccb8e3
claude md
omkesti Nov 15, 2026
4ee6dd5
jdbc to sql
omkesti Nov 16, 2026
d4c1d1e
Phase 1 frontend + backend complete
omkesti Nov 16, 2026
2e1f9fa
docs: record green backend verify; drop build log
omkesti Nov 16, 2026
0b190ad
chore: ignore local build logs, stop tracking one, JDK 25 note
ishanKulkarni13 Nov 16, 2026
4490581
refactor(issues): hand-written SQL store replaces the JPA entities an…
ishanKulkarni13 Nov 16, 2026
4d8b691
feat(rescheduling): names on tickets, reviewer candidates, awaiting-r…
ishanKulkarni13 Nov 16, 2026
f16a1d1
feat(frontend): tickets - list, detail, raise/edit/review dialogs and…
ishanKulkarni13 Nov 16, 2026
991a236
docs: database design, query catalogue and viva questions
ishanKulkarni13 Nov 16, 2026
d414d23
docs(scripts): college seed script and a runbook for presenting
ishanKulkarni13 Nov 16, 2026
f7ced09
docs(scripts): the seeded term starts in the current week
ishanKulkarni13 Nov 16, 2026
414cd1b
Merge branch 'dog' of github.com:Kizunia/timetia into dog
ishanKulkarni13 Nov 16, 2026
555431f
feat: one-command seed (pnpm seed), notifications bell and page, issu…
ishanKulkarni13 Nov 16, 2026
4f39c75
feat(reference): link a faculty member to the account they sign in as
ishanKulkarni13 Nov 25, 2026
d50a023
feat(issues): carry names and codes on issue responses
ishanKulkarni13 Nov 25, 2026
0f68b06
feat(notifications): say who, what and whether the ticket can be opened
ishanKulkarni13 Nov 25, 2026
7e5a9df
chore(api): regenerate the API description and client
ishanKulkarni13 Nov 25, 2026
f620e63
fix(frontend): send people who cannot open a ticket to the lecture
ishanKulkarni13 Nov 25, 2026
084d7e8
feat(frontend): mention teachers, link tickets and show names on issues
ishanKulkarni13 Nov 25, 2026
317eedd
feat(frontend): campus and timetable setup screens under Administration
ishanKulkarni13 Nov 25, 2026
ca54003
fix(frontend): use a sans-serif font and theme colours
ishanKulkarni13 Nov 25, 2026
aa837e0
test(frontend): ticket list, detail, review and raise dialogs
ishanKulkarni13 Nov 25, 2026
d06ca23
test(e2e): reschedule, review, notify and revert
ishanKulkarni13 Nov 25, 2026
97cf883
docs(scripts): make the demo walkthrough a click-through
ishanKulkarni13 Nov 25, 2026
1e7de6c
docs: record phase 3, deferred features and the handover
ishanKulkarni13 Nov 25, 2026
5763bd0
Merge pull request #4: finish phase 3 - issues, notifications and adm…
ishanKulkarni13 Nov 25, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 0 additions & 2 deletions .env

This file was deleted.

38 changes: 38 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Copy to .env with `pnpm bootstrap`, which fills the CHANGE_ME values with freshly generated random secrets.
# .env is for local development only and is never committed (see .gitignore).
# Names only here; every variable is listed in kibootia-docs/operations/configuration/application-configuration.md.

# --- Database (read by compose.yaml and by the backend) ---
MYSQL_ROOT_PASSWORD=CHANGE_ME
MYSQL_PASSWORD=CHANGE_ME

# --- Keycloak (read by compose.yaml; the realm is applied by the one-shot OpenTofu container) ---
KEYCLOAK_DB_PASSWORD=CHANGE_ME
KEYCLOAK_ADMIN_PASSWORD=CHANGE_ME
KEYCLOAK_WEB_CLIENT_SECRET=CHANGE_ME
KEYCLOAK_ADMIN_CLIENT_SECRET=CHANGE_ME
# Password of the local demo user (username: demo). Local only; the production overlay has no demo data.
DEMO_USER_PASSWORD=CHANGE_ME
# Password of the local administrator (username: demo-admin). Local only. The backend makes the address below the
# first administrator when it signs in, while no administrator exists (ADR 0025).
DEMO_ADMIN_PASSWORD=CHANGE_ME
KIBOOTIA_BOOTSTRAP_ADMIN_EMAIL=demo-admin@timetia.localhost

# --- Object storage (read by compose.yaml, which starts RustFS, and by the backend; ADR 0029) ---
# The access key and secret key of the local S3 server. Generated, URL-safe. Local only.
KIBOOTIA_FILES_ACCESS_KEY=CHANGE_ME
KIBOOTIA_FILES_SECRET_KEY=CHANGE_ME

# --- Next.js server ---
# Derives the key that encrypts the session cookie.
SESSION_SECRET=CHANGE_ME

# --- Compose ---
# Profiles started by `docker compose up`. Remove `observability` to leave out the Grafana LGTM container, and `files`
# to leave out the object store (then also set KIBOOTIA_FILES_ENABLED=false, or uploads answer 503).
COMPOSE_PROFILES=observability,files

# --- Module switches (ADR 0024; the removal recipes are in kibootia-docs/recipes) ---
# Set to false to switch the module off: the application starts without it and its endpoints answer 404 `<module>.disabled`.
KIBOOTIA_FILES_ENABLED=true
KIBOOTIA_OBSERVABILITY_ENABLED=true
9 changes: 9 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Files that Linux containers and CI execute must keep LF line endings, whatever the checkout's autocrlf setting.
mvnw text eol=lf
*.sh text eol=lf
Dockerfile text eol=lf
*.mjs text eol=lf

# Generated contract files are compared byte for byte in CI, so they keep LF on every checkout.
backend/openapi.json text eol=lf
frontend/src/lib/api/schema.gen.ts text eol=lf
223 changes: 223 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,223 @@
name: CI

on:
pull_request:
# `labeled` so that adding the `e2e` label starts the end-to-end job.
types: [opened, synchronize, reopened, labeled]
push:
branches: [main]
schedule:
# Nightly end-to-end run (verification standard).
- cron: "17 2 * * *"
workflow_dispatch:

permissions:
contents: read

concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

jobs:
backend:
name: Backend build and test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-java@v6
with:
distribution: temurin
java-version: "25"
cache: maven
# Testcontainers starts MySQL on the runner's Docker daemon.
- name: Build and test
working-directory: backend
run: ./mvnw -B verify
# OpenApiContractIT rewrites backend/openapi.json from the controllers. A change here means the committed file is
# stale: run `./mvnw verify` in backend/ and commit it (ADR 0043).
- name: Check the OpenAPI description is up to date
run: |
if [ -n "$(git status --porcelain -- backend/openapi.json)" ]; then
git --no-pager diff -- backend/openapi.json
echo "::error file=backend/openapi.json::The committed OpenAPI description is out of date. Run ./mvnw verify in backend/ and commit the result."
exit 1
fi

frontend:
name: Frontend lint, type check, test and build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
# The pnpm version comes from "packageManager" in the root package.json.
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v7
with:
node-version: "24"
cache: pnpm
- run: pnpm install --frozen-lockfile
# The client is generated from backend/openapi.json (ADR 0038). A change here means schema.gen.ts is stale: run
# `pnpm --filter kibootia-frontend api:generate` and commit it.
- name: Check the generated API client is up to date
run: |
pnpm --filter kibootia-frontend api:generate
if [ -n "$(git status --porcelain -- frontend/src/lib/api/schema.gen.ts)" ]; then
git --no-pager diff -- frontend/src/lib/api/schema.gen.ts
echo "::error file=frontend/src/lib/api/schema.gen.ts::The generated API client is out of date. Run pnpm --filter kibootia-frontend api:generate and commit the result."
exit 1
fi
- name: Lint
run: pnpm --filter kibootia-frontend lint
- name: Type check
run: pnpm --filter kibootia-frontend typecheck
- name: Unit tests
run: pnpm --filter kibootia-frontend test
- name: Build
run: pnpm --filter kibootia-frontend build

# Proves that a fork can remove or switch off a default-on module (ADR 0024, verification standard). Each row builds
# and starts what is left: the notes module is deleted with the same script the removal recipe describes, the others
# are switched off by their property. Rows that switch a module off run the tests tagged `startup` (the application
# starts against MySQL, the core API answers, the module's endpoints answer 404 `<module>.disabled`); the row that
# deletes code runs every backend test, which must still pass without it.
module-removal:
name: Without ${{ matrix.name }}
runs-on: ubuntu-latest
timeout-minutes: 40
strategy:
fail-fast: false
matrix:
include:
- name: notes (removed)
remove: notes
files: "true"
observability: "true"
tests: all
- name: files (switched off)
remove: ""
files: "false"
observability: "true"
tests: startup
- name: observability (switched off)
remove: ""
files: "true"
observability: "false"
tests: startup
- name: notes, files and observability (all)
remove: notes
files: "false"
observability: "false"
tests: startup
env:
KIBOOTIA_FILES_ENABLED: ${{ matrix.files }}
KIBOOTIA_OBSERVABILITY_ENABLED: ${{ matrix.observability }}
steps:
- uses: actions/checkout@v7
- uses: actions/setup-java@v6
with:
distribution: temurin
java-version: "25"
cache: maven
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v7
with:
node-version: "24"
cache: pnpm
- run: pnpm install --frozen-lockfile
- name: Remove the module
if: matrix.remove != ''
run: node scripts/remove-module.mjs "${{ matrix.remove }}"
# Testcontainers starts MySQL on the runner's Docker daemon. The build rewrites backend/openapi.json, which is
# expected to change in the rows that remove a module, so it is not compared here.
- name: Build and test the backend
working-directory: backend
run: |
if [ "${{ matrix.tests }}" = "startup" ]; then
./mvnw -B verify -Dgroups=startup
else
./mvnw -B verify
fi
- name: Generate the client from the remaining API
if: matrix.remove != ''
run: pnpm --filter kibootia-frontend api:generate
- name: Lint, type check, test and build the frontend
if: matrix.remove != ''
run: |
pnpm --filter kibootia-frontend lint
pnpm --filter kibootia-frontend typecheck
pnpm --filter kibootia-frontend test
pnpm --filter kibootia-frontend build

images:
name: Build and scan container images
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Build the backend image
run: docker build --tag kibootia-backend:ci backend
- name: Build the frontend image
run: docker build --file frontend/Dockerfile --tag kibootia-frontend:ci .
# Fails on known HIGH or CRITICAL vulnerabilities that have a fix available (ADR 0047).
- name: Scan the backend image
uses: aquasecurity/trivy-action@a9c7b0f06e461e9d4b4d1711f154ee024b8d7ab8 # v0.36.0
with:
image-ref: kibootia-backend:ci
severity: HIGH,CRITICAL
ignore-unfixed: true
exit-code: "1"
- name: Scan the frontend image
uses: aquasecurity/trivy-action@a9c7b0f06e461e9d4b4d1711f154ee024b8d7ab8 # v0.36.0
with:
image-ref: kibootia-frontend:ci
severity: HIGH,CRITICAL
ignore-unfixed: true
exit-code: "1"

e2e:
name: End-to-end sign-in test
# Nightly, on demand, and on pull requests labelled `e2e` (verification standard).
if: >-
github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' ||
(github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'e2e'))
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v7
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v7
with:
node-version: "24"
cache: pnpm
- run: pnpm install --frozen-lockfile
- name: Create .env with generated secrets
run: node scripts/bootstrap.mjs
- name: Start the infrastructure and both applications in containers
run: node scripts/apps.mjs up
- name: Install the browser
run: pnpm --filter kibootia-frontend exec playwright install --with-deps chromium
- name: Run the sign-in test
run: pnpm --filter kibootia-frontend test:e2e
- name: Show container logs after a failure
if: failure()
run: docker compose --profile "*" logs --no-color --tail 200
- name: Keep the Playwright report after a failure
if: failure()
uses: actions/upload-artifact@v7
with:
name: playwright-report
path: frontend/playwright-report
if-no-files-found: ignore
retention-days: 7

secret-scan:
name: Secret scan
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: read
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- uses: gitleaks/gitleaks-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18 changes: 18 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Local secrets and configuration: never commit. Create it with: pnpm bootstrap
.env
.env.*
!.env.example

node_modules/

# Local logs
*.log

# IDE
.vscode

# Local build logs
/build-log.txt
/build-full.txt
/dev-out.log
/dev-err.log
11 changes: 11 additions & 0 deletions .gitleaksignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Reviewed gitleaks false positives (generic-api-key). One fingerprint per line.

# compose.yaml: the Keycloak JDBC URL (no credential in it).
9c0bd2f672b2b9a9b8bad1cfe4b38435af0a98c4:compose.yaml:generic-api-key:65

# frontend unit tests: a fake session secret used only as a test fixture.
01491e8694c4e9e21a97f32d392eb13c46db3f21:frontend/tests/unit/helpers.ts:generic-api-key:18

# Same two findings as above, under the commit IDs they have on main after the merge.
ab3713299f1ee588a1fd8b43d4f6fd4c32952fc0:compose.yaml:generic-api-key:65
e83201c089c90f28f7256cb0951e4ead4c37afa1:frontend/tests/unit/helpers.ts:generic-api-key:18
Loading
Loading