Age | Commit message (Collapse) | Author | |
---|---|---|---|
2019-06-12 | Resolve "Pages incorrectly serve acme-challenges with /index.html" | Vladimir Shushlin | |
2019-06-03 | Redirect unknown ACME challenges to the GitLab instance | Vladimir Shushlin | |
2019-02-05 | Add tests for running on non standard ports | Vladimir Shushlin | |
2019-02-01 | Make extensionless URL working | Riccardo Padovani | |
2019-01-11 | Merge branch 'ac-subgroups' into 'master' | Nick Thomas | |
pages for subgroups Closes gitlab-ce#30548 See merge request gitlab-org/gitlab-pages!123 | |||
2019-01-11 | Make content-type detection consistent between file types | Nick Thomas | |
2019-01-11 | Merge branch 'gzip-content-type' into 'master' | Nick Thomas | |
Prevent wrong mimetype being set for GZipped files with unknown file extension Closes #181 See merge request gitlab-org/gitlab-pages!122 | |||
2019-01-10 | Adding `defer file.Close()` in D.detectContentType() | Reto Kaiser | |
2019-01-10 | Move content-type detection to separate function D.detectContentType() | Reto Kaiser | |
2018-12-06 | Don't scan subgroups past gitlab-rails limit | Alessio Caiazza | |
2018-12-06 | Refactor domain.BenchmarkReadGroups | Alessio Caiazza | |
2018-12-05 | Set the "Content-Type" only based on the file extension | Reto Kaiser | |
This prevents false content-type detection based on the file contents, when they are gzipped. Closes #181 | |||
2018-11-29 | subgroup support | Alessio Caiazza | |
2018-11-29 | extract domain.group struct from domain.D | Alessio Caiazza | |
2018-11-19 | Fix TOCTOU race condition when serving files | Alessio Caiazza | |
2018-10-24 | Fix import paths for goimport | Nick Thomas | |
2018-10-12 | Fix 404 for project with capital letters | Alessio Caiazza | |
When loading domains map from disk we lowercase the project name, this patch will lowercase it also when checking incoming HTTP requests against the configuration map. | |||
2018-10-12 | Add acceptance tests for URLs with capital letters | Alessio Caiazza | |
2018-10-02 | Fix comparing the domain and log request information as well. Removed ↵ | Tuomo Ala-Vannesluoma | |
invalid comment and fixed one else case. | |||
2018-09-30 | Merge commit 'd07b803b6f8519566940843e389a6c2d73424a76' into auth | Tuomo Ala-Vannesluoma | |
2018-09-27 | Stop serving shadowed namespace project files | Nick Thomas | |
2018-09-22 | Copied the fixed getProject function from the !111 to make tests pass | Tuomo Ala-Vannesluoma | |
2018-09-22 | Add special handling for namespace projects to avoid existence leak | Tuomo Ala-Vannesluoma | |
2018-09-12 | Avoid caching if project is access controlled | Tuomo Ala-Vannesluoma | |
2018-09-10 | Move access controlled projects under a group without default domain project | Tuomo Ala-Vannesluoma | |
2018-09-10 | Fix handling the projects with not updated configuration | Tuomo Ala-Vannesluoma | |
2018-09-03 | Merge branch 'master' into auth | Nick Thomas | |
2018-08-27 | Fix HTTP to HTTPS redirection not working for default domains | Stan Hu | |
If a default domain is in use, the group domain will be passed into the IsHTTPSOnly() call, but this will always return false because the HTTPS-only flag can only be determined by looking at the HTTP request host rather than the URL. For example, for the project https://gitlab.com/tanukitalks/tanukitalks.gitlab.io, this is what happened previously: 1. For a project in the default domain (e.g. `gitlab.io`), GitLab Pages loads `config.json` and sees the group is `tanukitalks` with the project name `tanuitalks.gitlab.io`. It stores the HTTPS-only flag inside the project config. 2. Note that for projects in the default domain, the `domainConfig` is empty. This makes sense because there is no domain configuration specified since the default domain is being used, and we need to redirect on a project-by-project basis. 3. User requests https://tanukitalks.gitlab.io. 4. GitLab Pages looks up `tanukitalks.gitlab.io`, and it returns the domain `tanukitalks` with an empty `domainConfig` and project `tanukitalks.gitlab.io`. 5. Since there is no `domainConfig`, `IsHTTPSOnly` attempts to resolve the project from the URL. 6. However, since the URL is using the default domain, the path is `/`, which doesn't resolve to any project. In the new behavior, we check the hostname of the request to see if it matches any project before trying to parse the URL. Closes #162 | |||
2018-08-26 | Log duplicate domain names | Stan Hu | |
This will help make it easier to track stale `config.json` files on disk. Closes https://gitlab.com/gitlab-org/gitlab-pages/issues/160 | |||
2018-08-23 | Update map_test.go | Nick Thomas | |
2018-08-23 | dm.Map#ReadGroups never returns an error | Nick Thomas | |
2018-08-15 | Make it explicit that when ReadGroups fails initially, an error is logged | Stan Hu | |
2018-08-14 | Abort domain scan if a failure is encountered | Stan Hu | |
This prevents the total domain list to be cleared out completely while the system is running. Closes https://gitlab.com/gitlab-com/infrastructure/issues/4749 | |||
2018-08-07 | Make private pages public if gitlab and pages is ran without access control, ↵ | Tuomo Ala-Vannesluoma | |
add support for custom domains for which auth is proxied via gitlab pages domain | |||
2018-07-02 | Get rid of panic serving errors | Tuomo Ala-Vannesluoma | |
2018-06-30 | Combine private boolean with the access_control flag | Tuomo Ala-Vannesluoma | |
2018-06-30 | Change project id to uint64 | Tuomo Ala-Vannesluoma | |
2018-06-30 | Add support for private projects and authentication with GitLab API | Tuomo Ala-Vannesluoma | |
2018-05-22 | Fix logic for output of domains in debug mode | Dennis Günnewig | |
2018-03-29 | Make certificate parsing thread-safe | Jacob Vosmaer | |
2018-03-29 | Put domain code in a separate package | Jacob Vosmaer (GitLab) | |