top systems work oss projects research stack contact
Hello, I’m

Sandaru
Wijewardhana

Software EngineerBackend · Platform · Kubernetes▏

I write the software that keeps other software running. Go operators on Kubernetes at WSO2, a multi‑tenant TypeScript SaaS I built and operate alone at BayWork, and patches merged upstream into Prometheus. Design, code, deploy, on-call — the whole loop.

Hire me → View my work CV ↓
Available for graduate software engineering roles | GitHub LinkedIn Medium
Sandaru Wijewardhana
Go
Kubernetes
TypeScript
PostgreSQL
Based in
Gampaha, Sri Lanka
Degree
BSc Eng (Hons), Peradeniya
Email
sandaruwijewardhana@gmail.com
Phone
+94 72 935 6781
The four numbers I would put on a whiteboard
3.83
3.83
First Class Honours
Computer Engineering, University of Peradeniya. Four years, no resits, while running a company.
1
1
Company founded, alone
BayWork: a multi-tenant SaaS with a paying customer and 4 stations live. No co-founder, no team.
9
9
Upstream PRs to infra I use
Kubernetes, Prometheus, Keycloak, Argo CD, Kubespray, Ceph-CSI and more — 300k+ combined stars, seven merged.
1
1
Paper accepted
Explainable-AI zero-trust anomaly detection, accepted for publication at iPURSE 2026.
00What I do

Four things I get paid to be good at

01
Platform engineering

CRDs, reconcilers and vertical autoscaling in Go. Harbor on RKE2 and Harvester HCI, provisioned by an operator instead of by hand.

GoKubebuildercontroller-runtimeHelm
02
Backend & APIs

Typed REST services with real isolation: schema-per-tenant PostgreSQL, JWT and RBAC to OWASP ASVS 5.0 L2, p95 under 120 ms.

TypeScriptExpress 5DrizzlePostgreSQL
03
Infrastructure & CI

Terraform, Argo Workflows and GitHub Actions. Multi-AZ AWS designs costed down to dollars per tenant per month.

TerraformAWSArgoCloudflare
04
Product & frontend

A React console, an invoicing domain model, the pricing page and the support calls. I run what I write.

React 19ViteTanStack QueryZod
01 / Systems, live

Two systems I own, drawn as they run

Follow the traffic. Hover any node for the decision behind it.

registry-operator · reconcile loop, Open Cloud Datacenter Go · controller-runtime · Harbor · Longhorn scroll to explore →
kubectl apply RegistryInstance CR Kubernetes API server RKE2 · Harvester HCI registry-operator Go · controller-runtime RegistryBackend + RegistryInstance level-triggered reconcile Harbor 7 pods / tenant Longhorn PVC 20 GB, was 100 Prometheus quota + usage 3-tier autoscaler grow at 80% threshold resize, no restart Network model PrivateLink-style isolation, 0 routable IPs L7 → L4 image traffic: ~80% less CPU, 10× throughput Provisioning 7-pod tenant registry in under 2.5 minutes 78% REST client coverage · self-healing GC
02 / Experience

Where the work happened

Apr 2026 – Oct 2026

Site Reliability Engineer Intern

WSO2
Go Kubernetes Kubebuilder Helm Harbor Harvester HCI Rancher RKE2 Terraform Argo Workflows Prometheus
  • Architected and built Registry-as-a-Service as the sole engineer for Open Cloud Datacenter, WSO2’s open-source private cloud — CRDs, operator reconcilers and 3-level vertical auto-scaling that cut wasted resource usage by up to 80%.
  • Automated multi-tenant 7-pod Harbor deployments in under 2.5 minutes, down from an hour of manual setup.
  • Engineered end-to-end testing for the VM-provisioning capability module inside a team building an automated Harvester HCI upgrade acceptance-testing suite, using Argo Workflows, Terraform and Go assertions.
May 2024 – Present

Founder & Sole Engineer

BayWork · baywork.lk
TypeScript Node 20 Express 5 Drizzle ORM PostgreSQL 15 React 19 Docker AWS Cloudflare
  • Founded and single-handedly run a multi-tenant B2B SaaS ERP — 4 stations deployed, first paying customer onboarded. With no co-founder or team I own market research, pricing, branding, architecture, backend, frontend, database, security, infrastructure and support. The product is stabilised and prepared for acquisition.
  • Delivered p95 API latency under 120 ms on a base footprint, on a multi-AZ AWS design (ECS on EC2 + RDS Multi-AZ) fronted by Cloudflare Tunnels — unit cost down to $0.90 per station at 50 stations.
Apr 2025 – Apr 2026

Undergraduate Teaching Assistant

University of Peradeniya
  • Ran lab sessions and marked assessments for CO225 Software Construction, CO322 / CO2030 Data Structures & Algorithms I & II, and third-year IoT and web projects.
03 / Open source

Patches in repositories you already run

Nine upstream contributions across 300k+ combined stars — seven merged, including Kubernetes, Prometheus, Keycloak and Argo CD.

kubernetes/kubernetes
#141955 · #141850★ 127.7k merged

Built an end-to-end goroutine-leak check on Go 1.27’s leak profile. It found two leaks in kube-controller-manager caused by a nil stop channel — a receive on a nil channel blocks forever, so the HTTPS graceful-shutdown path was unreachable code. Fixed with a cancellable serving context (#141955, merged); the e2e invariant itself is #141850, still under review.

prometheus/prometheus
#19522★ 66.1k merged

The remote-write “Send Batch Duration” panel queried _bucket series only, so it rendered empty for anyone scraping native histograms. Added two histogram_quantile targets beside the classic ones, so one panel works under either representation with no configuration.

keycloak/keycloak
#51935★ 36.8k merged

SCIM filtered PATCH removal deleted an entire multivalued attribute instead of the matched values, losing consent-screen data on user profiles. Also made unsupported and/or filters return HTTP 400 rather than a 500.

argoproj/argo-cd
#29255★ 24.2k merged

Auto-hide the pod-highlight control when a resource has only one pod, and clear stale highlights when the log query changes.

kubernetes-sigs/kubespray
#13437★ 18.7k merged

Upgraded default nerdctl to v2.3.5 and unblocked automated version tracking by resolving an ARM architecture version constraint that had left armv7 without a matching checksum entry.

ceph/ceph-csi
#6508★ 1.6k merged

Refactored subvolume pinning onto go-ceph’s typed PinSubVolumeInGroup() API instead of untyped CLI commands, enabling non-default subvolume groups and removing hand-rolled JSON marshalling and dead helper code.

cncf/k8s-conformance
#4395★ 939 merged

Submitted official CNCF Kubernetes conformance results — 441 specs, 0 failures — for Kubespray v2.31.0 on Kubernetes v1.35.4, keeping the distribution’s certification current.

helm/helm
#32568★ 30.2k open

Provenance verification lost keys in a concatenated keyring: armor.Decode reads ahead into a buffer, so the offset after the first block is unrecoverable. Fixed by decoding each armored block from its own reader, with boundary regression tests.

thunder-id/thunderid
#5206★ 578 open

Consent filtering treated “profile unknown” and “profile known but empty” as the same thing, so an empty profile prompted for attributes the user does not have, while an opaque JWT profile prompted for nothing at all.

04 / Projects

Engineering, build by build

Three production systems first, then earlier engineering work. Open one to read the trade-off I made and what it bought.

Node 20 Express 5 Drizzle ORM PostgreSQL 15 React 19 TailwindCSS 4 TanStack Query Zod Docker ECS RDS Cloudflare Tunnel Terraform GitHub Actions
  • A 10-module TypeScript API and a React console, written alone. p95 API latency under 120 ms, load-tested to 200 req/s on a single 2-vCPU host — about 10× projected peak at 50 stations.
  • Built an offline-tolerant IndexedDB mutation queue on TanStack Query: a write made during a network drop survives a page reload and replays in order, each carrying a client-generated Idempotency-Key so a lost acknowledgement cannot create a duplicate invoice. Concurrent edits resolve through optimistic concurrency control with a field-level three-way merge — 50 replays of one key produce exactly one row, proven by 23 API and 19 browser-side tests.
  • Chose schema-per-tenant over a shared tenant_id column so a forgotten WHERE clause cannot leak another station's data. An approved registration builds 12 tables, 4 enum types and 25 indexes in one transaction, rolling back cleanly on failure.
  • Closed a search_path injection path by validating every schema identifier against an allow-list before it reaches SQL — an identifier cannot be a bind parameter, so the pattern is the defence.
  • Dropping the ALB and NAT Gateway saves $53/month and leaves zero inbound ports open — $0.90/station at 50 stations, accepting 99.5% business-hours availability as the trade.
Go Kubebuilder controller-runtime Helm Go SDK Harbor REST API Harvester HCI RKE2 cert-manager Longhorn Prometheus
  • Two custom resources — RegistryBackend (per-tenant server) and RegistryInstance (scoped projects) — mirroring cert-manager's model.
  • Automated multi-tenant 7-pod Harbor deployments in about two and a half minutes, against roughly an hour by hand.
  • Cut per-tenant storage ~80% (100 GB → 20 GB) via level-triggered autoscaling on a 3-tier plan growing at an 80% quota threshold. Growth is one-way, because expanding a PersistentVolumeClaim cannot be undone, and the grown size is written to status rather than back into the spec the admin authored.
  • Engineered a PrivateLink-style network model reaching isolation with 0 routable IPs, versus a load balancer per namespace, while closing unauthenticated cross-tenant paths.
Go Ginkgo v2 / Gomega client-go dynamic client Terraform Argo Workflows JUnit structured JSON reporting
  • I own the VM-provisioning capability module — fixtures, 20+ behavioural assertions and evidence collection.
  • Terraform can prove a resource was applied but not that it behaves, so the suite pairs Terraform-managed throwaway fixtures with Go acceptance tests that wait on real reconciliation against explicit deadlines.
  • Keeping the runner in a separate host cluster from the target under test means logs, results and cleanup survive even when the target capability is the thing that broke — designed to replace a day of manual post-upgrade checks with one automated run.
  • Teardown runs in three places because each covers a different failure: the suite's own AfterAll for a normal finish, the workflow's exit handler for a failed or deleted run, and a scheduled janitor for the case where the runner itself dies. The janitor never reads Terraform state — state is what goes missing — it asks the target what is labelled with a run ID and how old it is.
ESP32 (C/C++) MQTT AWS IoT Java Spring Boot MongoDB React Native
  • I led the firmware — the ESP32 code that reads the sensors, debounces occupancy and publishes to the cloud.
  • Chose MQTT over HTTP polling to keep devices responsive on an unreliable Wi-Fi link, and moved occupancy debouncing onto the device so flickering sensor reads never reached the backend.
  • Sensor-to-light response held under 1 second, and occupancy-driven switching cut idle lighting time substantially against an always-on baseline.
Java Java Swing SQL OpenCV image processing ML models
  • I architected the system flow and the patient-history schema.
  • Stored every measurement against a timestamped patient record instead of overwriting the last one — which is what made longitudinal comparison possible — and replaced manual caliper readings with automated measurement free of operator variance.
Python TensorFlow Convolutional Neural Networks Tkinter
  • I trained the classifier and built the interface.
  • The first model learned lighting conditions rather than skin texture, which inflated validation accuracy on an unbalanced set. Fixed with augmentation and class re-balancing, then re-validated on a held-out split.
05 / Research

Explainable-AI zero-trust anomaly detection

Accepted for publication · iPURSE 2026 Final-year project · lead architect

Detecting attacks inside encrypted traffic without decrypting it, under Zero-Trust assumptions, and explaining every decision. As lead architect I designed the two-stage pipeline, built the Decision Tree stage, and did the packet analysis and feature engineering.

Full explainable analysis cost around 1.2 s per stream — unusable inline. Splitting it into a fast Decision Tree triage stage at 1.2 ms, escalating only suspicious streams to deep analysis, brought the weighted average to 463 ms: a 2.6× speed-up while holding accuracy.

Python Decision Trees Deep Dictionary Learning Isolation Forest LIME / SHAP
Accuracy96.69%
Recall99.31%
F195.12%
Triage attack recall99.96%
3,000 streams evaluated · 6 attacks leaked
523,534 flows at 0.04% leakage in triage
06 / Stack

What I reach for

Depth first, then the full surface area.

Go operators, controller-runtime, Ginkgo
Kubernetes CRDs, reconcilers, NetworkPolicies, Helm
TypeScript / Node Express 5, Drizzle, Zod, Vitest
PostgreSQL schema-per-tenant, indexing, migrations
AWS & Terraform ECS, RDS Multi-AZ, IaC
React React 19, Vite, TanStack Query
Languages
Go Java TypeScript JavaScript Python SQL C Bash
Cloud & Infrastructure
Kubernetes (operators, CRDs, Kubebuilder) Docker Helm Terraform Vagrant Nginx Tomcat Harvester HCI Rancher RKE2 Cloudflare AWS EC2 ECS RDS S3 ECR IAM CloudWatch
Backend
Node 20 Express 5 Spring Boot REST APIs Drizzle ORM JWT / OAuth2 RBAC multi-tenancy
DevOps, Observability & Testing
GitHub Actions Jenkins GitLab CI Argo Workflows Argo CD Prometheus Grafana Linux Git Ginkgo v2 / Gomega envtest Vitest JUnit
Frontend
React 19 Vite TailwindCSS TanStack Query React Hook Form + Zod React Native Java Swing HTML5
Data & Messaging
PostgreSQL MySQL MongoDB Redis Memcached RabbitMQ MQTT JDBC
Security, Networking & ML
Zero-Trust architecture TLS / cert-manager NetworkPolicies SQL-injection prevention TCP/IP Wireshark Packet Tracer TensorFlow OpenCV CNNs Decision Trees LIME / SHAP ESP32 Arduino
Concepts
Data Structures & Algorithms SOLID design patterns level-triggered reconciliation zero trust architecture
07 / Training

Certifications

The Complete Full-Stack Web Development Bootcamp
62.5 h
Dr. Angela Yu · Udemy

HTML5, CSS3, JavaScript (ES6+), React.js, Node.js, Express.js, PostgreSQL, MongoDB, RESTful APIs and authentication (JWT, bcrypt).

Decoding DevOps — From Basics to Advanced Projects with AI
64 h
Imran Teli · Udemy · 378 lectures

Linux/Bash, Docker, Kubernetes, Terraform, Jenkins, GitHub Actions, AWS/GCP, Prometheus/Grafana and Argo CD (GitOps).

React Development Course
71 modules
DP Education IT Campus

Modern React: SPAs, JSX, components, props and state, hooks and Vite tooling.

08 / Off the keyboard

Leading, teaching, playing

2021–2026
Manager & Team Leader — AIESEC, Peradeniya
Team Leader (Marketing), Specialist (IR). Best Marketing TL ’22, Trailblazer ’22 OC.
2023
Freshers’ Hockey Team
University of Peradeniya.
2023
Maths & Science Tutor
Arunella Education Welfare Programme.
2018–2020
Chief Organizer — Traffic Warden Unit
Ananda College, Colombo 10. G.C.E. A/L with 3 A’s.
Available for graduate and platform engineering roles

Give me the hard
part of the system.

Operators, multi-tenant isolation, cost per tenant, upgrade safety. I have shipped all four with my name as the only one on the commit log.

Download CV (PDF)↓ GitHub↗ LinkedIn↗ Medium↗ baywork.lk↗