My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

Limited access to git

Emil Moe's photo
Emil Moe
·Feb 16, 2017

I am using GitLab, if that matters.

Is it possible to limit the content that a given deploy key can access? I'm building my project in Laravel, and for all developments there's access to every necessary file of course.

However I would like to limit the files that the production server can access. For example I want to prevent access to packages.json and all .vue and .scss files since what's needed are the compiled files.

Any good suggestions to this, which is easy to maintain?