SVN Access Gateway
An access layer over 94 SVN art repositories with folder-level permissions, Microsoft Entra ID sign-in, atomic uploads, and a history of every change.
- Scope
- Web App, Access Control, Internal Tools
- Role
- DevOps Intern
- Client
- PT Agate International
- Year
- 2026
Overview
Agate keeps its production art in Subversion, spread across 94 repositories. SVN Access Gateway lets people browse, upload, rename, move, delete, and restore those files from a browser, without an SVN account of their own.
All SVN operations run through one service account. The app, not SVN, decides who can open which folder, so access can be granted in seconds and the reason someone can see a folder fits in one line.
Challenge
Vendors used to receive files through public file-sharing services, or got a direct SVN account with write access to production repositories. Those accounts were hard to scope and hard to revoke.
After a leak, nobody could answer a simple question: who downloaded this file? The new system had to make access easy to give, easy to take back, and fully traceable, without routing every request through the IT team.
Approach
I wrote the PRD and recorded each design decision as an ADR, then directed AI coding agents to build the app with Next.js, MySQL, and Kysely, checking every change with automated tests. Partway through, I dropped an approval-heavy vendor portal design in favour of a simpler file browser with access control.
There are three roles: super admin, folder admin, and user, with View, Contribute, and Edit permissions that flow down to subfolders. Every access check goes through one pure function, and the SVN module only accepts paths that passed it, a rule TypeScript enforces at compile time. Uploads talk to SVN's HTTP protocol directly, so a batch of files lands as one atomic commit with the user's email in the message. Staff sign in with Microsoft Entra ID, and vendors use email and password.
Outcome
Access can now be granted or revoked instantly, and the History page records every upload, download, change, and permission edit with the person who made it, exportable to CSV. Deleted files can be restored from their last revision, so file history stays connected.
The app ships as a non-root Docker image through GitLab CI and is covered by more than 700 automated tests, from unit and component tests to integration tests against MySQL and a test SVN server.
LET'S WORK TOGETHER
akmalzaidan960@gmail.com


