Dev Raj Dungana

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

Dev Raj Dungana in profile, looking left, hand resting on chin.
Fig. 1 The author, thinking about connection pools.
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 feed

The first writeups are on the bench. Subscribe to the feed to catch them.

Open source

github.com/devdgna

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.

hello@5-1.dev

Or find me on GitHub.