Age | Commit message (Collapse) | Author | |
---|---|---|---|
2022-01-25 | Merge branch 'cleanup/gitlab-server-stub' into 'master' | Alessio Caiazza | |
test: cleanup gitlab server stub and stubOpts See merge request gitlab-org/gitlab-pages!652 | |||
2022-01-24 | lint: fix gci issues | feistel | |
2022-01-20 | feat: implement graceful shutdown | feistel | |
Changelog: added | |||
2022-01-12 | Merge branch '630-add-rate-limiting-per-domain-name' into 'master' | Jaime Martinez | |
Add rate limiting per domain name See merge request gitlab-org/gitlab-pages!635 | |||
2022-01-11 | feat: add domain rate-limiter | Vladimir Shushlin | |
Changelog: added | |||
2021-12-24 | feat: enable Etag caching | Vladimir Shushlin | |
Changelog: added | |||
2021-12-22 | test: cleanup gitlab server stub and stubOpts | feistel | |
2021-12-21 | fix: wait for process to exit in acceptance tests | Vladimir Shushlin | |
2021-12-16 | feat: implement ETag support for zip serving | feistel | |
Changelog: added | |||
2021-12-14 | refactor: extract common logic for env feature flags | Vladimir Shushlin | |
2021-12-14 | Merge branch 'remove/ff-enable-redirects' into 'master' | Vladimir Shushlin | |
refactor: remove FF_ENABLE_REDIRECTS feature flag Closes #618 See merge request gitlab-org/gitlab-pages!582 | |||
2021-12-14 | Merge branch 'fix/sha-lookups' into 'master' | Jaime Martinez | |
test: add sha256 to mocked lookups and fix tests See merge request gitlab-org/gitlab-pages!634 | |||
2021-12-13 | refactor: abstract ratelimiter package | Vladimir Shushlin | |
We want to add domain-based ratelimiter. The logic will be identical, but we'll use host instead of IP address. | |||
2021-12-08 | test: add slow req acceptance test | Jaime Martinez | |
2021-12-08 | test: add sha256 to mocked lookups and fix tests | feistel | |
2021-12-07 | refactor: enable unparam in .golangci.yml | Vladimir Shushlin | |
and fix offences | |||
2021-11-17 | Merge branch 'refactor/run-pages-test' into 'master' | Jaime Martinez | |
test: refactor RunPagesProcess function to take functional arguments Closes #79 See merge request gitlab-org/gitlab-pages!607 | |||
2021-11-16 | feat: handle extra headers when serving from compressed zip archive | feistel | |
Related to https://gitlab.com/gitlab-org/gitlab-pages/-/issues/466 Changelog: added | |||
2021-11-11 | fix: reject requests with very long URIs | Vladimir Shushlin | |
Some parts of the application may be vulnerable to very long URIs being passed. E.g. Auth will try to save URI to session cookie, and it will fails, which will result in 500 error Changelog: fixed | |||
2021-11-02 | test: refactor RunPagesProcess function to take functional arguments | feistel | |
2021-10-29 | test: use GetPageFromListenerWithHeaders across tests | feistel | |
remove GetCompressedPageFromListener, GetPageFromListenerWithCookie and GetProxiedPageFromListener | |||
2021-10-14 | refactor: remove WithProxied setting | Jaime Martinez | |
2021-10-14 | test: rate limiter acceptance tests | Jaime Martinez | |
test: rate limit with all listener types | |||
2021-10-14 | feat: add source IP ratelimiter middleware | Jaime Martinez | |
It gets the source IP from `r.RemoteAddr` or from the `X-Forwarded-For` header for proxied requests (when `--listen-proxy` is enabled). The first iteration will only report logs and metrics when an IP is being rate limited. The rate limiter uses a Token Bucket approach using golang.org/x/time/rate, which can be configured with the newly added flags `rate-limit-source-ip` and `rate-limit-source-ip-burst`. To enable the rate limiter, set `rate-limit-source-ip` to value > 1, which is the number of requests per second to allow. It is enabled by default in "dry-run" mode so requests won't be dropped until the environment variable `FF_ENABLE_RATE_LIMITER` is set to `"true"`. See metrics.go for the newly added metrics. Changelog: added | |||
2021-10-08 | Merge branch 'remove/root' into 'master' | Jaime Martinez | |
Remove gitlab-pages daemon Closes #114 and #133 See merge request gitlab-org/gitlab-pages!542 | |||
2021-10-07 | test: remove support for daemonize tests | feistel | |
2021-10-07 | refactor: stop running gitlab-pages as root | feistel | |
We have now disabled chroot by default since %14.1, and recently removed support for disk-based configuration coming in %14.3. And we've also removed the chroot completely from Pages. Since nginx can do TCP proxying and there's no need to use privileged ports, Pages has been confirmed to run as non-root in k8s environment without any issues. This MR removes support for the gitlab-pages daemon completely. Changelog: removed | |||
2021-09-16 | refactor: remove FF_ENABLE_REDIRECTS feature flag | feistel | |
2021-09-09 | refactor: avoid os.Is.. in favor of errors.Is | feistel | |
2021-09-09 | refactor: move away from ioutil (deprecated) | feistel | |
2021-09-07 | test: improve artifact acceptance test | feistel | |
2021-08-26 | refactor: remove chroot/jail logic | feistel | |
Changelog: removed | |||
2021-08-26 | test: remove TestDomainsSource acceptance test | feistel | |
2021-08-26 | refactor: remove metrics for disk source | feistel | |
2021-08-26 | Merge branch 'remove/disk-source' into 'master' | Jaime Martinez | |
refactor: remove support for disk configuration source Closes #103, #158, #68, and #382 See merge request gitlab-org/gitlab-pages!541 | |||
2021-08-20 | Splat and placeholder support in _redirects | Nathan Friend | |
This commit adds support for Netlify-style splats (*) and :placeholders in the _redirects file. Changelog: added | |||
2021-08-20 | test: remove leftover tests requiring source disk | feistel | |
2021-08-20 | test: remove domain-config-source=gitlab from test and remove tests using ↵ | feistel | |
disk source | |||
2021-08-19 | test: fix response body not being closed | feistel | |
nolint is added when the body is nil or if the body can't be closed | |||
2021-08-18 | test: remove edge case for auto configuration source | feistel | |
since polling is being removed, setting config source to auto won't switch automatically to disk source if the gitlab source fails a request to the api. Note that config source is being removed in the next version so this test is will fail anyway. | |||
2021-08-17 | test: remove status-not-yet-ready test | feistel | |
Since api polling has been removed the gitlab client is always ready, hence the app's statuscheck will never fail | |||
2021-08-17 | refactor: remove GitLab API internal polling | feistel | |
2021-08-17 | test: rename and cleanup some functions571-refactor-missing-serving-tests | Jaime Martinez | |
2021-08-16 | chore: remove unnecessary func | Jaime Martinez | |
and fields added by mistake | |||
2021-08-16 | test: update SSL cases to use stub | Jaime Martinez | |
2021-08-16 | tests: more cases for access control enabled | Jaime Martinez | |
2021-08-16 | test: add zip for "group.auth" | Jaime Martinez | |
and update acceptance tests using this project. | |||
2021-08-11 | test: remove unused expectedCredentials (Access-Control-Allow-Credentials) ↵ | feistel | |
field from cors test | |||
2021-08-10 | Apply 1 suggestion(s) to 1 file(s) | Jaime Martinez | |
2021-08-09 | test: merge cors tests to avoid duplicate code | feistel | |