[{"data":1,"prerenderedAt":990},["ShallowReactive",2],{"/blog/categories/engineering/page/35":3,"navigation-en-us":20,"banner-en-us":458,"footer-en-us":466,"engineering-category-page-total-items-en-us":713,"engineering-category-page-featured-en-us":714,"engineering-category-page-35-en-us":926},{"id":4,"title":5,"body":6,"category":6,"config":7,"content":11,"description":6,"extension":12,"meta":13,"navigation":14,"path":15,"seo":16,"slug":6,"stem":18,"testContent":6,"type":6,"__hash__":19},"blogCategories/en-us/blog/categories/engineering.yml","Engineering",null,{"template":8,"slug":9,"hide":10},"BlogCategory","engineering",false,{"name":5},"yml",{},true,"/en-us/blog/categories/engineering",{"title":5,"description":17},"Browse articles related to Engineering on the GitLab Blog","en-us/blog/categories/engineering","8bG3OWoOqnd0RUuGte8_Pd1CHzJY7KSrgk1_B9fzJ8M",{"logo":21,"freeTrial":26,"sales":31,"login":36,"items":41,"search":377,"minimal":409,"duo":428,"switchNav":437,"pricingDeployment":448},{"config":22},{"href":23,"dataGaName":24,"dataGaLocation":25},"/","gitlab logo","header",{"text":27,"config":28},"Get free trial",{"href":29,"dataGaName":30,"dataGaLocation":25},"https://gitlab.com/-/trial_registrations/new?glm_source=about.gitlab.com&glm_content=default-saas-trial/","free trial",{"text":32,"config":33},"Request a demo",{"href":34,"dataGaName":35,"dataGaLocation":25},"/request-a-demo/","sales",{"text":37,"config":38},"Sign in",{"href":39,"dataGaName":40,"dataGaLocation":25},"https://gitlab.com/users/sign_in/","sign in",[42,128,216,221,301,355],{"text":43,"left":14,"config":44,"menu":46},"Platform",{"dataNavLevelOne":45},"platform",{"type":47,"link":48,"columns":52,"feature":117},"lists",{"text":49,"config":50},"Explore the Platform",{"href":51,"dataGaName":45,"dataGaLocation":25},"/platform/",[53,76,99],{"title":54,"items":55},"DevOps",[56,61,66,71],{"text":57,"config":58},"CI/CD",{"href":59,"dataGaLocation":25,"dataGaName":60},"/solutions/continuous-integration/","ci/cd",{"text":62,"config":63},"Source Code Management",{"href":64,"dataGaLocation":25,"dataGaName":65},"/solutions/source-code-management/","source code management",{"text":67,"config":68},"Agile Delivery",{"href":69,"dataGaLocation":25,"dataGaName":70},"/solutions/agile-delivery/","agile delivery",{"text":72,"config":73},"Artifact Management",{"href":74,"dataGaLocation":25,"dataGaName":75},"/artifact-central/","artifact management",{"title":77,"items":78},"Security & Governance",[79,84,89,94],{"text":80,"config":81},"Application Security Testing",{"href":82,"dataGaLocation":25,"dataGaName":83},"/solutions/application-security-testing/","application security testing",{"text":85,"config":86},"Governance & Compliance",{"href":87,"dataGaLocation":25,"dataGaName":88},"/solutions/software-compliance/","governance and compliance",{"text":90,"config":91},"Secrets Management",{"href":92,"dataGaLocation":25,"dataGaName":93},"/gitlab-secrets-manager/","secrets management",{"text":95,"config":96},"Supply Chain Security",{"href":97,"dataGaLocation":25,"dataGaName":98},"/solutions/supply-chain/","supply chain security",{"title":100,"items":101},"Agentic AI & Context",[102,107,112],{"text":103,"config":104},"Duo Agent Platform",{"href":105,"dataGaLocation":25,"dataGaName":106},"/gitlab-duo-agent-platform/","duo agent platform",{"text":108,"config":109},"Orbit Context Graph",{"href":110,"dataGaLocation":25,"dataGaName":111},"/gitlab-orbit/","orbit",{"text":113,"config":114},"Visibility & Measurement",{"href":115,"dataGaLocation":25,"dataGaName":116},"/solutions/visibility-measurement/","visibility and measurement",{"config":118,"title":121,"text":122,"link":123},{"background":119,"textColor":120},"url('https://res.cloudinary.com/about-gitlab-com/image/upload/v1790185102/o7dn32anqcb6z8dgd3as.jpg')","#000","GitLab Orbit is generally available","Higher agent accuracy, lower token cost",{"text":124,"config":125},"Read the announcement",{"href":126,"dataGaName":127,"dataGaLocation":25},"/blog/gitlab-orbit-ga/","orbit ga announcement",{"text":129,"left":14,"config":130,"menu":132},"Solutions",{"dataNavLevelOne":131},"solutions",{"type":47,"link":133,"columns":137,"feature":207},{"text":134,"config":135},"View all Solutions",{"href":136,"dataGaName":131,"dataGaLocation":25},"/solutions/",[138,156,174],{"title":139,"items":140},"Outcomes",[141,146,151],{"text":142,"config":143},"DevOps Modernization",{"href":144,"dataGaLocation":25,"dataGaName":145},"/assessments/devops-modernization-assessment/","devops modernization",{"text":147,"config":148},"Security Modernization",{"href":149,"dataGaLocation":25,"dataGaName":150},"/assessments/security-modernization-assessment/","security modernization",{"text":152,"config":153},"AI Modernization",{"href":154,"dataGaLocation":25,"dataGaName":155},"/assessments/ai-modernization-assessment/","ai modernization",{"title":157,"items":158},"By size",[159,164,169],{"text":160,"config":161},"Enterprise",{"href":162,"dataGaLocation":25,"dataGaName":163},"/enterprise/","enterprise",{"text":165,"config":166},"Small Business",{"href":167,"dataGaLocation":25,"dataGaName":168},"/small-business/","small business",{"text":170,"config":171},"Startups",{"href":172,"dataGaLocation":25,"dataGaName":173},"/solutions/startups/","startups",{"title":175,"items":176},"Industries",[177,182,187,192,197,202],{"text":178,"config":179},"Financial Services",{"href":180,"dataGaLocation":25,"dataGaName":181},"/solutions/finance/","financial services",{"text":183,"config":184},"Public Sector",{"href":185,"dataGaLocation":25,"dataGaName":186},"/solutions/public-sector/","public sector",{"text":188,"config":189},"Telecommunications",{"href":190,"dataGaLocation":25,"dataGaName":191},"/solutions/telecommunications/","telecommunications",{"text":193,"config":194},"Automotive",{"href":195,"dataGaLocation":25,"dataGaName":196},"/solutions/automotive/","automotive",{"text":198,"config":199},"Education",{"href":200,"dataGaLocation":25,"dataGaName":201},"/solutions/education/","education",{"text":203,"config":204},"Aerospace",{"href":205,"dataGaLocation":25,"dataGaName":206},"/solutions/aerospace/","aerospace",{"config":208,"title":209,"text":210,"link":211},{"background":119,"textColor":120},"GitLab Security Standard","Learn how to harden your software factory and let AI agents earn autonomy, without trading away security.",{"text":212,"config":213},"Explore the standard",{"href":214,"dataGaName":215,"dataGaLocation":25},"/gitlab-security-standard/","gitlab security standard",{"text":217,"config":218},"Pricing",{"href":219,"dataGaName":220,"dataGaLocation":25,"dataNavLevelOne":220},"/pricing/","pricing",{"text":222,"config":223,"menu":225},"Resources",{"dataNavLevelOne":224},"resources",{"type":47,"link":226,"columns":230,"feature":292},{"text":227,"config":228},"View all resources",{"href":229,"dataGaName":224,"dataGaLocation":25},"/resources/",[231,264],{"title":232,"items":233},"Discover",[234,239,244,249,254,259],{"text":235,"config":236},"Docs",{"href":237,"dataGaName":238,"dataGaLocation":25},"https://docs.gitlab.com/","docs",{"text":240,"config":241},"University",{"href":242,"dataGaName":243,"dataGaLocation":25},"https://university.gitlab.com/","university",{"text":245,"config":246},"Demo Series",{"href":247,"dataGaName":248,"dataGaLocation":25},"/gitlab-technical-demo-series/","demo series",{"text":250,"config":251},"Demo Hub",{"href":252,"dataGaName":253,"dataGaLocation":25},"/demo-hub/","demo hub",{"text":255,"config":256},"Services",{"href":257,"dataGaName":258,"dataGaLocation":25},"/services/","services",{"text":260,"config":261},"Well Architected",{"href":262,"dataGaName":263,"dataGaLocation":25},"/resources/well-architected/","well architected",{"title":265,"items":266},"Connect",[267,272,277,282,287],{"text":268,"config":269},"Blog",{"href":270,"dataGaName":271,"dataGaLocation":25},"/blog/","blog",{"text":273,"config":274},"Community",{"href":275,"dataGaName":276,"dataGaLocation":25},"/community/","community",{"text":278,"config":279},"Customers",{"href":280,"dataGaName":281,"dataGaLocation":25},"/customers/","customers",{"text":283,"config":284},"Partners",{"href":285,"dataGaName":286,"dataGaLocation":25},"/partners/","partners",{"text":288,"config":289},"Events",{"href":290,"dataGaName":291,"dataGaLocation":25},"/events/","events",{"config":293,"title":294,"text":295,"link":296},{"background":119,"textColor":120},"What’s new in GitLab","Stay updated with our latest features and improvements.",{"text":297,"config":298},"Read the latest",{"href":299,"dataGaName":300,"dataGaLocation":25},"/whats-new/","whats new",{"text":302,"config":303,"menu":305},"Company",{"dataNavLevelOne":304},"company",{"type":47,"columns":306},[307],{"items":308},[309,314,320,325,330,335,340,345,350],{"text":310,"config":311},"About",{"href":312,"dataGaName":313,"dataGaLocation":25},"/company/","about",{"text":315,"config":316,"footerGa":319},"Jobs",{"href":317,"dataGaName":318,"dataGaLocation":25},"/jobs/","jobs",{"dataGaName":318},{"text":321,"config":322},"Press",{"href":323,"dataGaName":324,"dataGaLocation":25},"/press/","press",{"text":326,"config":327},"Handbook",{"href":328,"dataGaName":329,"dataGaLocation":25},"https://handbook.gitlab.com/","handbook",{"text":331,"config":332},"Leadership",{"href":333,"dataGaName":334,"dataGaLocation":25},"/company/team/e-group/","leadership",{"text":336,"config":337},"Investor relations",{"href":338,"dataGaName":339,"dataGaLocation":25},"https://ir.gitlab.com/overview/default.aspx","investor relations",{"text":341,"config":342},"Trust Center",{"href":343,"dataGaName":344,"dataGaLocation":25},"/security/","trust center",{"text":346,"config":347},"AI Transparency Center",{"href":348,"dataGaName":349,"dataGaLocation":25},"/ai-transparency-center/","ai transparency center",{"text":351,"config":352},"Newsletter",{"href":353,"dataGaName":354,"dataGaLocation":25},"/company/contact/#contact-forms","newsletter",{"text":356,"config":357,"menu":358},"Contact us",{"dataNavLevelOne":304},{"type":47,"columns":359},[360],{"items":361},[362,367,372],{"text":363,"config":364},"Talk to sales",{"href":365,"dataGaName":366,"dataGaLocation":25},"/sales/","talk to sales",{"text":368,"config":369},"Support portal",{"href":370,"dataGaName":371,"dataGaLocation":25},"https://support.gitlab.com/hc/en-us","support portal",{"text":373,"config":374},"Customer portal",{"href":375,"dataGaName":376,"dataGaLocation":25},"https://customers.gitlab.com/customers/sign_in/","customer portal",{"close":378,"login":379,"suggestions":386},"Close",{"text":380,"link":381},"To search repositories and projects, login to",{"text":382,"config":383},"gitlab.com",{"href":39,"dataGaName":384,"dataGaLocation":385},"search login","search",{"text":387,"default":388},"Suggestions",[389,392,395,397,401,405],{"text":390,"config":391},"GitLab Duo Agent Platform",{"href":105,"dataGaName":390,"dataGaLocation":385},{"text":393,"config":394},"Code Suggestions (AI)",{"href":105,"dataGaName":393,"dataGaLocation":385},{"text":57,"config":396},{"href":59,"dataGaName":57,"dataGaLocation":385},{"text":398,"config":399},"GitLab on AWS",{"href":400,"dataGaName":398,"dataGaLocation":385},"/partners/technology-partners/aws/",{"text":402,"config":403},"GitLab on Google Cloud",{"href":404,"dataGaName":402,"dataGaLocation":385},"/partners/technology-partners/google-cloud-platform/",{"text":406,"config":407},"Why GitLab?",{"href":408,"dataGaName":406,"dataGaLocation":385},"/why-gitlab/",{"freeTrial":410,"mobileIcon":415,"desktopIcon":420,"secondaryButton":423},{"text":411,"config":412},"Start free trial",{"href":413,"dataGaName":30,"dataGaLocation":414},"https://gitlab.com/-/trials/new/","nav",{"altText":416,"config":417},"Gitlab Icon",{"src":418,"dataGaName":419,"dataGaLocation":414},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203874/jypbw1jx72aexsoohd7x.svg","gitlab icon",{"altText":416,"config":421},{"src":422,"dataGaName":419,"dataGaLocation":414},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203875/gs4c8p8opsgvflgkswz9.svg",{"text":424,"config":425},"Get Started",{"href":426,"dataGaName":427,"dataGaLocation":414},"https://gitlab.com/-/trial_registrations/new?glm_source=about.gitlab.com/get-started/","get started",{"freeTrial":429,"mobileIcon":433,"desktopIcon":435},{"text":430,"config":431},"Learn more about GitLab Duo",{"href":105,"dataGaName":432,"dataGaLocation":414},"gitlab duo",{"altText":416,"config":434},{"src":418,"dataGaName":419,"dataGaLocation":414},{"altText":416,"config":436},{"src":422,"dataGaName":419,"dataGaLocation":414},{"button":438,"mobileIcon":443,"desktopIcon":445},{"text":439,"config":440},"/switch",{"href":441,"dataGaName":442,"dataGaLocation":414},"#contact","switch",{"altText":416,"config":444},{"src":418,"dataGaName":419,"dataGaLocation":414},{"altText":416,"config":446},{"src":447,"dataGaName":419,"dataGaLocation":414},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1773335277/ohhpiuoxoldryzrnhfrh.png",{"freeTrial":449,"mobileIcon":454,"desktopIcon":456},{"text":450,"config":451},"Back to pricing",{"href":219,"dataGaName":452,"dataGaLocation":414,"icon":453},"back to pricing","GoBack",{"altText":416,"config":455},{"src":418,"dataGaName":419,"dataGaLocation":414},{"altText":416,"config":457},{"src":422,"dataGaName":419,"dataGaLocation":414},{"title":459,"button":460,"config":464},"GitLab Orbit is generally available. Increase agent accuracy and lower token cost",{"text":124,"config":461},{"href":126,"dataGaName":462,"dataGaLocation":463},"orbit-ga-banner","global-banner",{"layout":465,"disabled":10},"release",{"data":467},{"text":468,"config":469,"items":474,"minimal":702},"Git is a trademark of Software Freedom Conservancy and our use of 'GitLab' is under license",{"twitter":470,"facebook":471,"youtube":472,"linkedin":473},"https://twitter.com/gitlab","https://www.facebook.com/gitlab","https://www.youtube.com/channel/UCnMGQ8QHMAnVIsI3xJrihhg","https://www.linkedin.com/company/gitlab-com",[475,523,582,629,670],{"title":217,"links":476,"subMenu":492},[477,482,487],{"text":478,"config":479},"View plans",{"href":219,"dataGaName":480,"dataGaLocation":481},"view plans","footer",{"text":483,"config":484},"Why Premium?",{"href":485,"dataGaName":486,"dataGaLocation":481},"/pricing/premium/","why premium",{"text":488,"config":489},"Why Ultimate?",{"href":490,"dataGaName":491,"dataGaLocation":481},"/pricing/ultimate/","why ultimate",[493],{"title":494,"links":495},"Contact Us",[496,499,501,503,508,513,518],{"text":497,"config":498},"Contact sales",{"href":365,"dataGaName":35,"dataGaLocation":481},{"text":368,"config":500},{"href":370,"dataGaName":371,"dataGaLocation":481},{"text":373,"config":502},{"href":375,"dataGaName":376,"dataGaLocation":481},{"text":504,"config":505},"Status",{"href":506,"dataGaName":507,"dataGaLocation":481},"https://status.gitlab.com/","status",{"text":509,"config":510},"Terms of use",{"href":511,"dataGaName":512,"dataGaLocation":481},"/terms/","terms of use",{"text":514,"config":515},"Privacy statement",{"href":516,"dataGaName":517,"dataGaLocation":481},"/privacy/","privacy statement",{"text":519,"config":520},"Cookie preferences",{"dataGaName":521,"dataGaLocation":481,"id":522,"isOneTrustButton":14},"cookie preferences","ot-sdk-btn",{"title":43,"links":524,"subMenu":540},[525,528,530,532,534,536],{"text":526,"config":527},"Explore the platform",{"href":51,"dataGaName":45,"dataGaLocation":481},{"text":103,"config":529},{"href":105,"dataGaName":106,"dataGaLocation":481},{"text":57,"config":531},{"href":59,"dataGaName":60,"dataGaLocation":481},{"text":108,"config":533},{"href":110,"dataGaName":111,"dataGaLocation":481},{"text":90,"config":535},{"href":92,"dataGaName":93,"dataGaLocation":481},{"text":537,"config":538},"Why GitLab",{"href":408,"dataGaName":539,"dataGaLocation":481},"why gitlab",[541],{"title":542,"links":543},"Topics",[544,548,553,557,562,567,572,577],{"text":57,"config":545},{"href":546,"dataGaName":547,"dataGaLocation":481},"/topics/ci-cd/","cicd",{"text":549,"config":550},"GitOps",{"href":551,"dataGaName":552,"dataGaLocation":481},"/topics/gitops/","gitops",{"text":54,"config":554},{"href":555,"dataGaName":556,"dataGaLocation":481},"/topics/devops/","devops",{"text":558,"config":559},"Version Control",{"href":560,"dataGaName":561,"dataGaLocation":481},"/topics/version-control/","version control",{"text":563,"config":564},"DevSecOps",{"href":565,"dataGaName":566,"dataGaLocation":481},"/topics/devsecops/","devsecops",{"text":568,"config":569},"Cloud Native",{"href":570,"dataGaName":571,"dataGaLocation":481},"/topics/cloud-native/","cloud native",{"text":573,"config":574},"AI for Coding",{"href":575,"dataGaName":576,"dataGaLocation":481},"/topics/devops/ai-for-coding/","ai for coding",{"text":578,"config":579},"Agentic AI",{"href":580,"dataGaName":581,"dataGaLocation":481},"/topics/agentic-ai/","agentic ai",{"title":129,"links":583},[584,587,590,593,596,599,601,603,605,607,609,612,614,617,621,625],{"text":585,"config":586},"DevOps modernization",{"href":144,"dataGaName":145,"dataGaLocation":481},{"text":588,"config":589},"Security modernization",{"href":149,"dataGaName":150,"dataGaLocation":481},{"text":591,"config":592},"AI modernization",{"href":154,"dataGaName":155,"dataGaLocation":481},{"text":594,"config":595},"Financial services",{"href":180,"dataGaName":181,"dataGaLocation":481},{"text":597,"config":598},"Public sector",{"href":185,"dataGaName":186,"dataGaLocation":481},{"text":188,"config":600},{"href":190,"dataGaName":191,"dataGaLocation":481},{"text":193,"config":602},{"href":195,"dataGaName":196,"dataGaLocation":481},{"text":198,"config":604},{"href":200,"dataGaName":201,"dataGaLocation":481},{"text":203,"config":606},{"href":205,"dataGaName":206,"dataGaLocation":481},{"text":160,"config":608},{"href":162,"dataGaName":163,"dataGaLocation":481},{"text":610,"config":611},"Small business",{"href":167,"dataGaName":168,"dataGaLocation":481},{"text":170,"config":613},{"href":172,"dataGaName":173,"dataGaLocation":481},{"text":549,"config":615},{"href":616,"dataGaName":552,"dataGaLocation":481},"/solutions/gitops/",{"text":618,"config":619},"Software composition analysis",{"href":97,"dataGaName":620,"dataGaLocation":481},"software composition analysis",{"text":622,"config":623},"Value stream management",{"href":115,"dataGaName":624,"dataGaLocation":481},"value stream management",{"text":626,"config":627},"All solutions",{"href":136,"dataGaName":628,"dataGaLocation":481},"all solutions",{"title":222,"links":630},[631,636,641,643,645,647,649,651,653,655,657,659,661,663,666],{"text":632,"config":633},"Install",{"href":634,"dataGaName":635,"dataGaLocation":481},"/install/","install",{"text":637,"config":638},"Quick start guides",{"href":639,"dataGaName":640,"dataGaLocation":481},"/get-started/","quick setup checklists",{"text":235,"config":642},{"href":237,"dataGaName":238,"dataGaLocation":481},{"text":240,"config":644},{"href":242,"dataGaName":243,"dataGaLocation":481},{"text":245,"config":646},{"href":247,"dataGaName":248,"dataGaLocation":481},{"text":250,"config":648},{"href":252,"dataGaName":253,"dataGaLocation":481},{"text":255,"config":650},{"href":257,"dataGaName":258,"dataGaLocation":481},{"text":268,"config":652},{"href":270,"dataGaName":271,"dataGaLocation":481},{"text":273,"config":654},{"href":275,"dataGaName":276,"dataGaLocation":481},{"text":278,"config":656},{"href":280,"dataGaName":281,"dataGaLocation":481},{"text":283,"config":658},{"href":285,"dataGaName":286,"dataGaLocation":481},{"text":288,"config":660},{"href":290,"dataGaName":291,"dataGaLocation":481},{"text":351,"config":662},{"href":353,"dataGaName":354,"dataGaLocation":481},{"text":664,"config":665},"What's new",{"href":299,"dataGaName":300,"dataGaLocation":481},{"text":667,"config":668},"All resources",{"href":229,"dataGaName":669,"dataGaLocation":481},"all resources",{"title":302,"links":671},[672,674,676,678,680,682,684,686,688,692,697],{"text":310,"config":673},{"href":312,"dataGaName":304,"dataGaLocation":481},{"text":315,"config":675},{"href":317,"dataGaName":318,"dataGaLocation":481},{"text":321,"config":677},{"href":323,"dataGaName":324,"dataGaLocation":481},{"text":326,"config":679},{"href":328,"dataGaName":329,"dataGaLocation":481},{"text":331,"config":681},{"href":333,"dataGaName":334,"dataGaLocation":481},{"text":336,"config":683},{"href":338,"dataGaName":339,"dataGaLocation":481},{"text":341,"config":685},{"href":343,"dataGaName":344,"dataGaLocation":481},{"text":346,"config":687},{"href":348,"dataGaName":349,"dataGaLocation":481},{"text":689,"config":690},"Sustainability",{"href":691,"dataGaName":689,"dataGaLocation":481},"/sustainability/",{"text":693,"config":694},"Diversity, inclusion and belonging (DIB)",{"href":695,"dataGaName":696,"dataGaLocation":481},"/diversity-inclusion-belonging/","Diversity, inclusion and belonging",{"text":698,"config":699},"Modern Slavery Transparency Statement",{"href":700,"dataGaName":701,"dataGaLocation":481},"https://handbook.gitlab.com/handbook/legal/modern-slavery-act-transparency-statement/","modern slavery transparency statement",{"items":703},[704,707,710],{"text":705,"config":706},"Terms",{"href":511,"dataGaName":512,"dataGaLocation":481},{"text":708,"config":709},"Cookies",{"dataGaName":521,"dataGaLocation":481,"id":522,"isOneTrustButton":14},{"text":711,"config":712},"Privacy",{"href":516,"dataGaName":517,"dataGaLocation":481},487,{"id":715,"title":716,"authors":717,"body":719,"category":9,"date":913,"description":914,"extension":915,"externalUrl":6,"faq":6,"featured":10,"heroImage":916,"hidePromo":10,"meta":917,"navigation":14,"path":918,"seo":919,"slug":921,"stem":922,"tags":923,"template":924,"updatedDate":6,"__hash__":925},"blogPosts/en-us/blog/module-level-access-in-a-django-grc-app.md","Two front doors: Module-level access in a Django GRC app",[718],"Donovan Felton",{"type":720,"value":721,"toc":903},"minimark",[722,726,729,734,742,747,750,753,757,760,763,766,770,773,776,780,791,797,812,817,828,831,835,838,841,844,870,874],[723,724,725],"p",{},"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.",[723,727,728],{},"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.",[730,731,733],"h2",{"id":732},"the-challenge","The challenge",[723,735,736,737,741],{},"Our original tool was a single Django app built for the Security Compliance team with ",[738,739,740],"code",{},"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.",[723,743,744,746],{},[738,745,740],{}," 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.",[723,748,749],{},"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.",[723,751,752],{},"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.",[730,754,756],{"id":755},"the-architectural-decision","The architectural decision",[723,758,759],{},"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.",[723,761,762],{},"The result is a core Django project — shared auth, user management, audit logging, base UI components — with two independent module apps sitting on top of it. One is for Security Compliance and one is for Internal Audit. Each module owns its own models, views, and API surface.",[723,764,765],{},"The constraint we imposed on ourselves, and the one that made this whole thing worth writing about was that core has zero knowledge of compliance or internal audit data. Either module can depend on core. Neither module should depend on the other. That constraint keeps this from becoming two apps stitched together with duct tape and super glue.",[730,767,769],{"id":768},"access-control","Access control",[723,771,772],{},"We're a compliance engineering subdivision building a tool that stores sensitive compliance and risk data. Sloppy access control here isn't just a bug, it's a serious credibility problem.",[723,774,775],{},"Our design decision was to use something already native to Django: the built-in auth system. Each module maps to exactly one group. A user can belong to one group, both, or neither, and the system enforces the right separation of duty at every layer regardless of which combination applies. The navigation UI, the Django views, and the REST API each independently enforce group membership.",[730,777,779],{"id":778},"the-implementation","The implementation",[723,781,782,783,786,787,790],{},"There is one reusable class in core that both modules inherit from: ",[738,784,785],{},"GroupRequiredMixin",". It checks group membership and raises ",[738,788,789],{},"PermissionDenied"," if the user isn't in the required group.",[723,792,793],{},[794,795,796],"strong",{},"Module-level subclasses",[723,798,799,800,803,804,807,808,811],{},"Each module gets a three-line subclass that sets ",[738,801,802],{},"required_group_name"," — a ",[738,805,806],{},"GasGroupRequiredMixin"," and an ",[738,809,810],{},"IsGasGroupMember"," for the Security Compliance side, with the same pattern repeating for Internal Audit. That's the whole cost of adding a module's enforcement layer: one new file, one new attribute. The actual checking logic lives in core and never gets touched again.",[723,813,814],{},[794,815,816],{},"The UI layer",[723,818,819,820,823,824,827],{},"Finally, there is a template filter, ",[738,821,822],{},"user_in_group",", so navigation only renders what a user is actually allowed to view. It wraps a check like ",[738,825,826],{},"user|user_in_group:'erm'"," around any nav block that should only show up for ERM members.",[723,829,830],{},"This is a UX guard, not a security boundary. Hiding a navigation link doesn't stop anyone from typing the URL directly. That's what the mixins and the Django REST Framework permission class are for. The template filter just keeps the UI honest about what a given user can see and do.",[730,832,834],{"id":833},"whats-next-for-us-and-where-you-could-start","What's next for us - and where you could start",[723,836,837],{},"Step back out to the platform level and the payoff is that this is a repeatable pattern that is module- and team-agnostic. A hypothetical third module — a vendor risk workflow, an audit management module, whatever comes next — inherits the same access control structure, the same audit trail, and the same shared authentication without a single new line of enforcement logic. The cost of a new module becomes almost entirely a business requirement, not infrastructure scaffolding.",[723,839,840],{},"That's the bet we made: Build the foundation once and let every future module ride on top of it instead of reinventing access control from scratch.",[723,842,843],{},"If you want to try this in your own app, here's roughly the order we'd suggest:",[845,846,847,858,861,867],"ol",{},[848,849,850,851,853,854,857],"li",{},"Check your views for the login-versus-authorization gap. Grep for ",[738,852,740],{}," and ",[738,855,856],{},"LoginRequiredMixin"," and ask, for each one, whether it's actually guarding sensitive data from other authenticated users — not just anonymous ones.",[848,859,860],{},"Draw the module boundary before you write code. Decide what's genuinely shared (auth, base UI, logging) versus what belongs to one audience only.",[848,862,863,864,866],{},"Write one mixin, not one per view. A single ",[738,865,785],{}," in your core app, subclassed per module, means your enforcement logic has exactly one place to be reviewed and one place to be wrong.",[848,868,869],{},"Enforce at every layer independently — views, API, and navigation — so hiding a link is never your only line of defense.",[730,871,873],{"id":872},"references","References",[875,876,877,885,896],"ul",{},[848,878,879],{},[880,881,884],"a",{"href":882,"rel":883},"https://docs.djangoproject.com/en/stable/topics/auth/default/",[],"Django authentication system — Using the Django authentication system",[848,886,887],{},[880,888,891,892,895],{"href":889,"rel":890},"https://docs.djangoproject.com/en/stable/topics/auth/default/#the-loginrequired-mixin",[],"Django class-based views — Using ",[738,893,894],{},"UserPassesTestMixin"," / permission mixins",[848,897,898],{},[880,899,902],{"href":900,"rel":901},"https://www.django-rest-framework.org/api-guide/permissions/",[],"Django REST Framework — Permissions",{"title":904,"searchDepth":905,"depth":905,"links":906},"",2,[907,908,909,910,911,912],{"id":732,"depth":905,"text":733},{"id":755,"depth":905,"text":756},{"id":768,"depth":905,"text":769},{"id":778,"depth":905,"text":779},{"id":833,"depth":905,"text":834},{"id":872,"depth":905,"text":873},"2026-10-05","A technical deep-dive on restructuring a Django internal tool to support two distinct GitLab teams: Security Compliance and Internal Audit.","md","https://res.cloudinary.com/about-gitlab-com/image/upload/v1750097663/Blog/Hero%20Images/Blog/Hero%20Images/Workflow%201800x945_2gQoQIbY9NvjLFpXtsxtXy_1750097663612.png",{},"/en-us/blog/module-level-access-in-a-django-grc-app",{"config":920,"title":716,"description":914},{"noIndex":10},"module-level-access-in-a-django-grc-app","en-us/blog/module-level-access-in-a-django-grc-app",[276],"BlogPost","ufdGT91MNxg4rlooAX2ttr1tstGD4oc5EtpWizC1AMI",[927,935,942,950,957,964,971,978,984],{"title":928,"heroImage":929,"category":9,"description":930,"authors":931,"slug":934,"externalUrl":6},"What we're doing to fix Gitaly NFS performance regressions","https://res.cloudinary.com/about-gitlab-com/image/upload/v1749670065/Blog/Hero%20Images/git-performance-nfs.jpg","How we're improving our Git IO patterns to fix performance regressions when running Gitaly on NFS.",[932,933],"James Ramsay","Zeger-Jan van de Weg","git-performance-on-nfs",{"title":936,"heroImage":937,"category":9,"description":938,"authors":939,"slug":941,"externalUrl":6},"How we turn our group conversations into a podcast with GitLab CI/CD","https://res.cloudinary.com/about-gitlab-com/image/upload/v1749678626/Blog/Hero%20Images/group-conversation-podcast.jpg","Want to listen to meetings on the go? Senior SRE John Jarvis explains how he turned his favorite remote meetings at GitLab into podcast format.",[940],"John Jarvis","group-conversation-podcast",{"title":943,"heroImage":944,"category":9,"description":945,"authors":946,"slug":949,"externalUrl":6},"Build enterprise-grade IaC pipelines with GitLab DevSecOps","https://res.cloudinary.com/about-gitlab-com/image/upload/v1746211002/zlet4rmfg2z0j6lg16mc.png","Learn how to transform infrastructure automation into scalable, secure pipelines using GitLab, Terraform/OpenTofu, and Ansible with integrated security scanning and CI/CD.",[947,948],"George Kichukov","Salahddine Aberkan","using-ansible-and-gitlab-as-infrastructure-for-code",{"title":951,"heroImage":952,"category":9,"description":953,"authors":954,"slug":956,"externalUrl":6},"Looking back on the 11.x releases for GitLab CI/CD","https://res.cloudinary.com/about-gitlab-com/image/upload/v1749666857/Blog/Hero%20Images/photo-cicdlookback.jpg","With GitLab 12.0 coming soon, it's a great time to reflect on all the features we've launched since 11.0.",[955],"Jason Yavorska","look-back-on-11-11-cicd",{"title":958,"heroImage":959,"category":9,"description":960,"authors":961,"slug":963,"externalUrl":6},"How we migrated to CommonMark","https://res.cloudinary.com/about-gitlab-com/image/upload/v1749671172/Blog/Hero%20Images/markdown-tutorial-cover.png","A senior backend engineer shares how (and why) we migrated our Markdown processing from RedCarpet to CommonMark.",[962],"Brett Walker","how-we-migrated-our-markdown-processing-to-commonmark",{"title":965,"heroImage":966,"category":9,"description":967,"authors":968,"slug":970,"externalUrl":6},"How IT automation impacts developer productivity","https://res.cloudinary.com/about-gitlab-com/image/upload/v1749670529/Blog/Hero%20Images/automate-retrospectives.jpg","See how IT automation promotes a healthier IT culture and unlocks next-level DevOps.",[969],"Chrissie Buchanan","it-automation-developer-productivity",{"title":972,"heroImage":973,"category":9,"description":974,"authors":975,"slug":977,"externalUrl":6},"The road to Rails 5","https://res.cloudinary.com/about-gitlab-com/image/upload/v1749683399/Blog/Hero%20Images/road-to-rails-5.jpg","Senior Backend Engineer Jan Provaznik shares some of the challenges we encountered when upgrading GitLab to Rails 5 – and how we overcame them.",[976],"Jan Provaznik","upgrade-to-rails5",{"title":979,"heroImage":980,"category":9,"description":981,"authors":982,"slug":983,"externalUrl":6},"5 Teams that made the switch to GitLab CI/CD","https://res.cloudinary.com/about-gitlab-com/image/upload/v1749678657/Blog/Hero%20Images/ci-cd-competitive-campaign-blog-cover.png","See what happened when these five teams moved on from old continuous integration and delivery solutions and switched to GitLab CI/CD.",[969],"5-teams-that-made-the-switch-to-gitlab-ci-cd",{"title":985,"heroImage":986,"category":9,"description":987,"authors":988,"slug":989,"externalUrl":6},"Progressive Delivery: How to get started with Review Apps","https://res.cloudinary.com/about-gitlab-com/image/upload/v1749666841/Blog/Hero%20Images/progressive-delivery-review-apps.jpg","Progressive Delivery is the next evolution of continuous delivery, and Review Apps are a key enabler.",[955],"progressive-delivery-using-review-apps",1794911846690]