decaporg / decap-cms

A Git-based CMS for Static Site Generators
https://decapcms.org
MIT License
17.65k stars 1 forks source link

How to prevent users logged in with decap-cms from seeing the source code of the website? #7211

Closed ljzhsq2 closed 1 month ago

ljzhsq2 commented 1 month ago

Hello everyone, I like decap-cms, but there is a problem that I don't know how to solve?

My decap-cms has many users who can log in to jointly maintain the hugo website.

Since I am logging in using github, I need to grant everyone's github user access to the warehouse. They can easily see the source code of all hugo websites in github after logging in, but I don't want them to see the hugo website source code. How to solve it?

If I use [Git Gateway without Netlify] to log in, it can indeed be solved, but this method is very troublesome. Is there a simpler way?

kylesloper commented 1 month ago

Unfortunately this is not a feature request. You need to do this via the Github backend or create your own API as the backend.