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-06-30Add SSL_CERT_DIR acceptance testJonathon Reinhart
2020-05-28Add .golangci.yml linter configurationJaime Martinez
As part of https://gitlab.com/gitlab-org/gitlab-pages/-/issues/385 we have introduced the use of a custom `.golangci.yml` file with some custom rules for linting. This replaces the need of downloading and using `golint`, `gofmt` `go vet` and `gocyclo` manually. We take advantage of the custom `golangci-lint` docker image as stated in the [Automatic lintinb] (https://docs.gitlab.com/ee/development/go_guide/#automatic-linting) section of the Go standards and style guidelines. This iteration enables a subset of linters, with the remaining of them enabled on a separate MR as described in the issue above. The main changes introduced by this linter include: - gosec: potential hardcoded credentials - goconst: DRY by declaring and using constants - gosimple: reduce statements complexity and improve return statements
2020-05-08Write config file for some acceptance testsJaime Martinez
Use filename from closure
2020-05-08Rename test config fileJaime 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-01-22update acceptance test structure to improve readability and follow the style ↵improve-acceptance-tests-readabilityJaime Martinez
guide
2020-01-22add t.Helper to a test funcJaime Martinez
(cherry picked from commit c4da6ef61d338c19832b99574eaf2dce383be70e)
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-05Improve tests for gitlab source cacheGrzegorz Bizon
2019-12-05Base64 decode GitLab API secretKrasimir Angelov
before using it.
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-27Add acceptance tests for new domains sourceGrzegorz Bizon
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-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.
2018-10-24Fix import paths for goimportNick Thomas
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-06-30Add SSL cert file to access control testTuomo Ala-Vannesluoma
2018-06-30Deduplicate running pages with authTuomo Ala-Vannesluoma
2018-06-30Add support for private projects and authentication with GitLab APITuomo Ala-Vannesluoma
2018-06-20Add tests for reverse proxyDennis Günnewig
2018-04-27Restore the old in-place chroot behaviour as a command-line optionNick Thomas
2018-03-29Put domain code in a separate packageJacob Vosmaer (GitLab)
2018-03-23Use TLS verification in the acceptance testsNick Thomas
This will help us to find more failures. In addition, this commit fixes an intermittent test failure - if a HTTP request to pages was taking > 100ms to return any headers, it would be failed. Two scenarios exist where we might take > 100ms: * The "artifacts server timeout" test case, where we hang on for a whole second * Loading and parsing SSL_CERT_FILE on first request in the artifacts server proxy was slowing down the initial request enough to trigger this in some environments
2018-03-23Fix intermittent "zombie" process creationNick Thomas
These processes weren't actually zombies at all, they were still running fine - just outliving their parents as they were never given an interrupt signal in the timeout case.
2018-03-23Use the certificate fixture in the artifacts server testsNick Thomas
2018-03-23Run the acceptance tests both daemonized and notNick Thomas
2018-03-21Add /etc/resolv.conf and /etc/ssl/certs to pages chrootAlessio Caiazza
2018-03-14Wait for a successful roundtripJacob Vosmaer
2018-03-12Wait until a request succeeds in test setupJacob Vosmaer (GitLab)
2018-03-09Use require.NoError to halt tests after errorsJacob Vosmaer
2018-03-07Structured loggingJacob Vosmaer (GitLab)
2017-10-02Rework the artifacts proxy to operate within Pages group domainsNick Thomas
2017-09-08Use namsral/flag to support environment vars for configZeger-Jan van de Weg
2017-06-15Add CORS support to GET requestsNick Thomas
2017-03-13Fix and clarify redirect HTTP logicStan Hu
redirect-http seemed to suggest the Pages daemon would redirect from HTTPS to HTTP, but it seems that the opposite was implied. Fixes issue manifested by https://gitlab.com/gitlab-org/omnibus-gitlab/merge_requests/1348
2017-03-08Run the tests with gitlab-pages daemonised in the CI environmentNick Thomas
2017-02-07Improve complexity metricsZ.J. van de Weg
Also fixed the dependencies, moved metrics to its own package and updated the tests
2017-02-02Prometheus monitoring for GitLab PagesZ.J. van de Weg
This starts of the prometheus monitoring for GitLab Pages, and resolves gitlab-org/gitlab-pages#42 Point to check: - Are the metric names good, keeping Prometheus' conventions in mind? - Golang, general style etc - Shouldn't I do some voodoo magic to import this in the library?
2016-09-09Add a simple test for MultiStringFlagNick Thomas
2016-02-12Move helpersKamil Trzcinski