So this is a reoccurring issue and I\'m not qualified to fix it but I need it fixed so I\'m going to have to learn. See this question for an outdated / not feasible solution
GitLab now supports access control for pages:
https://docs.gitlab.com/ce/administration/pages/#access-control
Pages access control is currently disabled by default. To enable it, you must:
Enable it in /etc/gitlab/gitlab.rb
gitlab_pages['access_control'] = true
Reconfigure GitLab
So I've made a rudimentary fix that works for now:
This gitlab repo shows a working example here.
It uses static password protection and is also discussed in this issue.
Now GitLab Pages works with the same permissions as in the project. If the project is private, the Pages will also be private.
I've tried this tutorial: https://gitlab.com/pages/sphinx/tree/master