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-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
2018-08-07Make 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-19Update to new endpoint and switch to better (user) endpoint when checking ↵Tuomo Ala-Vannesluoma
for token validity
2018-07-02Remove duplicate testTuomo Ala-Vannesluoma
2018-07-02Add debug loggingTuomo Ala-Vannesluoma
2018-06-30Fix not exposing project existence when group is found but project is notTuomo Ala-Vannesluoma
2018-06-30Add SSL cert file to access control testTuomo Ala-Vannesluoma
2018-06-30Refactor logic to avoid existence leakTuomo Ala-Vannesluoma
2018-06-30Convert access control acceptance tests to table basedTuomo Ala-Vannesluoma
2018-06-30Deduplicate running pages with authTuomo Ala-Vannesluoma
2018-06-30Use header authentication instead of query parameterTuomo Ala-Vannesluoma
2018-06-30Fix logic to return failure instead of making private pages publicTuomo Ala-Vannesluoma
2018-06-30Add support for private projects and authentication with GitLab APITuomo Ala-Vannesluoma