Application Security

Same app. Different access.

Most of my commercial work lives in systems I can't share. I built this demo to give potential employers something they could explore for themselves, from the way it behaves on screen to the decisions behind it.

01

Three accounts, three perspectives

I chose a small consultation-booking application to make the idea easy to follow. It has two student accounts and an administrator.

Create a booking as one student, then switch to the other. The booking is no longer visible: both students have the same role, but each can only access their own records.

The administrator can see bookings from both accounts, but can't change them. That was a deliberate choice: needing an overview doesn't always mean needing permission to edit.

Compare student and administrator workspaces (Desktop)

Two students see their own bookings. The administrator can view both.
02

Ensuring the rules hold

Those permissions also need to hold when someone sends a request directly, outside the application's screen controls.

The server checks who is making the request, what they're allowed to do and which records they can access. The database applies its own restrictions, enforcing those boundaries independently.

I tested both permitted and forbidden actions, including attempts to access another student's booking, make changes as the administrator and attempts to alter cancelled bookings. Separate tests check the database rules directly, while automated integration tests exercise the application inside its production container.

Consultation requests pass through the visitor gate, role and ownership checks, then PostgreSQL row-level security and column grants.
Requests pass through the visitor gate, server checks and database policies. The visitor gate does not grant an application role.
03

Taking it live

Supabase was new to me. Its built-in account management and database tools gave me more time to focus on permissions and keeping what users see consistent with the underlying data.

I packaged the application in Docker and deployed it to Azure Container Apps. The infrastructure is defined in code, and GitHub Actions runs the checks and deployment process.

04

Key takeaways

Having worked with SQL Server, MySQL and SQLite, I particularly enjoyed PostgreSQL's control over individual records and columns. It was straightforward to configure at this scale, and I could see its value in larger systems where people need different levels of access to shared data.

I'd use PostgreSQL and Supabase again. The detailed controls earned their place here because permissions were central to the project; for an application with simpler needs, I'd be comfortable choosing a lighter setup.

05

Try it yourself

Open the demo using the live demo button at the top of the page, then choose an account to use. Then switch between the students and administrator to explore what each can see and do.

Demo account selector offering Student 01, Student 02 and Administrator accounts.
Choose an account to explore what each user can see and do.