mo khan

Senior Software Engineer · Identity & Access

Calgary, AB, Canada (remote) | [email protected] | linkedin.com/in/xlgmokha | github.com/xlgmokha | www.mokhan.ca

Summary

Software engineer since 2004, specializing in identity and access: SAML 2.0, SCIM 2.0, OpenID Connect and fine-grained authorization. Built the SAML identity provider behind single sign-on for Cisco Security, extended GitLab’s custom roles and permissions, and built SCIM 2.0 provisioning for Supabase Auth. Author of the open-source libraries saml-kit and scim-kit (435K+ combined downloads) and scim-go. Works mainly in Go and Ruby. Rehired by GitLab in 2023 and re-engaged by Supabase on contract in 2026. Available for contract work through Mo Khan Consulting.

Skills

Identity: SAML 2.0, SCIM 2.0, OpenID Connect, OAuth 2.0, JWT, TOTP · Authorization: custom roles and RBAC, Casbin, Cedar, SpiceDB · Languages: Go, Ruby, Python, C# · Data and APIs: PostgreSQL, GraphQL, REST

Employment History

Founder & Software Consultant, Mo Khan Consulting (Apr 2026 – Present)

Trade name of 2809074 Alberta Ltd. · Paused Jun – Sep 2026 for the full-time Supabase role below · Stack: Go, Ruby, Python, Agno

  • Supabase (client, Oct 2026, 2-week contract): finished the open-source scim-go library begun during the Supabase role below
  • Cenovus Energy (client, Apr – Jun 2026): built AI chat applications with Python and the Agno framework for the Health & Safety team, answering staff questions about the company’s incident management framework and related material; delivered and handed over in Jun 2026, before joining Supabase full time
  • elelem (own product, Oct 2026 – Present): building elelem.sh, a coding agent in Ruby that runs in the terminal and extends its agent loop with plugins

Senior Auth Engineer, Supabase · Auth (Jun 2026 – Sep 2026)

Stack: Go, PostgreSQL, SCIM 2.0

  • Built SCIM 2.0 provisioning for Supabase Auth so identity providers can push users and groups into SSO projects; shipped the experimental feature flag, discovery endpoints (/ServiceProviderConfig, /ResourceTypes, /Schemas), RFC 7644 error responses, the router and the SCIM tables (about 23 merged PRs)
  • Authored Users and Groups provisioning (supabase/auth#2747, approved, pending merge): create, replace, PATCH and soft delete; nested groups with cycle detection; SCIM filtering, sorting and pagination; ETag concurrency control; per-provider bearer tokens; admin endpoints; and a separate rate limit for IdP traffic
  • Created supabase-community/scim-go, an open-source Go SCIM library
  • Kept the Go service current and secure: Go 1.27 upgrade, patches for vulnerable dependencies, gosec and golangci-lint fixes, and clearer error logging

Senior Backend Engineer, GitLab · Authorization, Threat Insights (Jan 2023 – Feb 2026)

Second tenure at GitLab, over 4 years in total · Stack: Ruby on Rails, Go, PostgreSQL, GraphQL

  • Authorization (Oct 2023 – Feb 2026): extended GitLab’s custom roles with fine-grained permissions for merge request approval and administration, vulnerability management, dependency access, runner administration and Admin Area monitoring
  • Added the GraphQL API to delete member roles and to set permissions when creating them
  • Tightened default access by removing vulnerability administration from the Developer role, and enabled code search for users with only the read_code permission
  • Wrote the design proposal for low-privilege CI job tokens
  • Researched and prototyped a next-generation authorization architecture for GitLab in Go (2025, mostly in internal repositories), evaluating Cedar policies, SpiceDB and Envoy proxy integration; handed the work to a team to carry forward
  • Contributed to database sharding for GitLab’s Cells architecture: added and backfilled organization_id sharding keys on authorization and anti-abuse tables, and removed unused tables
  • Reviewed backend merge requests for the main GitLab codebase on the maintainer track; sped up the permission test suite
  • Threat Insights, vulnerability management (Jan – Oct 2023): built the backend for Explain Vulnerability, one of GitLab’s early generative AI features: GraphQL API, Vertex AI integration, response caching, prompt size limits and secret redaction
  • Added bulk vulnerability dismissal, merge requests created from findings, and automatic resolution of vulnerabilities a scanner no longer detects
  • Ingested software licenses into the SBOM and added license filtering, sorting and CSV export to the group-level Dependency List, with query optimizations (CTEs, N+1 fixes)

Senior Software Developer, Command Zero (May 2022 – Dec 2022)

Founding engineer at a stealth-mode security startup, recruited by a co-founder and former Sourcefire and Cisco leader · Stack: Go, Casbin, Auth0, OpenID Connect, JWT

  • Built the authentication proxy and API gateway in Go, secured with Auth0 (OpenID Connect), JWTs and Casbin policies
  • Built REST API endpoints to manage user permissions and membership so backend teams could prototype quickly

Senior Software Engineer II, HashiCorp · Terraform Cloud (Feb 2022 – Apr 2022)

Stack: Ruby on Rails, Ember.js, Go

  • Worked on managing Terraform Cloud team membership from an external identity provider, a requirement for a large enterprise deal
  • Added SSO team ID support to go-tfe, the Terraform Cloud Go client, and documented it in the Teams API docs
  • Collaborated in a working group on unifying HCP and Terraform Cloud authentication and authorization

Senior Software Engineer, GitHub · Dependabot (Feb 2021 – Feb 2022)

Stack: Ruby

  • Helped bring automated dependency updates (Dependabot) to GitHub Enterprise Server
  • Added Terraform private registry support to dependabot-core: service discovery, authorization headers, lock file parsing, and HCL2 compatibility; documented the configuration in GitHub Docs
  • Fixed ecosystem bugs in Poetry, npm and Go modules, added per-operation timeouts, and cut about 20 dependabot-core releases

Senior Software Engineer, Shopify · Subscriptions (Nov 2020 – Feb 2021)

Stack: Ruby on Rails

  • Added the /🦐it variant of Shopify’s /shipit slash command for deploying pull requests

Senior Backend Engineer, GitLab · Composition Analysis (Jul 2019 – Nov 2020)

Stack: Ruby, Ruby on Rails, Docker, Debian packaging

  • Built license scanning and license policy features: the LicenseFinder-based license analyzer (about 700 commits), the License-Check merge request approval rule, migration to SPDX license identifiers, and the license policy REST API
  • Added offline license scanning for air-gapped environments
  • Added license scanning for Conan, Mono, Pipenv and other ecosystems
  • Sped up CI pipelines for license scanning users by shrinking Docker images and maintaining Debian packages
  • Added FIPS-compatible CentOS support to container scanning

Software Engineer IV, Cisco · Advanced Malware Protection (AMP) (Sep 2013 – Jul 2019)

Joined Sourcefire Sep 2013, acquired by Cisco Oct 2013 · Stack: Ruby, Ruby on Rails, SAML 2.0, SCIM, TOTP

  • Worked on AMP for Endpoints, which protected 14M enterprise devices for 100+ Fortune 500 companies and governments
  • Built the identity provider for AMP, with SAML 2.0 single sign-on and TOTP 2-step verification; later expanded it into single sign-on for the whole Cisco Security Business Group
  • Integrated SAML single sign-on with customer identity providers, including Okta and Active Directory (ADFS); wrote up tracing a production SSO failure to a libxml2 schema-validation defect
  • Created saml-kit, xml-kit and scim-kit, open-source Ruby libraries that powered the identity provider
  • Used scim-kit to provision accounts from the order intake system into Threat Grid and other Cisco Security Business Group products
  • Built services that generated a custom XML policy, injected it into the Windows, macOS and Linux endpoint installers, and code-signed the installers so they were trusted at install time
  • Mentored colleagues through pair programming, presentations and hands-on support

Software Developer, Uppercut (Jan 2013 – Sep 2013)

Stack: Ruby on Rails, Spree, Ember.js

  • Developed the original version of fairgoods.com, a marketplace for makers, on a customized Spree e-commerce platform

C# Developer, ARC Resources (Jun 2009 – Dec 2012)

Stack: C#, ASP.NET MVC, WPF, Adobe Flash, Active Directory

  • Developed the compensation planning tool and the long-range model tool, plus other ASP.NET MVC and WPF applications
  • Built a visitor sign-in kiosk for the SMART touchscreen in the main reception area: visitors signed in, printed a badge, and the employee they were visiting was notified
  • Wrote a TUIO bridge that turned SMART Board touch events into TUIO packets over TCP for the Adobe Flash UI, replacing a vendor-supplied overlay that did not work; backend was ASP.NET MVC integrated with Active Directory

Software Developer, eCompliance (Apr 2008 – Jun 2009)

Stack: C#, NHibernate, ASP.NET MVC, Windows Forms, SVN

  • Rejoined the former MediaLogic team after eCompliance’s founders acquired it, continuing development of the Audit Tool used by health & safety auditors in the field
  • Built the web dashboard and the action items feature for managing due diligence on audit findings
  • Built the license purchasing system for the Audit Tool over a single weekend in December 2008

Consultant, ThoughtWorks (Jan 2008 – Apr 2008)

Stack: C#, SQL Server

  • Placed at TransCanada Pipelines, working on their Alberta Gas Accounting software

C# Developer, MediaLogic (Jan 2007 – Jan 2008)

Client: eCompliance · Stack: C#, Windows Forms

  • Built the initial version of the eCompliance Audit Tool, a Windows Forms application health & safety auditors used to complete audits in the field

C Programmer, Data Shapers (Jun 2004 – Dec 2006)

Stack: C, Ingenico, Techtrex, Verifone and Hypercom POS terminals

  • Developed gift card and loyalty applications (Incentus) for point-of-sale terminals used by small businesses

Earlier Employment

Ventures

Co-founder, CakeSide (2011–2017)

Mornings, evenings and weekends, outside full-time roles · Stack: Ruby on Rails, PostgreSQL

  • Built and ran cakeside.com, a free community site where cake decorators shared their creations and ideas; wrote about 2,900 of 3,000 commits to the Rails codebase

Open Source

Community & Teaching

2021–2022 · Volunteer curriculum author and instructor, CodeChica++ with Latinitas, an Austin, Texas nonprofit for girls in media and technology

Talks & Media

Education & Certifications