Age | Commit message (Collapse) | Author | |
---|---|---|---|
2022-07-01 | Enable FF_ENABLE_PLACEHOLDERS by default619-enable-placeholders-by-default | Jaime Martinez | |
Changelog: added | |||
2022-07-01 | Merge branch 'refactor/artifact-try-make-request' into 'master' | Jaime Martinez | |
refactor: remove host out of Artifact.TryMakeRequest Closes #760 See merge request gitlab-org/gitlab-pages!787 | |||
2022-06-30 | Merge branch 'fix/log-empty-artifact' into 'master' | Jaime Martinez | |
fix: stop logging an empty artifact server if the address is inferred See merge request gitlab-org/gitlab-pages!794 | |||
2022-06-28 | Improve consistency of log fields | feistel | |
2022-06-28 | Merge branch 'feat/configurable-redirects' into 'master' | Jaime Martinez | |
feat: make _redirects limits configurable See merge request gitlab-org/gitlab-pages!778 | |||
2022-06-27 | Simplify validation test checks | Nejc Habjan | |
2022-06-27 | Initialize redirects config with default values | Nejc Habjan | |
2022-06-27 | Apply maintainer review suggestions | Nejc Habjan | |
2022-06-27 | Apply review suggestion | Vishal Tak | |
2022-06-27 | Swap int casts for MaxConfigSize | Nejc Habjan | |
2022-06-27 | Set up redirects config for unit tests | Nejc Habjan | |
2022-06-27 | Apply review suggestions | Nejc Habjan | |
2022-06-27 | Make _redirects limits configurable | Nejc Habjan | |
Changelog: added | |||
2022-06-27 | Do not log an error when serving 404 in routing middleware | feistel | |
2022-06-25 | Move custom headers parsing into config loading | feistel | |
2022-06-22 | Serve 404 if ctx is canceled while resolving a domain | feistel | |
2022-06-22 | Fix logging an empty artifact server if the address is inferred | feistel | |
2022-06-22 | Merge branch 'fix-redirects' into 'master' | Jaime Martinez | |
Fix domain level redirects See merge request gitlab-org/gitlab-pages!790 | |||
2022-06-21 | Merge branch 'jv-clear-timezone' into 'master' | Vladimir Shushlin | |
Clear timezones from cached zip entries See merge request gitlab-org/gitlab-pages!791 | |||
2022-06-21 | Clear timezones from cached zip entries | Jacob Vosmaer | |
In https://gitlab.com/gitlab-org/gitlab-pages/-/issues/702 we discovered that by caching many `*zip.File` instances, we end up storing many Go timezone objects on the heap: one per cached `*zip.File`. This adds up to about 25% of the heap size. In this commit we set the timestamp of `*zip.File` to UTC. Because Go re-uses a single timezone object for UTC, this causes the original timezone objects of the `*zip.File` instances to be garbage collected. This reduces the heap size. Here is an example program that demonstrates the effect: ```golang package main import ( "archive/zip" "log" "os" "runtime/pprof" ) func main() { if err := load(os.Args[1]); err != nil { log.Fatal(err) } log.Printf("load finished: %d archives", len(readers)) pprof.WriteHeapProfile(os.Stdout) } var readers []*zip.ReadCloser func load(filename string) error { for i := 0; i < 1000; i++ { zr, err := zip.OpenReader(filename) if err != nil { return err } if os.Getenv("FORCE_UTC") == "1" { for _, zf := range zr.File { zf.Modified = zf.Modified.UTC() } } readers = append(readers, zr) } return nil } ``` | |||
2022-06-20 | Fix domain level redirectsfix-redirects | Vishal Tak | |
Do not allow domain level redirects through special characters Changelog: fixed | |||
2022-06-17 | Properly handle io.copy errors | feistel | |
Changelog: added | |||
2022-06-15 | Remove host out of Artifact.TryMakeRequest | feistel | |
2022-06-05 | Refactor acme tests and middleware for lazy domain resolution | feistel | |
2022-06-03 | Merge branch 'tls-metrics' into 'master' | Vladimir Shushlin | |
Add TLS for metrics See merge request gitlab-org/gitlab-pages!772 | |||
2022-06-03 | Remove IsHTTPS field | Vishal Tak | |
2022-06-03 | Merge branch 'feat/infer-artifact-server' into 'master' | Vladimir Shushlin | |
feat: infer artifacts-server from internal server unless it's set explicitly Closes #747 See merge request gitlab-org/gitlab-pages!775 | |||
2022-06-02 | Use normalized value to infer artifacts server | Vishal Tak | |
2022-06-02 | Use IsHTTPS field to check if metrics conn type | Vishal Tak | |
2022-06-02 | Use TLSConfig and remove IsHTTPS in Metrics config | Vishal Tak | |
Add unit tests and move acceptance tests | |||
2022-06-02 | Add support for tls for metrics | Vishal Tak | |
Changelog: added | |||
2022-06-02 | Merge branch 'perf/reduce-lookup-path' into 'master' | Jaime Martinez | |
refactor: reduce lookup path requests See merge request gitlab-org/gitlab-pages!753 | |||
2022-06-01 | Add comment about https redirect in authorization middleware | feistel | |
2022-06-01 | Add missing newline | Jaime Martinez | |
2022-06-01 | Merge branch 'fix/domain-fail-metric' into 'master' | Vladimir Shushlin | |
fix: move DomainsSourceFailures increase into the gitlab client See merge request gitlab-org/gitlab-pages!773 | |||
2022-06-01 | Infer artifacts-server from internal server unless it's set explicitly | feistel | |
2022-05-30 | Merge branch 'feat/unix-sock' into 'master' | Vladimir Shushlin | |
feat: add support for socket listeners See merge request gitlab-org/gitlab-pages!758 | |||
2022-05-26 | Move DomainsSourceFailures increase into the gitlab client | feistel | |
Should also fix inconsistencies and make the metrics useful if compared to DomainsSourceAPIReqTotal | |||
2022-05-22 | Reduce lookup path requests in the handler pipeline | feistel | |
2022-05-20 | Propagate errors for better handling | feistel | |
2022-05-16 | Add logs for unexpected events | Vishal Tak | |
2022-05-16 | Improve the error messages | Vishal Tak | |
2022-05-16 | Add resource range details for error while reading zip | Vishal Tak | |
2022-05-16 | Add logs for more visibility in 404s and archive corruption event | Vishal Tak | |
2022-05-16 | Merge branch 'refactor/abstract-artifact-middleware' into 'master' | Jaime Martinez | |
refactor: move artifact resolution to a separate middleware See merge request gitlab-org/gitlab-pages!765 | |||
2022-05-07 | Update flag documentation to mention socket listeners | feistel | |
2022-05-05 | Abstract artifact handling to a separate middleware | feistel | |
2022-05-04 | Merge branch 'refactor/drop-neterr-temporary' into 'master' | Jaime Martinez | |
refactor: remove net.Error.Temporary usage from domain cache See merge request gitlab-org/gitlab-pages!763 | |||
2022-05-02 | Add nolintlint linter configuration | feistel | |
Require an explanation for nolint rules and warn about unused rules | |||
2022-05-02 | Remove net.Error.Temporary usage from domain cache | feistel | |
net.Error.Temporary is deprecated and Temporary errors are not well-defined. This method should not be used. |