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
2021-11-01refactor: make internal/lru and internal/ratelimiter metrics optionalfeistel
2021-10-01Merge branch 'remove/chrootpath' into 'master'Alessio Caiazza
refactor: clean up chrootPath from the httpfs package Closes #598 See merge request gitlab-org/gitlab-pages!559
2021-09-30Merge branch 'fix/os-errors' into 'master'Alessio Caiazza
refactor: avoid os.Is.. in favor of errors.Is See merge request gitlab-org/gitlab-pages!567
2021-09-15refactor: move lru cache to its own packageJaime Martinez
so it can be reused by different components like the zip vfs and the rate limiter. related to https://gitlab.com/gitlab-org/gitlab-pages/-/issues/626.
2021-09-10Merge branch 'armhf-fix' into 'master'Vladimir Shushlin
fix: unaligned 64-bit atomic operation Closes #624 See merge request gitlab-org/gitlab-pages!571
2021-09-09refactor: avoid os.Is.. in favor of errors.Isfeistel
2021-09-09fix: unaligned 64-bit atomic operationÆx
Changelog: fixed
2021-09-09refactor: move away from ioutil (deprecated)feistel
2021-08-26refactor: clean up chrootPath from the httpfs packagefeistel
2021-08-26refactor: remove chroot/jail logicfeistel
Changelog: removed
2021-07-12Disable chroot and add daemon-enable-jail flagJaime Martinez
- Disable chroot mechanism by default. - Adds the daemon-enable-jail flag which will allow users to enable the legacy chroot mechanism if anything goes wrong. This flag won't be available via Omnibus, instead users will need to define the environment variable and pass to Pages. - Simplify chroot logic from http_fs - Update jail documentation - Enable chroot when domain-config-source=disk Changelog: changed
2021-07-07Improve logging and correlation IDJaime Martinez
2021-04-13Use ChrootPath from configJaime Martinez
2021-04-13Handle chrootPath in http_fsJaime Martinez
2021-04-13Remove root from AllowedPathsJaime Martinez
2021-04-13Allow serving zip from disk in chrootJaime Martinez
This is a temporary workaround for https://gitlab.com/gitlab-org/gitlab/-/issues/326117#note_546346101 where daemon-inplace-chroot=true fails to serve zip archives when pages_serve_with_zip_file_protocol is enabled To be removed after we roll-out zip architecture completely https://gitlab.com/gitlab-org/gitlab-pages/-/issues/561 Changelog: fixed
2021-03-01Use actual structs in Config struct instead of pointers to themBalasankar "Balu" C
Signed-off-by: Balasankar "Balu" C <balasankarc@autistici.org>
2021-02-15Add TestVFSReconfigureTransportJaime Martinez
2021-02-15Fix rebase issuesJaime Martinez
2021-02-15Add extra tests for serving zip archives from diskJaime Martinez
2021-02-15Register file protocol in httprange packageJaime Martinez
2021-02-09Expose Transport interface wrapperJaime Martinez
2021-02-09Revert "Export MeteredRoundTripper"Jaime Martinez
This reverts commit de481bad5878862ae6f693190c3aa3d85242b2c9.
2021-02-08Export MeteredRoundTripperJaime Martinez
Exports the struct so that it can be asserted and adds a method that is called by the zip VFS.
2021-02-08Refactor http client usage in httprageJaime Martinez
Moves the http.Client initialization inside the `httprange` package to the zip VFS. This makes the type `Resource` depend on an http.Client that needs to be passed on initialization. It also makes the zip VFS initialize the client. It's possible to reconfigure it to register a file protocol by calling vfs.Reconfigure explicitly.
2021-01-12Merge branch 'ajwalker/zip-path' into 'master'Vladimir Shushlin
Optimize zip file finding See merge request gitlab-org/gitlab-pages!414
2021-01-11Add vfs deflate reader poolajwalker/deflate-poolArran Walker
2021-01-11Optimize zip file findingajwalker/zip-pathArran Walker
2020-11-30Add Reconfigure to serving and VFS interfacesJaime Martinez
2020-11-30Increase time for flaky testJaime Martinez
Cleanup
2020-11-30Move flag definition to mainJaime Martinez
Add zip config to appConfig
2020-11-30Log zip configJaime Martinez
2020-11-30Move zip flags to configJaime Martinez
2020-11-30Use default config for testsJaime Martinez
2020-11-30Add default configJaime Martinez
Use DefaultConfig as global
2020-11-30Add zip config flagsJaime Martinez
Adds a config package with specific zip configuration structure that can be shared between packages.
2020-11-10Allow to refresh an existing cached archives when accessedKamil Trzciński
If archive is broken (which should in fact never happen) we fail the first request and mark the cache entry as invalid. It will be refreshed on a next try.
2020-10-29Refactor cache refresh tests469-negative-cacheJaime Martinez
2020-10-29Update test with configurable refreshJaime Martinez
remove commented test
2020-10-29Do not refresh errored archivesJaime Martinez
Remove to-do and update test
2020-10-28Merge branch 'make-cache-configurable' into 'master'Vladimir Shushlin
Make timeouts for ZIP configurable See merge request gitlab-org/gitlab-pages!385
2020-10-28Rename openTiemoutmake-cache-configurableJaime Martinez
2020-10-27Make timeouts for ZIP configurableKamil Trzciński
2020-10-27Properly handle processing failures with `5xx`Kamil Trzciński
Prior to this change ALL processing failures unrelated to "file missing" would return `404`. This is inaccurate. Processing failures are failure of GitLab Pages and `500` should be returned in such cases.
2020-10-15Metrics miss `op` configuredfix-metrics-missing-opKamil Trzciński
2020-10-15Merge branch 'fix-zip-directories' into 'master'Vladimir Shushlin
Fix support for archives without directory structure Closes #482 See merge request gitlab-org/gitlab-pages!373
2020-10-14Add a sleep to ensure that cache item is evictedfix-flaky-cache-evictKamil Trzciński
2020-10-14Apply 2 suggestion(s) to 1 file(s)fix-zip-directoriesKamil Trzciński
2020-10-13This workarounds a bug in `patrickmn/go-cache`Kamil Trzciński
If an expired item is set, it will not be evicted. This workarounds a known bug: https://github.com/patrickmn/go-cache/issues/48
2020-10-13Fix support for archives without directory structureKamil Trzciński
In case of archives that do not store directories we would fail to automatically serve `index.html` for a `/` type of request. This makes us create directories when traversing the file list. ``` Archive: public-without-dirs.zip Length Date Time Name --------- ---------- ----- ---- 40 2020-09-15 02:47 public/subdir/hello.html 14 2020-09-15 03:35 public/subdir/2bp3Qzs9CCW7cGnxhghdavZ2bJDTzvu2mrj6O8Yqjm3YMRozRZULxBBKzJXCK16GlsvO1GlbCyONf2LTCndJU9cIr5T3PLDN7XnfG00lEmf9DWHPXiAbbi0v8ioSjnoTqdyjELVKuhsGRGxeV9RptLMyGnbpJx1w2uECiUQSHrRVQNuq2xoHLlk30UAmis1EhGXP5kKprzHxuavsKMdT4XRP0d79tie4tjqtfRsP4y60hmNS1vSujrxzhDa 33 2020-09-15 02:47 public/subdir/linked.html 31 2020-09-15 02:47 public/404.html 33 2020-09-15 02:47 public/index.html 258 2020-10-13 12:40 public/bad_symlink.html 18 2020-10-13 12:40 public/symlink.html ```