Age | Commit message (Collapse) | Author |
|
Remove osext
See merge request gitlab-org/gitlab-pages!488
|
|
|
|
|
|
|
|
|
|
Changelog: other
|
|
|
|
|
|
|
|
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.
|
|
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.
|
|
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.
|