Age | Commit message (Collapse) | Author |
|
- Part of https://gitlab.com/gitlab-org/gitlab-pages/-/issues/24
- Original feature added in https://gitlab.com/gitlab-org/gitlab-pages/-/merge_requests/336
- Feature was verified working in in production: https://ops.gitlab.net/gitlab-cookbooks/chef-repo/-/merge_requests/4247#note_92527
- Feature toggle docs being removed in https://gitlab.com/gitlab-org/gitlab/-/merge_requests/42759
|
|
|
|
Renames all metrics to make them easier to understand.
Adds a missing metric for number of open requests made by httprange.
|
|
|
|
|
|
DRY transport.
Add buckets to responsiveness metric.
|
|
|
|
|
|
|
|
Add vfs.VFS implementation for zip
Fix build errors
Clean zip vfs
Add tests for Root
Add zip serving metric
Return a zip.Instance() when source == zip
Add simple acceptance test for zip serving
Use correct contents
No need to start testServer in go routine
|
|
Fix https://gitlab.com/gitlab-org/gitlab-pages/-/issues/24
|
|
Update metric name
|
|
|
|
Remove metrics_test.go and leave responsibility of testing to
acceptance_test.go with `TestPrometheusMetricsCanBeScraped`.
Update TODOs with issue links.
|
|
Take apiCalled as arg
|
|
|
|
This reverts commit 185e0a0e5c621f350335495291c535e5c05df89b, reversing
changes made to a3365a7b1b41b3dee206cbcf27e915ee45d556a5.
|
|
This reverts merge request !305
|
|
|
|
|
|
use correct reference
|
|
Simplify responsibilities of auth package and reduce
complexity of app.go deciding which content to serve.
|
|
Add acceptance test and some more domains for testing
Move namespace domain serving logic
Restore go.sum
Remove redundant return
Fix linter
|
|
Update labkit
|
|
|
|
|
|
This will allow namespace domains to serve custom 404.html files
for public projects. This change adds a check to check for permision
only if it's serving a namespace domain with access controls enabled.
|
|
|
|
|
|
Register ServingTime.
Rename DiskServingFileSize so that it's a histogram without
needing labels
|
|
- ineffassign
- misspell
- structcheck
- typecheck
- unconvert
- unused
- varcheck
- whitespace
|
|
Use filename from closure
|
|
|
|
|
|
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`
|
|
|
|
|
|
|
|
guide
|
|
(cherry picked from commit d6364c55ab51708b3ec92cde07ffa80fa9b84765)
|
|
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.
|
|
* master:
Add support for the port component in the Host header
Base64 decode GitLab API secret
|
|
* master:
Check presence of GitLab API secret when building a domains source
Make GitLab API Secret a supported parameter
Improve error reporting in the main package
Check if GitLab API secret has been provided too
Avoid using `testify/assert` in favor of `require`
Test domains source not fully configured
Improve error handing when creating new domains config source
Fix formatting in internal/source/gitlab/client/client_test.go
Conflicts:
acceptance_test.go
internal/source/gitlab/client/client_test.go
|
|
before using it.
|
|
|
|
|
|
|
|
|
|
|
|
* master:
Improve GitLab client tests
Change GitLab API JWT expire time to 5s
Read the context of api-secret-key file and store it in app config
Improve gitlab client tests
Ensure there is response before defer close it in gitlab.GetVirtualDomain
Document acrguments for gitlab.NewClient
Add HTTP client to consume GitLab internal API for Pages
|