Platform Engineer · Bhutan NDI
Dev Raj Dungana
I build and run the infrastructure behind Bhutan’s national digital identity.
Citizens keep verifiable credentials in a wallet on their phone and use them to prove who they are to banks, telecoms and government services. I look after what sits underneath: the cloud, the release pipeline, and the identity services themselves (agents, DIDComm mediators, credential and schema services) across QA, staging and production.
Bhutan
- SGD 10k / month
- cut from cloud spend by right-sizing environments, databases and CI
- 30 days
- from no Azure experience to the full Phenix identity stack running on it
- 1,000+ commits
- in public repositories, including fixes merged upstream
Work
Bhutan NDIPlatform Engineer, ProductNow
Ship
- Deployed the cloud wallet end to end, through to production; a guardianship-wallet proof of concept for GovTech; and an e-signature platform (backend, frontend and client).
- Took Project Phenix to Microsoft Azure: learned the platform in 30 days and deployed the complete identity stack on it.
- Moved platform releases to one command per service: GitHub Actions with OIDC instead of long-lived keys, arm64 images promoted from staging to production by digest, Terraform for the infrastructure, and database migrations that stay backward compatible.
Keep it fast
- Put PgBouncer in front of the wallet databases and tuned the Credo controllers and their load-balancer timeouts.
- Built an open-source load-testing harness that drives a DIDComm mediator with real wallet agents, and used it to measure mediator changes before they ship.
- Reworked wallet storage queries so that OR filters run as indexed lookups and AND filters lead with their most selective tag.
- Set up dedicated, highly available RPC for Ethereum and Polygon mainnet operations.
Keep it cheap
- Saved about SGD 10,000 a month by scaling down staging, reconsidering Multi-AZ databases, auditing CI runner spend and moving to lighter, independent agent controllers.
Keep it safe
- Cleared dependency vulnerabilities, automated certificate renewal, hardened messaging (NATS) configuration, and deployed Ethereum-compatible DID and schema contracts.
- Operator access through single sign-on only, signed commits everywhere, and public release notes that never leak infrastructure details.
Grow people
- Mentored the winning team at Startup Weekend, supported the NDI Hackathon at Pangbisa, Paro, and ran knowledge transfer for engineers seconded from GovTech.
Writing
Atom feedThe first writeups are on the bench. Subscribe to the feed to catch them.
Open source
github.com/devdgna- c-aresFixed how the hash-table seed is mixed (XOR instead of OR, which drove the seed towards all ones) in the asynchronous DNS library used by curl, Node.js and gRPC.
- DIDComm Mediator (OpenWallet Foundation)An Azure Cosmos DB transport for queued messages, so the mediator can run on Azure with a managed store instead of PostgreSQL or DynamoDB.
- NGOTAGThe open-standards platform behind Bhutan NDI: platform services, agent controller, DIDComm mediator and studio. Releases, performance and infrastructure work.
- didcomm-mediator-artilleryLoad tests for DIDComm mediators with Artillery and Credo-TS: simulated wallets run DID Exchange, mediation and Pickup v2 and report per-step metrics.
- ConnBudgetStatic analysis that adds up how many database connections a stack can open during autoscaling and rolling deploys, and fails the build before PostgreSQL runs out.
- VeloxDBAn early-stage, Redis-compatible in-memory key-value store: sharded storage, RESP2, non-blocking networking and append-only persistence.
Products and lab
Shipped
- TinyImage
Free image compression, conversion and editing that runs entirely in the browser, so files never leave the device.
On the bench
- dzongkha-tlm
A tiny, context-aware language model for Dzongkha.
- bhutan-netmap
Passive mapping of Bhutan’s international internet connectivity from BGP, registry, PeeringDB and RIPE Atlas data.
- Build Your Own Stuff
My everyday command-line tools, rebuilt from pinned, signed source in a sandbox with no network, and run sandboxed too.
Toolbox
- Cloud
- AWS (ECS, RDS, ALB, IAM)Microsoft AzureCloudflare
- Delivery
- TerraformGitHub Actions + OIDCDockerLinux
- Data
- PostgreSQLPgBouncerRedis / ValkeyNATSCosmos DB
- Identity
- Credo-TSDIDCommVerifiable credentialsEthereum / Polygon
- Code
- TypeScript / Node.jsGoC and C++Python
- Practice
- Load testingObservability (ELK)Cost engineeringSupply-chain security
Contact
Infrastructure, identity, performance, or a second opinion on a cloud bill: write to me.
Or find me on GitHub.