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
2023-04-12Update golangci-lint toolKassio Borges
2022-07-05Remove rate limits feature flagsfeistel
Changelog: removed
2022-06-15Remove host out of Artifact.TryMakeRequestfeistel
2022-06-05Refactor acme tests and middleware for lazy domain resolutionfeistel
2022-05-05Abstract artifact handling to a separate middlewarefeistel
2022-05-02Add nolintlint linter configurationfeistel
Require an explanation for nolint rules and warn about unused rules
2022-04-26Merge branch 'refactor/t-setenv' into 'master'Jaime Martinez
refactor: replace os.Setenv with testing.SetEnv Closes #676 See merge request gitlab-org/gitlab-pages!742
2022-04-26Rework HTTPS tests and assert location headerfeistel
2022-04-25Add early return and tests for internal/handlers/httpsfeistel
2022-04-25Replace os.Setenv with testing.SetEnvfeistel
2022-04-22Move https middleware to internal/handlersfeistel
2022-02-24test: replace require.Equal with specialized assertionsfeistel
2022-02-21feat: Add TLS rate limitsVladimir Shushlin
Changelog: added
2022-01-26test: move mocks to their own packagefeistel
2022-01-24lint: fix gci issuesfeistel
2022-01-11feat: add domain rate-limiterVladimir Shushlin
Changelog: added
2021-12-20refactor: handle defaults in ratelimiter package itselfVladimir Shushlin
also fix tests: * float64(1/time.Milesecond) == 0 * rate package doesn't actually refill the bucket on fractional seconds, so we need to use integers
2021-12-13refactor: move ratelimiter configuration to handlers packageVladimir Shushlin
2021-11-22lint: remove outdated nolint directivesfeistel
2021-11-17test: stop calling mockController.Finish directlyfeistel
This is handled by mockgen 1.5.0+
2021-09-19chore: clean up handler tests to use httptest.NewRequestStan Hu
2021-09-19fix: handle 403 errors when artifacts loaded from GitLab artifacts browserStan Hu
When the artifacts server is enabled, GitLab Rails links certain files (e.g. HTML) to the GitLab Pages server so that the file can be rendered instead of downloaded. However, if public pipelines are not enabled for a public project and the user never authenticated with the Pages server, the GitLab Artifacts API would return a 403 error. This error would be forwarded to the user, and Pages would halt further processing. To fix this problem, when we encounter a 403 error, we attempt to authenticate the user if no token is available. Relates to https://gitlab.com/gitlab-org/gitlab/-/issues/25192 Changelog: fixed
2021-08-19docs: add related issue to TODO commentfeistel
2021-08-19test: fix response body not being closedfeistel
nolint is added when the body is nil or if the body can't be closed
2020-06-01Enable the remaining lintersJaime Martinez
- ineffassign - misspell - structcheck - typecheck - unconvert - unused - varcheck - whitespace
2020-06-01Enable bodyclose linterJaime Martinez
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