Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-07-06Serve custom 404.html file for namespace domainsJaime Martinez
This will allow namespace domains to serve custom 404.html files for public projects. This change adds a check to check for permision only if it's serving a namespace domain with access controls enabled.
2020-06-30Add SSL_CERT_DIR acceptance testJonathon Reinhart
2020-06-11Add units to metric namesJaime Martinez
2020-06-09Use histogram without labelsJaime Martinez
Register ServingTime. Rename DiskServingFileSize so that it's a histogram without needing labels
2020-06-01Enable the remaining lintersJaime Martinez
- ineffassign - misspell - structcheck - typecheck - unconvert - unused - varcheck - whitespace
2020-05-08Write config file for some acceptance testsJaime Martinez
Use filename from closure
2020-05-08Rename test config fileJaime Martinez
2020-05-08Consolidate args validationJaime Martinez
2020-05-08Enforce loading secrets from fileJaime Martinez
Passing secrets via command line is not allowed anymore. A config file should be used instead. The default filename is `gitlab-pages-config`. The following command line options will throw an error and prevent pages from running if set explicitly: - `-auth-client-id` - `-auth-client-secret` - `-auth-secret`
2020-05-04Add a prometheus counter for GitLab API call failuresGrzegorz Bizon
2020-02-05Add acceptance test for serverless metricsGrzegorz Bizon
2020-01-27Add domain configuration duration (from disk) to Prometheus metricsKrasimir Angelov
2020-01-22update acceptance test structure to improve readability and follow the style ↵improve-acceptance-tests-readabilityJaime Martinez
guide
2020-01-22update struct field names for TestAccessControl to follow coding styleJaime Martinez
(cherry picked from commit d6364c55ab51708b3ec92cde07ffa80fa9b84765)
2020-01-10Watch a file to configure which domains should use new gitlab sourceKrasimir Angelov
Instead of passing domains once in an ENV variable we now watcn a config file (specified with `GITLAB_SOURCE_CONFIG_FILE`, defaults to `.gitlab-source-config.yml` and update ednabled/broken domains when it's content change. This way we can control this without having to restart Pages. Related to https://gitlab.com/gitlab-org/gitlab-pages/issues/266.
2019-12-10Merge branch 'master' into feature/gb/gitlab-domains-sourceGrzegorz Bizon
* master: Add support for the port component in the Host header Base64 decode GitLab API secret
2019-12-05Merge branch 'master' into feature/gb/gitlab-domains-sourceGrzegorz Bizon
* master: Check presence of GitLab API secret when building a domains source Make GitLab API Secret a supported parameter Improve error reporting in the main package Check if GitLab API secret has been provided too Avoid using `testify/assert` in favor of `require` Test domains source not fully configured Improve error handing when creating new domains config source Fix formatting in internal/source/gitlab/client/client_test.go Conflicts: acceptance_test.go internal/source/gitlab/client/client_test.go
2019-12-05Base64 decode GitLab API secretKrasimir Angelov
before using it.
2019-12-04Check presence of GitLab API secret when building a domains sourceGrzegorz Bizon
2019-12-04Handle non-existent domains properly using 204 statusGrzegorz Bizon
2019-11-28Use ENV variables to obtain a list of test new source domainsGrzegorz Bizon
2019-11-28Rename new source test fixture to avoid using existing domainGrzegorz Bizon
2019-11-28Simplify acceptance tests for gitlab source a bitGrzegorz Bizon
2019-11-28Merge branch 'master' into feature/gitlab-source-enum-domainsGrzegorz Bizon
* master: Improve GitLab client tests Change GitLab API JWT expire time to 5s Read the context of api-secret-key file and store it in app config Improve gitlab client tests Ensure there is response before defer close it in gitlab.GetVirtualDomain Document acrguments for gitlab.NewClient Add HTTP client to consume GitLab internal API for Pages
2019-11-27Add acceptance tests for new domains sourceGrzegorz Bizon
2019-11-27Read the context of api-secret-key file and store it in app configKrasimir Angelov
as GitLabAPISecretKey
2019-11-24Add an acceptance test for broken domains sourceGrzegorz Bizon
2019-11-06Add minimal support for the api-secret-key config flagKrasimir Angelov
Related to https://gitlab.com/gitlab-org/gitlab/issues/28781 and https://gitlab.com/gitlab-org/gitlab-pages/issues/253.
2019-09-26Add support for previewing artifacts that are not publicTuomo Ala-Vannesluoma
Remove some duplicate logic on Auth module Separate handling artifact to own handlers package Unit test handlers by mocking auth and artifact modules Add generate-mock step to Makefile Use additional handler func to simplify TryMakeRequest return type Always try with token if exists Do not log RequestURI, log path only Remove not used logRequest func
2019-09-12Remove github.com/stretchr/testify/assertNick Thomas
The "assert" form is difficult to use correctly and complicates test understanding. I think we should insist on using require *only* in our tests across GitLab.
2019-09-06Add golang 1.13 to the ciVladimir Shushlin
2019-08-30Add full HTTP metrics and logging to GitLab pages using LabKitAndrew Newdigate
2019-08-21Fix https downgrade for pages behind proxyVladimir Shushlin
We can't rely on r.TLS when pages are served behind proxy So we save https flag to a context for later usage Right now I'm trying to keep changes to a minimum since I'm planning to backport this to older versions That's why https flag is not refactored throughout the codebase The alternative way would be to use gorilla's proxy headers I'm planning to refactor to that version later
2019-08-08Update metrics names.Ben Kochie
* Rename "DomainsServed", `_total` is reserved for counters. * Rename "SessionsActive", "active sessions" makes more sense.
2019-07-12feat: add flag to define custom response headersMax Wittig
2019-06-03Redirect unknown ACME challenges to the GitLab instanceVladimir Shushlin
2019-05-28Add config flags to specify TLS versionsKrasimir Angelov
Introduce two new configuration options -tls-min-version and -tls-max-version to control which TLS versions will be supported by the server. Accepted values are ssl3, tls1.0, tls1.1, tls1.2, and tls1.3. Closing https://gitlab.com/gitlab-org/gitlab-pages/issues/187
2019-05-16Disable 3DES and other insecure cipher suitesKrasimir Angelov
Supported cipher suites: tls.TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305 tls.TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305 tls.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 tls.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 tls.TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 tls.TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 Closes https://gitlab.com/gitlab-org/gitlab-pages/issues/150.
2019-02-07Refactor access control acceptance testsAlessio Caiazza
2019-01-09Add acceptance test for subgroups access controlAlessio Caiazza
2019-01-09Add acceptance test for deeply nested subgroupsAlessio Caiazza
2018-11-29subgroup supportAlessio Caiazza
2018-10-12Add acceptance tests for URLs with capital lettersAlessio Caiazza
2018-09-22Add special handling for namespace projects to avoid existence leakTuomo Ala-Vannesluoma
2018-09-12Avoid caching if project is access controlledTuomo Ala-Vannesluoma
2018-09-10Move access controlled projects under a group without default domain projectTuomo Ala-Vannesluoma
2018-08-21Make private projects not accessible if auth is not configuredTuomo Ala-Vannesluoma
2018-08-18Added checks for errors, refactored a bit to avoid method complexity ↵Tuomo Ala-Vannesluoma
increasing, fixed to work with custom ports and TLS enabled or not
2018-08-12Use reserved namespace 'projects' for the redirect uri to handle situation ↵Tuomo Ala-Vannesluoma
where root pages domain is not handled with pages daemon
2018-08-08Fix problem with the public suffix listed pages domainTuomo Ala-Vannesluoma