Age | Commit message (Collapse) | Author |
|
Simplifies Makefiles to not use `.GOPATH` symlink.
Updates `test.yaml` to reuse the Go cache in between jobs instead of
removing and downloading all the dependencies for every job.
Changelog: other
|
|
|
|
|
|
LabKit has reached a 1.0.0 milestone :tada:
See https://gitlab.com/gitlab-org/labkit/-/releases/v1.0.0
|
|
|
|
|
|
This reverts commit 7f8e9bd39def730616a4c7d1d5f00ee6ca9ea76a.
|
|
This adds a per-process rate limiting
of the incoming requests and connections.
This assume two:
- Requests generate a pressure on Object Storage
- New TLS connections generate a pressure on CPU
due to TLS handshake (generating and exchanging
asymmetric keys)
|
|
|
|
Support for statically compressed brotli content-encoding
See merge request gitlab-org/gitlab-pages!359
|
|
Avoid strange EOF error when the encoding is wrong
|
|
|
|
|
|
Fix https://gitlab.com/gitlab-org/gitlab-pages/-/issues/24
|
|
Introudce github.com/cenkalti/backoff/v4 library to use exponential
backoff when polling the Status API.
|
|
This reverts commit 185e0a0e5c621f350335495291c535e5c05df89b, reversing
changes made to a3365a7b1b41b3dee206cbcf27e915ee45d556a5.
|
|
This reverts merge request !305
|
|
|
|
|
|
|
|
Removed test assertion for metric as histograms are not collectors
so we can't really test it. Left the test though as it's still valuable.
|
|
|
|
Remove references to ./bin/golint, ./bin/gocycle and remove
_support/ directory.
Add formatting rule to .golangci.yml for goimports and local imports.
|
|
|
|
As part of https://gitlab.com/gitlab-org/gitlab-pages/-/issues/385
we have introduced the use of a custom `.golangci.yml` file with some
custom rules for linting.
This replaces the need of downloading and using `golint`, `gofmt`
`go vet` and `gocyclo` manually. We take advantage of the custom
`golangci-lint` docker image as stated in the [Automatic lintinb]
(https://docs.gitlab.com/ee/development/go_guide/#automatic-linting)
section of the Go standards and style guidelines.
This iteration enables a subset of linters, with the remaining
of them enabled on a separate MR as described in the issue above.
The main changes introduced by this linter include:
- gosec: potential hardcoded credentials
- goconst: DRY by declaring and using constants
- gosimple: reduce statements complexity and improve return statements
|
|
|
|
|
|
|
|
Set the r.URL.Scheme via middleware and log mismatches with the https flag in the context
See merge request gitlab-org/gitlab-pages!225
|
|
them in the appropriate http.Request fields
|
|
|
|
Revert "Merge branch 'master' into 'master'"
This reverts commit 1e9f978d74ae0e1d536f1984635021b368802ccb, reversing
changes made to 86d619069f226d40d3d0ba97a243db384f133d5f.
|
|
Watch a file to configure which domains should use the new gitlab config source
See merge request gitlab-org/gitlab-pages!211
|
|
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.
|
|
After running `go test` ran `go mod tidy` to cleanup Go module files.
Resolves #316
|
|
* 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
Release 1.12.0
Add HTTP client to consume GitLab internal API for Pages
Add minimal support for the api-secret-key config flag
Conflicts:
internal/source/gitlab/client.go
|
|
At the moment this supports only getting virtual domain configuration
for given host.
Related to https://gitlab.com/gitlab-org/gitlab-pages/issues/253.
|
|
|
|
|
|
to cleanup after removing Admin gRPC API.
|
|
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
|
|
|
|
|
|
* Bump all go mod vendoring to current releases.
* Fix gitaly CheckToken() call.
|
|
Apply a minimal upgrade to Go modules.
* Fix various tests.
* Drop vendoring.
|