For anyone here arriving late, like me… gitlab-org/omnibus-gitlab: Merge Request: Support for pages authentication switches (Merged) gitlab-org/gitlab-ce: Merge Request: Make GitLab pages support access control (Merged) gitlab-org/gitlab-pages: Merge Request: Make GitLab pages support access cont… Answer from tyler-in on forum.gitlab.com
🌐
GitLab
docs.gitlab.com › gitlab docs › use gitlab › deploy and release your application › gitlab pages › access control
GitLab Pages access control | GitLab Docs
GitLab Pages uses a cache for efficiency. Changes to access settings typically take effect in one minute when the cache updates. ... Introduced in GitLab 17.10. To authenticate against a restricted GitLab Pages site, you can provide the Authorization header with an access token.
GitLab Docs
Learn how to use and administer GitLab, the most scalable Git-based fully integrated platform for software development.
Environments
Environments, variables, dashboards, and review apps.
GitLab Pages
GitLab Pages publishes static websites directly from a repository in GitLab. ... Deploy automatically with GitLab CI/CD pipelines. Support any static site generator (like Hugo, Jekyll, or Gatsby) or plain HTML, CSS, JavaScript, and Wasm. Run on GitLab-provided infrastructure at no additional cost. Connect with custom domains and SSL/TLS certificates. Control access through built-in authentication...
Releases
Releases, versioning, assets, tags, milestones, and evidence.
🌐
GitLab
docs.gitlab.com › gitlab docs › administer › update your settings › gitlab pages
GitLab Pages administration | GitLab Docs
Each request to view a resource in a private site is authenticated by Pages using that token. For each request it receives, Pages makes a request to the GitLab API to check that the user is authorized to read that site.
Discussions

Gitlab Pages Access Control Authentication Settings
I have one linux box running gitlab, and another running as a pages host. I’m trying to enable access control, but I’m not getting it set up correctly. When I enable it, I get the following message in my log: {"level":"… More on forum.gitlab.com
🌐 forum.gitlab.com
2
0
January 20, 2021
Can I make gitlab pages private?
I just started using gitlab pages on gitlab.com for a public project. I also have a private repository I would like to restrict access to the generated pages to only those with access to the repository. Is that possible? If not, are there any other supported authentication methods? More on forum.gitlab.com
🌐 forum.gitlab.com
4
1
March 5, 2016
.htpasswd - Password protect GitLab pages with htpasswd - Stack Overflow
Is there a way to password protect a website published using GitLab pages? I tried adding an .htpasswd file to the root of the /pages directory, but that just makes the file available to everyone ... More on stackoverflow.com
🌐 stackoverflow.com
Pages with authentication on omnibus
I’ve been trying to enable pages on my omnibus based gitlab instance and so far I’m failing. For reference, the image I use is: gitlab/gitlab-ce:11.9.4-ce.0 According to the pages daemon the error happens when the user agent is redirected back from the gitlab server. More on forum.gitlab.com
🌐 forum.gitlab.com
3
0
April 4, 2019
🌐
GitLab
gitlab.com › gitlab.org › gitlab-pages › #22
Support for (basic?) authentication (#22) · Issues · GitLab.org / gitlab-pages · GitLab
Support for (basic?) authentication · Would be great if one could secure content using basic auth or a form fronting the site.
🌐
GitLab
forum.gitlab.com › how to use gitlab › self-managed
Gitlab Pages Access Control Authentication Settings - Self-managed - GitLab Forum
January 20, 2021 - I have one linux box running gitlab, and another running as a pages host. I’m trying to enable access control, but I’m not getting it set up correctly. When I enable it, I get the following message in my log: {"level":"info","msg":"GitLab Pages Daemon","revision":"e4ddf96","time":"2021-01-20T20:32:26Z","version":"1.34.0"} {"level":"info","msg":"URL: https://gitlab.com/gitlab-org/gitlab-pages","time":"2021-01-20T20:32:26Z"} {"level":"fatal","msg":"auth-client-id must be defined if authentication...
🌐
GitLab
forum.gitlab.com › how to use gitlab
Can I make gitlab pages private? - How to Use GitLab - GitLab Forum
March 5, 2016 - I just started using gitlab pages on gitlab.com for a public project. I also have a private repository I would like to restrict access to the generated pages to only those with access to the repository. Is that possible? …
🌐
GitLab
transfer.hft-stuttgart.de › help
Index · Pages · Administration · Help · GitLab
Each request to view a resource in a private site is authenticated by Pages using that token. For each request it receives, it makes a request to the GitLab API to check that the user is authorized to read that site.
🌐
GitLab
docs.gitlab.com › gitlab docs › use gitlab › deploy and release your application › gitlab pages
GitLab Pages | GitLab Docs
In that case, you must be an administrator in your domain’s registrar (or control panel) to set it up with Pages. If you’re using GitLab Pages default domain (.gitlab.io), your website is automatically secure and available under HTTPS.
Find elsewhere
🌐
University of Toronto
microfluidics.utoronto.ca › help › help
Pages access control · Pages · Project · User · Help · GitLab
Changes to access settings typically take effect within one minute when the cache updates. Introduced in GitLab 17.10. To authenticate against a restricted GitLab Pages site, you can provide the Authorization header with an access token.
🌐
GitLab
forum.gitlab.com › how to use gitlab
Pages with authentication on omnibus - How to Use GitLab - GitLab Forum
April 4, 2019 - I’ve been trying to enable pages on my omnibus based gitlab instance and so far I’m failing. For reference, the image I use is: gitlab/gitlab-ce:11.9.4-ce.0 According to the pages daemon the error happens when the user…
🌐
GitLab
docs.gitlab.com › gitlab docs › administer › update your settings › gitlab pages › gitlab pages for source installations
GitLab Pages administration for self-compiled installations | GitLab Docs
Each request to view a resource in a private site is authenticated by Pages using that token. For each request it receives, Pages makes a request to the GitLab API to check that the user is authorized to read that site.
🌐
Reddit
reddit.com › r/gitlab › does gitlab pages access control not work anymore?
r/gitlab on Reddit: Does GitLab Pages Access Control not work anymore?
July 17, 2021 -

Hi everyone. Lately I've been wanting to publish a public static website that's in a private repository of mine (hosted on gitlab.com). I already did that in the past once and supposed that it wouldn't be a problem for me.

However, now, GitLab keeps telling me "Access Control is enabled for this Pages website; only authorized users will be able to access it. To make your website publicly available, navigate to your project's Settings > General > Visibility and select Everyone in pages section", and when I do these exact steps, nothing changes and the message keeps showing up for some reason. I tried waiting a few hours and fiddling with the visibility fields but nothing works.

When I checked on my older project to compare fields, I noticed that the pages' visibility was "Only Project Members" though it was still accessible on other computers and on a private window without logging in, but I once miss-clicked on "Save" and now the message above keeps popping up on this repository too, and, of course, the previously-public pages are now private, even though I checked "Everyone" on "Pages Visibility" there.

The documentation also shares this YouTube video and I noticed the subcategories on Visibility was "Pages access control" here while it is "Pages" on my computer. I wonder if the name change broke something but I can't tell much about it. I tried to check on the issues list and haven't seen anyone talk about that.

Is there anything I can do to make my pages public?

Thanks a lot.

🌐
GitLab
docs.gitlab.com › ee › topics › authentication
Sign in · GitLab
June 30, 2023 - They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, enabling you to securely log into the site, filling in forms, or using the customer checkout. GitLab processes any personal data collected through these cookies on the basis of our legitimate interest.
🌐
GitLab
docs.gitlab.com › gitlab docs › use gitlab › secure your application › detect › dynamic application security testing (dast) › dast › configuration › authentication
Authentication | GitLab Docs
Define DAST_AUTH_SUCCESS_IF_NO_LOGIN_FORM as "true" to indicate that DAST should search for the login form on the page displayed after the login form is successfully submitted. If a login form is still present after logging in, authentication is unsuccessful. ... include: - template: DAST.gitlab-ci.yml dast: variables: DAST_TARGET_URL: "https://example.com" DAST_AUTH_SUCCESS_IF_NO_LOGIN_FORM: "true"
🌐
GitLab
docs.gitlab.com › gitlab docs › use gitlab › manage authentication and authorization › user authentication
User authentication | GitLab Docs
Use passwords with optional two-factor authentication for web-based access, SSH keys for Git operations, and various types of access tokens for API interactions and automation. On GitLab Self-Managed and GitLab Dedicated, administrators can configure how authentication works, monitor credential usage, and implement security policies to protect their instance.
🌐
Stack Overflow
stackoverflow.com › questions › 67583070 › can-i-use-keycloak-auth-for-gitlab-pages
authentication - Can I use Keycloak auth for Gitlab Pages? - Stack Overflow
Theoretically yes, I have not used Gitlab Pages, but if it is used for the purposes of deploying your app then it should be no problem. Your app would redirect users to your existing Keycloak instance's client for your app to login, and if authentication is successful, the client would be redirected to a callback url at which point your users will be authenticated.
🌐
GitLab
forum.gitlab.com › gitlab ci/cd
Gitlab token/auth for Gitlab Pages URL - GitLab CI/CD - GitLab Forum
December 1, 2021 - Hello everyone, I am trying to implement the suggested solution in this feature request: - Make it possible to accumulate content in GitLab Pages (#15156) · Issues · GitLab.org / GitLab · GitLab that suggests using - $(wget --no-check-certificate $CI_PAGES_URL/content.tar.gz -O prev_content.tar.gz || exit 0;); However, in my GitLab project the pages should be private, how do I authenticate to the pages URI to retrieve the content.tar.gz archive that I created?
🌐
GitLab
gitlab.com › gitlab.org › gitlab foss › #33422
Access control for pages (#33422) · Issues · GitLab.org / GitLab FOSS · GitLab
May 30, 2016 - Description We have a number of projects that produce proper documentation (pdfs and the like) for consumption by non-programmers. When done...
🌐
GitHub
github.com › diffblue › gitlab › blob › master › doc › administration › pages › index.md
gitlab/doc/administration/pages/index.md at master · diffblue/gitlab
Defaults to project's subdomain of pages_external_url + /auth. ... Secret key for signing authentication requests. Leave blank to pull automatically from GitLab during OAuth registration.
Author: diffblue