# Two front doors: Module-level access in a Django GRC app

DevFeed: [Two front doors: Module-level access in a Django GRC app](<https://devfeed.tech/articles/two-front-doors-module-level-access-in-a-django-grc-app-65155.md>)

Original publisher: [Read original article](<https://about.gitlab.com/blog/module-level-access-in-a-django-grc-app/>)

Author: Donovan Felton

Published: 2026-10-05T00:00:00Z

Content type: tutorial

Language: en

Sources: [GitLab](<https://devfeed.tech/sources/gitlab.md>)

Topics: [Django](<https://devfeed.tech/topics/django.md>), [Access Control](<https://devfeed.tech/topics/access-control.md>), [Single sign-on (SSO)](<https://devfeed.tech/topics/sso.md>)

Tags: [authorization](<https://devfeed.tech/tags/authorization.md>), [community](<https://devfeed.tech/tags/community.md>), [django](<https://devfeed.tech/tags/django.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [internal-tooling](<https://devfeed.tech/tags/internal-tooling.md>), [security](<https://devfeed.tech/tags/security.md>)

## AI overview

The article describes restructuring an internal Django GRC tool into a shared core with separate module apps for Security Compliance and Internal Audit. It uses Django group membership enforced in views and the REST API to keep sensitive data separated, while a template filter controls which navigation links appear.

## Source excerpt

GitLab's engineering team builds a lot of our own internal tooling, but one platform in particular forced us to rethink how we handle authorization: our internal GRC tool that serves two very different customer bases under one roof -- our Security Compliance team and our Internal Audit team. If you're building or maintaining an internal Django tool that's starting to serve more than one audience -- different teams, different data classification levels, different data that shouldn't cross streams -- this post walks through the problem we hit, how we solved it, and how you can apply the same pattern to your own app. The challenge Our original tool was a single Django app built for the Security Compliance team with login_required on every view. This was the correct approach until Internal Audit found a new use case for our tool that would include a completely separate workflow, with its own data, its own models, and its own sensitive information that Security Compliance should not see. login_required answers exactly one question: Are you logged in? It doesn't answer the question that actually matters in a multi-tenant internal tool: Are you allowed to be here? An authenticated Security Compliance user hitting an Internal Audit URL waltzed right past the login check and into data they were never supposed to see. If your app has ever grown a second audience after the fact, this probably sounds familiar. The question worth asking yourself right now is simple: Does every view in your app check who the user is, or just whether they're logged in? If it's the latter, you likely have the same gap we did. We needed clean separation -- not "pay no attention to this button over here," but an enforced boundary that holds regardless of what URL someone types in. The architectural decision When Internal Audit's use case landed on our roadmap, we had the classic fork in the road: Bolt it onto the existing app or restructure? We restructured. The result is a core Django project -- shared a