Add latest changes from gitlab-org/gitlab@master
This commit is contained in:
parent
86eb30c847
commit
4f45a841a1
26 changed files with 74 additions and 56 deletions
|
@ -1,5 +1,6 @@
|
||||||
- name: "Legacy database configuration"
|
- name: "Legacy database configuration"
|
||||||
announcement_milestone: "14.3"
|
announcement_milestone: "14.3"
|
||||||
|
announcement_date: "2021-09-22"
|
||||||
removal_milestone: "15.0"
|
removal_milestone: "15.0"
|
||||||
body: |
|
body: |
|
||||||
The syntax of [GitLabs database](https://docs.gitlab.com/omnibus/settings/database.html)
|
The syntax of [GitLabs database](https://docs.gitlab.com/omnibus/settings/database.html)
|
||||||
|
|
|
@ -11,4 +11,4 @@
|
||||||
tiers: Premium
|
tiers: Premium
|
||||||
issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/337993
|
issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/337993
|
||||||
documentation_url: https://docs.gitlab.com/ee/administration/audit_events.html#repository-push
|
documentation_url: https://docs.gitlab.com/ee/administration/audit_events.html#repository-push
|
||||||
announcement_date: 2021-09-02 # https://gitlab.com/gitlab-org/gitlab/-/merge_requests/69024
|
announcement_date: "2021-09-02" # https://gitlab.com/gitlab-org/gitlab/-/merge_requests/69024
|
||||||
|
|
|
@ -11,5 +11,5 @@
|
||||||
tiers: [Premium, Ultimate]
|
tiers: [Premium, Ultimate]
|
||||||
issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/337384
|
issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/337384
|
||||||
documentation_url: https://docs.gitlab.com/ee/integration/kerberos.html#upgrading-from-password-based-to-ticket-based-kerberos-sign-ins
|
documentation_url: https://docs.gitlab.com/ee/integration/kerberos.html#upgrading-from-password-based-to-ticket-based-kerberos-sign-ins
|
||||||
announcement_date: 2021-22-09
|
announcement_date: "2021-09-22"
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
- name: "Rename Task Runner pod to Toolbox" # The name of the feature to be deprecated
|
- name: "Rename Task Runner pod to Toolbox" # The name of the feature to be deprecated
|
||||||
announcement_milestone: "14.2" # The milestone when this feature was first announced as deprecated.
|
announcement_milestone: "14.2" # The milestone when this feature was first announced as deprecated.
|
||||||
|
announcement_date: "2021-09-22"
|
||||||
removal_milestone: "14.4" # the milestone when this feature is planned to be removed
|
removal_milestone: "14.4" # the milestone when this feature is planned to be removed
|
||||||
body: | # Do not modify this line, instead modify the lines below.
|
body: | # Do not modify this line, instead modify the lines below.
|
||||||
The Task Runner pod is used to execute periodic housekeeping tasks within the GitLab application and is often confused with the GitLab Runner. Thus, [Task Runner will be renamed to Toolbox](https://gitlab.com/groups/gitlab-org/charts/-/epics/25).
|
The Task Runner pod is used to execute periodic housekeeping tasks within the GitLab application and is often confused with the GitLab Runner. Thus, [Task Runner will be renamed to Toolbox](https://gitlab.com/groups/gitlab-org/charts/-/epics/25).
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
- name: "GitLab Serverless"
|
- name: "GitLab Serverless"
|
||||||
announcement_milestone: "14.3"
|
announcement_milestone: "14.3"
|
||||||
|
announcement_date: "2021-09-22"
|
||||||
removal_milestone: "15.0"
|
removal_milestone: "15.0"
|
||||||
body: |
|
body: |
|
||||||
[GitLab Serverless](https://docs.gitlab.com/ee/user/project/clusters/serverless/) is a feature set to support Knative-based serverless development with automatic deployments and monitoring.
|
[GitLab Serverless](https://docs.gitlab.com/ee/user/project/clusters/serverless/) is a feature set to support Knative-based serverless development with automatic deployments and monitoring.
|
||||||
|
|
|
@ -22,6 +22,8 @@ then run `bin/rake gitlab:docs:compile_deprecations`.
|
||||||
### <%= deprecation["name"]%>
|
### <%= deprecation["name"]%>
|
||||||
|
|
||||||
<%= deprecation["body"] -%>
|
<%= deprecation["body"] -%>
|
||||||
|
|
||||||
|
Announced: <%= deprecation["announcement_date"]%>
|
||||||
<%- end -%>
|
<%- end -%>
|
||||||
<%- end -%>
|
<%- end -%>
|
||||||
<%- else -%>
|
<%- else -%>
|
||||||
|
|
|
@ -12,7 +12,8 @@
|
||||||
|
|
||||||
- name: "Feature name" # The name of the feature to be deprecated
|
- name: "Feature name" # The name of the feature to be deprecated
|
||||||
announcement_milestone: "XX.YY" # The milestone when this feature was first announced as deprecated.
|
announcement_milestone: "XX.YY" # The milestone when this feature was first announced as deprecated.
|
||||||
removal_milestone: "XX.YY" # the milestone when this feature is planned to be removed
|
announcement_date: "YYYY-MM-DD" # The date of the milestone release when this feature was first announced as deprecated
|
||||||
|
removal_milestone: "XX.YY" # The milestone when this feature is planned to be removed
|
||||||
body: | # Do not modify this line, instead modify the lines below.
|
body: | # Do not modify this line, instead modify the lines below.
|
||||||
<!-- START OF BODY COMMENT
|
<!-- START OF BODY COMMENT
|
||||||
|
|
||||||
|
@ -29,5 +30,4 @@
|
||||||
documentation_url: # (optional) This is a link to the current documentation page
|
documentation_url: # (optional) This is a link to the current documentation page
|
||||||
image_url: # (optional) This is a link to a thumbnail image depicting the feature
|
image_url: # (optional) This is a link to a thumbnail image depicting the feature
|
||||||
video_url: # (optional) Use the youtube thumbnail URL with the structure of https://img.youtube.com/vi/UNIQUEID/hqdefault.jpg
|
video_url: # (optional) Use the youtube thumbnail URL with the structure of https://img.youtube.com/vi/UNIQUEID/hqdefault.jpg
|
||||||
announcement_date: # YYYY-MM-DD format - the date of the milestone release when this feature was first announced as deprecated
|
|
||||||
removal_date: # (optional - may be required in the future) YYYY-MM-DD format - the date of the milestone release when this feature is planned to be removed
|
removal_date: # (optional - may be required in the future) YYYY-MM-DD format - the date of the milestone release when this feature is planned to be removed
|
||||||
|
|
|
@ -1,14 +0,0 @@
|
||||||
---
|
|
||||||
# Suggestion: gitlab.HeaderGerunds
|
|
||||||
#
|
|
||||||
# Checks for headers that start with gerunds (ing words).
|
|
||||||
# Related to: https://docs.gitlab.com/ee/development/documentation/structure.html
|
|
||||||
#
|
|
||||||
# For a list of all options, see https://errata-ai.gitbook.io/vale/getting-started/styles
|
|
||||||
extends: substitution
|
|
||||||
message: 'Can this header start with an imperative verb, instead of a gerund (ing word)?'
|
|
||||||
link: https://docs.gitlab.com/ee/development/documentation/styleguide/#heading-titles
|
|
||||||
level: suggestion
|
|
||||||
scope: heading
|
|
||||||
swap:
|
|
||||||
- '^\w*ing.*': 'Troubleshooting'
|
|
|
@ -678,6 +678,8 @@ Response:
|
||||||
|
|
||||||
## Reset instance's runner registration token
|
## Reset instance's runner registration token
|
||||||
|
|
||||||
|
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/30942) in GitLab 14.3.
|
||||||
|
|
||||||
Resets the runner registration token for the GitLab instance.
|
Resets the runner registration token for the GitLab instance.
|
||||||
|
|
||||||
```plaintext
|
```plaintext
|
||||||
|
@ -691,6 +693,8 @@ curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" \
|
||||||
|
|
||||||
## Reset project's runner registration token
|
## Reset project's runner registration token
|
||||||
|
|
||||||
|
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/30942) in GitLab 14.3.
|
||||||
|
|
||||||
Resets the runner registration token for a project.
|
Resets the runner registration token for a project.
|
||||||
|
|
||||||
```plaintext
|
```plaintext
|
||||||
|
@ -704,6 +708,8 @@ curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" \
|
||||||
|
|
||||||
## Reset group's runner registration token
|
## Reset group's runner registration token
|
||||||
|
|
||||||
|
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/30942) in GitLab 14.3.
|
||||||
|
|
||||||
Resets the runner registration token for a group.
|
Resets the runner registration token for a group.
|
||||||
|
|
||||||
```plaintext
|
```plaintext
|
||||||
|
|
|
@ -26,6 +26,8 @@ supported using a single PostgreSQL adapter, whereas the new format is changing
|
||||||
|
|
||||||
This deprecation mainly impacts users compiling GitLab from source because Omnibus will handle this configuration automatically.
|
This deprecation mainly impacts users compiling GitLab from source because Omnibus will handle this configuration automatically.
|
||||||
|
|
||||||
|
Announced: 2021-09-22
|
||||||
|
|
||||||
### Audit events for repository push events
|
### Audit events for repository push events
|
||||||
|
|
||||||
Audit events for [repository events](../administration/audit_events.md#repository-push) are now deprecated and will be removed in GitLab 15.0.
|
Audit events for [repository events](../administration/audit_events.md#repository-push) are now deprecated and will be removed in GitLab 15.0.
|
||||||
|
@ -34,6 +36,8 @@ These events have always been disabled by default and had to be manually enabled
|
||||||
feature flag. Enabling them can cause too many events to be generated which can
|
feature flag. Enabling them can cause too many events to be generated which can
|
||||||
dramatically slow down GitLab instances. For this reason, they are being removed.
|
dramatically slow down GitLab instances. For this reason, they are being removed.
|
||||||
|
|
||||||
|
Announced: 2021-09-02
|
||||||
|
|
||||||
### OmniAuth Kerberos gem
|
### OmniAuth Kerberos gem
|
||||||
|
|
||||||
The `omniauth-kerberos` gem will be removed in our next major release, GitLab 15.0.
|
The `omniauth-kerberos` gem will be removed in our next major release, GitLab 15.0.
|
||||||
|
@ -42,12 +46,16 @@ This gem has not been maintained and has very little usage. We therefore plan to
|
||||||
|
|
||||||
Note that we are not deprecating the Kerberos SPNEGO integration, only the old password-based Kerberos integration.
|
Note that we are not deprecating the Kerberos SPNEGO integration, only the old password-based Kerberos integration.
|
||||||
|
|
||||||
|
Announced: 2021-09-22
|
||||||
|
|
||||||
### GitLab Serverless
|
### GitLab Serverless
|
||||||
|
|
||||||
[GitLab Serverless](../user/project/clusters/serverless/index.md) is a feature set to support Knative-based serverless development with automatic deployments and monitoring.
|
[GitLab Serverless](../user/project/clusters/serverless/index.md) is a feature set to support Knative-based serverless development with automatic deployments and monitoring.
|
||||||
|
|
||||||
We decided to remove the GitLab Serverless features as they never really resonated with our users. Besides, given the continuous development of Kubernetes and Knative, our current implementations do not even work with recent versions.
|
We decided to remove the GitLab Serverless features as they never really resonated with our users. Besides, given the continuous development of Kubernetes and Knative, our current implementations do not even work with recent versions.
|
||||||
|
|
||||||
|
Announced: 2021-09-22
|
||||||
|
|
||||||
## 14.4
|
## 14.4
|
||||||
|
|
||||||
### Rename Task Runner pod to Toolbox
|
### Rename Task Runner pod to Toolbox
|
||||||
|
@ -55,3 +63,5 @@ We decided to remove the GitLab Serverless features as they never really resonat
|
||||||
The Task Runner pod is used to execute periodic housekeeping tasks within the GitLab application and is often confused with the GitLab Runner. Thus, [Task Runner will be renamed to Toolbox](https://gitlab.com/groups/gitlab-org/charts/-/epics/25).
|
The Task Runner pod is used to execute periodic housekeeping tasks within the GitLab application and is often confused with the GitLab Runner. Thus, [Task Runner will be renamed to Toolbox](https://gitlab.com/groups/gitlab-org/charts/-/epics/25).
|
||||||
|
|
||||||
This will result in the rename of the sub-chart: `gitlab/task-runner` to `gitlab/toolbox`. Resulting pods will be named along the lines of `{{ .Release.Name }}-toolbox`, which will often be `gitlab-toolbox`. They will be locatable with the label `app=toolbox`.
|
This will result in the rename of the sub-chart: `gitlab/task-runner` to `gitlab/toolbox`. Resulting pods will be named along the lines of `{{ .Release.Name }}-toolbox`, which will often be `gitlab-toolbox`. They will be locatable with the label `app=toolbox`.
|
||||||
|
|
||||||
|
Announced: 2021-09-22
|
||||||
|
|
|
@ -298,7 +298,7 @@ and [Helm Chart deployments](https://docs.gitlab.com/charts/). They come with ap
|
||||||
Ruby 2.7.4 is required. Refer to [the Ruby installation instructions](../install/installation.md#2-ruby)
|
Ruby 2.7.4 is required. Refer to [the Ruby installation instructions](../install/installation.md#2-ruby)
|
||||||
for how to proceed.
|
for how to proceed.
|
||||||
|
|
||||||
- GitLab 14.3.0 contains background migrations to [address Primary Key overflow risk for tables with an integer PK](https://gitlab.com/groups/gitlab-org/-/epics/4785) for the tables listed below:
|
- GitLab 14.3.0 contains post-deployment migrations to [address Primary Key overflow risk for tables with an integer PK](https://gitlab.com/groups/gitlab-org/-/epics/4785) for the tables listed below:
|
||||||
|
|
||||||
- [`ci_builds.id`](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/70245)
|
- [`ci_builds.id`](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/70245)
|
||||||
- [`ci_builds.stage_id`](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/66688)
|
- [`ci_builds.stage_id`](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/66688)
|
||||||
|
|
|
@ -14,17 +14,32 @@ Compliance report gives you the ability to see a group's merge request activity.
|
||||||
high-level view for all projects in the group. For example, code approved for merging into
|
high-level view for all projects in the group. For example, code approved for merging into
|
||||||
production.
|
production.
|
||||||
|
|
||||||
To access compliance report for a group, go to **{shield}** **Security & Compliance > Compliance**
|
You can use the report to:
|
||||||
on the group's menu.
|
|
||||||
|
- Get an overview of the latest merge request for each project.
|
||||||
|
- See if merge requests were approved and by whom.
|
||||||
|
- See merge request authors.
|
||||||
|
- See the latest [CI/CD pipeline](../../../ci/pipelines/index.md) result for each merge request.
|
||||||
|
|
||||||
|
## View the compliance report for a group
|
||||||
|
|
||||||
|
Prerequisites:
|
||||||
|
|
||||||
|
- You must be an administrator or have the Owner role for the group.
|
||||||
|
|
||||||
|
To view the compliance report:
|
||||||
|
|
||||||
|
1. On the top bar, select **Menu > Groups** and find your group.
|
||||||
|
1. On the left sidebar, select **Security & Compliance > Compliance**.
|
||||||
|
|
||||||
NOTE:
|
NOTE:
|
||||||
Compliance report shows only the latest merge request on each project.
|
The compliance report shows only the latest merge request on each project.
|
||||||
|
|
||||||
## Merge request drawer
|
## Merge request drawer
|
||||||
|
|
||||||
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/299357) in GitLab 14.1.
|
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/299357) in GitLab 14.1.
|
||||||
|
|
||||||
When you click on a row, a drawer is shown that provides further details about the merge
|
When you select a row, a drawer is shown that provides further details about the merge
|
||||||
request:
|
request:
|
||||||
|
|
||||||
- Project name and [compliance framework label](../../project/settings/index.md#compliance-frameworks),
|
- Project name and [compliance framework label](../../project/settings/index.md#compliance-frameworks),
|
||||||
|
@ -36,22 +51,6 @@ request:
|
||||||
- A list of users that approved the merge request.
|
- A list of users that approved the merge request.
|
||||||
- The user that merged the merge request.
|
- The user that merged the merge request.
|
||||||
|
|
||||||
## Use cases
|
|
||||||
|
|
||||||
This feature is for people who care about the compliance status of projects within their group.
|
|
||||||
|
|
||||||
You can use the report to:
|
|
||||||
|
|
||||||
- Get an overview of the latest merge request for each project.
|
|
||||||
- See if merge requests were approved and by whom.
|
|
||||||
- See merge request authors.
|
|
||||||
- See the latest [CI Pipeline](../../../ci/pipelines/index.md) result for each merge request.
|
|
||||||
|
|
||||||
## Permissions
|
|
||||||
|
|
||||||
- On [GitLab Ultimate](https://about.gitlab.com/pricing/) tier.
|
|
||||||
- By **Administrators** and **Group Owners**.
|
|
||||||
|
|
||||||
## Approval status and separation of duties
|
## Approval status and separation of duties
|
||||||
|
|
||||||
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/217939) in [GitLab Ultimate](https://about.gitlab.com/pricing/) 13.3.
|
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/217939) in [GitLab Ultimate](https://about.gitlab.com/pricing/) 13.3.
|
||||||
|
@ -85,14 +84,23 @@ The data provides a comprehensive view with respect to merge commits. It include
|
||||||
merge request author, merge request ID, merge user, pipeline ID, group name, project name, and merge request approvers.
|
merge request author, merge request ID, merge user, pipeline ID, group name, project name, and merge request approvers.
|
||||||
Depending on the merge strategy, the merge commit SHA can be a merge commit, squash commit, or a diff head commit.
|
Depending on the merge strategy, the merge commit SHA can be a merge commit, squash commit, or a diff head commit.
|
||||||
|
|
||||||
To download the Chain of Custody report, navigate to **{shield}** **Security & Compliance > Compliance** on the group's menu and click **List of all merge commits**
|
To download the Chain of Custody report:
|
||||||
|
|
||||||
|
1. On the top bar, select **Menu > Groups** and find your group.
|
||||||
|
1. On the left sidebar, select **Security & Compliance > Compliance**.
|
||||||
|
1. Select **List of all merge commits**.
|
||||||
|
|
||||||
### Commit-specific Chain of Custody Report **(ULTIMATE)**
|
### Commit-specific Chain of Custody Report **(ULTIMATE)**
|
||||||
|
|
||||||
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/267629) in [GitLab Ultimate](https://about.gitlab.com/pricing/) 13.6.
|
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/267629) in [GitLab Ultimate](https://about.gitlab.com/pricing/) 13.6.
|
||||||
|
|
||||||
You can generate a commit-specific Chain of Custody report for a given commit SHA. To do so, select
|
You can generate a commit-specific Chain of Custody report for a given commit SHA.
|
||||||
the dropdown next to the **List of all merge commits** button at the top of the compliance report.
|
|
||||||
|
1. On the top bar, select **Menu > Groups** and find your group.
|
||||||
|
1. On the left sidebar, select **Security & Compliance > Compliance**.
|
||||||
|
1. At the top of the compliance report, to the right of **List of all merge commits**, select the down arrow (**{angle-down}**).
|
||||||
|
1. Enter the merge commit SHA, and then select **Export commit custody report**.
|
||||||
|
SHA and then select **Export commit custody report**.
|
||||||
|
|
||||||
NOTE:
|
NOTE:
|
||||||
The Chain of Custody report download is a CSV file, with a maximum size of 15 MB.
|
The Chain of Custody report download is a CSV file, with a maximum size of 15 MB.
|
||||||
|
|
|
@ -7,7 +7,7 @@ code_quality:
|
||||||
variables:
|
variables:
|
||||||
DOCKER_DRIVER: overlay2
|
DOCKER_DRIVER: overlay2
|
||||||
DOCKER_TLS_CERTDIR: ""
|
DOCKER_TLS_CERTDIR: ""
|
||||||
CODE_QUALITY_IMAGE: "registry.gitlab.com/gitlab-org/ci-cd/codequality:0.85.24"
|
CODE_QUALITY_IMAGE: "registry.gitlab.com/gitlab-org/ci-cd/codequality:0.85.24-gitlab.1"
|
||||||
needs: []
|
needs: []
|
||||||
script:
|
script:
|
||||||
- export SOURCE_CODE=$PWD
|
- export SOURCE_CODE=$PWD
|
||||||
|
|
|
@ -10,7 +10,7 @@ import (
|
||||||
|
|
||||||
"gitlab.com/gitlab-org/labkit/correlation"
|
"gitlab.com/gitlab-org/labkit/correlation"
|
||||||
|
|
||||||
"github.com/dgrijalva/jwt-go"
|
"github.com/golang-jwt/jwt/v4"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
"gitlab.com/gitlab-org/gitlab/workhorse/internal/api"
|
"gitlab.com/gitlab-org/gitlab/workhorse/internal/api"
|
||||||
|
|
|
@ -9,9 +9,9 @@ require (
|
||||||
github.com/alecthomas/chroma v0.7.3
|
github.com/alecthomas/chroma v0.7.3
|
||||||
github.com/aws/aws-sdk-go v1.37.0
|
github.com/aws/aws-sdk-go v1.37.0
|
||||||
github.com/certifi/gocertifi v0.0.0-20200922220541-2c3bb06c6054 // indirect
|
github.com/certifi/gocertifi v0.0.0-20200922220541-2c3bb06c6054 // indirect
|
||||||
github.com/dgrijalva/jwt-go v3.2.0+incompatible
|
|
||||||
github.com/disintegration/imaging v1.6.2
|
github.com/disintegration/imaging v1.6.2
|
||||||
github.com/getsentry/raven-go v0.2.0
|
github.com/getsentry/raven-go v0.2.0
|
||||||
|
github.com/golang-jwt/jwt/v4 v4.0.0
|
||||||
github.com/golang/gddo v0.0.0-20190419222130-af0f2af80721
|
github.com/golang/gddo v0.0.0-20190419222130-af0f2af80721
|
||||||
github.com/golang/protobuf v1.5.2
|
github.com/golang/protobuf v1.5.2
|
||||||
github.com/gomodule/redigo v2.0.0+incompatible
|
github.com/gomodule/redigo v2.0.0+incompatible
|
||||||
|
|
|
@ -207,7 +207,6 @@ github.com/denisenkom/go-mssqldb v0.0.0-20191001013358-cfbb681360f0/go.mod h1:xb
|
||||||
github.com/denisenkom/go-mssqldb v0.9.0/go.mod h1:xbL0rPBG9cCiLr28tMa8zpbdarY27NDyej4t/EjAShU=
|
github.com/denisenkom/go-mssqldb v0.9.0/go.mod h1:xbL0rPBG9cCiLr28tMa8zpbdarY27NDyej4t/EjAShU=
|
||||||
github.com/devigned/tab v0.1.1/go.mod h1:XG9mPq0dFghrYvoBF3xdRrJzSTX1b7IQrvaL9mzjeJY=
|
github.com/devigned/tab v0.1.1/go.mod h1:XG9mPq0dFghrYvoBF3xdRrJzSTX1b7IQrvaL9mzjeJY=
|
||||||
github.com/dgraph-io/badger v1.6.0/go.mod h1:zwt7syl517jmP8s94KqSxTlM6IMsdhYy6psNgSztDR4=
|
github.com/dgraph-io/badger v1.6.0/go.mod h1:zwt7syl517jmP8s94KqSxTlM6IMsdhYy6psNgSztDR4=
|
||||||
github.com/dgrijalva/jwt-go v3.2.0+incompatible h1:7qlOGliEKZXTDg6OTjfoBKDXWrumCAMpl/TFQ4/5kLM=
|
|
||||||
github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ=
|
github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ=
|
||||||
github.com/dgryski/go-farm v0.0.0-20190423205320-6a90982ecee2/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw=
|
github.com/dgryski/go-farm v0.0.0-20190423205320-6a90982ecee2/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw=
|
||||||
github.com/dimchansky/utfbom v1.1.0/go.mod h1:rO41eb7gLfo8SF1jd9F8HplJm1Fewwi4mQvIirEdv+8=
|
github.com/dimchansky/utfbom v1.1.0/go.mod h1:rO41eb7gLfo8SF1jd9F8HplJm1Fewwi4mQvIirEdv+8=
|
||||||
|
@ -304,6 +303,8 @@ github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zV
|
||||||
github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o=
|
github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o=
|
||||||
github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q=
|
github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q=
|
||||||
github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q=
|
github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q=
|
||||||
|
github.com/golang-jwt/jwt/v4 v4.0.0 h1:RAqyYixv1p7uEnocuy8P1nru5wprCh/MH2BIlW5z5/o=
|
||||||
|
github.com/golang-jwt/jwt/v4 v4.0.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg=
|
||||||
github.com/golang-sql/civil v0.0.0-20190719163853-cb61b32ac6fe/go.mod h1:8vg3r2VgvsThLBIFL93Qb5yWzgyZWhEmBwUJWevAkK0=
|
github.com/golang-sql/civil v0.0.0-20190719163853-cb61b32ac6fe/go.mod h1:8vg3r2VgvsThLBIFL93Qb5yWzgyZWhEmBwUJWevAkK0=
|
||||||
github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0/go.mod h1:E/TSTwGwJL78qG/PmXZO1EjYhfJinVAhrmmHX6Z8B9k=
|
github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0/go.mod h1:E/TSTwGwJL78qG/PmXZO1EjYhfJinVAhrmmHX6Z8B9k=
|
||||||
github.com/golang/gddo v0.0.0-20190419222130-af0f2af80721 h1:KRMr9A3qfbVM7iV/WcLY/rL5LICqwMHLhwRXKu99fXw=
|
github.com/golang/gddo v0.0.0-20190419222130-af0f2af80721 h1:KRMr9A3qfbVM7iV/WcLY/rL5LICqwMHLhwRXKu99fXw=
|
||||||
|
|
|
@ -14,7 +14,7 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/dgrijalva/jwt-go"
|
"github.com/golang-jwt/jwt/v4"
|
||||||
|
|
||||||
"gitlab.com/gitlab-org/gitlab/workhorse/internal/api"
|
"gitlab.com/gitlab-org/gitlab/workhorse/internal/api"
|
||||||
"gitlab.com/gitlab-org/gitlab/workhorse/internal/filestore"
|
"gitlab.com/gitlab-org/gitlab/workhorse/internal/filestore"
|
||||||
|
|
|
@ -10,7 +10,7 @@ import (
|
||||||
"strconv"
|
"strconv"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/dgrijalva/jwt-go"
|
"github.com/golang-jwt/jwt/v4"
|
||||||
|
|
||||||
"gitlab.com/gitlab-org/labkit/log"
|
"gitlab.com/gitlab-org/labkit/log"
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/dgrijalva/jwt-go"
|
"github.com/golang-jwt/jwt/v4"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
"gocloud.dev/blob"
|
"gocloud.dev/blob"
|
||||||
|
|
||||||
|
|
|
@ -186,12 +186,15 @@ func (r *Resizer) Inject(w http.ResponseWriter, req *http.Request, paramsData st
|
||||||
}
|
}
|
||||||
defer imageFile.reader.Close()
|
defer imageFile.reader.Close()
|
||||||
|
|
||||||
|
widthLabelVal := strconv.Itoa(int(params.Width))
|
||||||
|
|
||||||
outcome.originalFileSize = imageFile.contentLength
|
outcome.originalFileSize = imageFile.contentLength
|
||||||
|
|
||||||
setLastModified(w, imageFile.lastModified)
|
setLastModified(w, imageFile.lastModified)
|
||||||
// If the original file has not changed, then any cached resized versions have not changed either.
|
// If the original file has not changed, then any cached resized versions have not changed either.
|
||||||
if checkNotModified(req, imageFile.lastModified) {
|
if checkNotModified(req, imageFile.lastModified) {
|
||||||
writeNotModified(w)
|
writeNotModified(w)
|
||||||
|
imageResizeDurations.WithLabelValues(params.ContentType, widthLabelVal).Observe(time.Since(start).Seconds())
|
||||||
outcome.ok(statusClientCache)
|
outcome.ok(statusClientCache)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -221,7 +224,6 @@ func (r *Resizer) Inject(w http.ResponseWriter, req *http.Request, paramsData st
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
widthLabelVal := strconv.Itoa(int(params.Width))
|
|
||||||
imageResizeDurations.WithLabelValues(params.ContentType, widthLabelVal).Observe(time.Since(start).Seconds())
|
imageResizeDurations.WithLabelValues(params.ContentType, widthLabelVal).Observe(time.Since(start).Seconds())
|
||||||
|
|
||||||
outcome.ok(statusSuccess)
|
outcome.ok(statusSuccess)
|
||||||
|
|
|
@ -3,7 +3,7 @@ package secret
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/dgrijalva/jwt-go"
|
"github.com/golang-jwt/jwt/v4"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
@ -14,7 +14,7 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/dgrijalva/jwt-go"
|
"github.com/golang-jwt/jwt/v4"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
"gitlab.com/gitlab-org/labkit/log"
|
"gitlab.com/gitlab-org/labkit/log"
|
||||||
|
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/dgrijalva/jwt-go"
|
"github.com/golang-jwt/jwt/v4"
|
||||||
|
|
||||||
"gitlab.com/gitlab-org/gitlab/workhorse/internal/api"
|
"gitlab.com/gitlab-org/gitlab/workhorse/internal/api"
|
||||||
"gitlab.com/gitlab-org/gitlab/workhorse/internal/helper"
|
"gitlab.com/gitlab-org/gitlab/workhorse/internal/helper"
|
||||||
|
|
|
@ -11,7 +11,7 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/dgrijalva/jwt-go"
|
"github.com/golang-jwt/jwt/v4"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
"gitlab.com/gitlab-org/gitlab/workhorse/internal/api"
|
"gitlab.com/gitlab-org/gitlab/workhorse/internal/api"
|
||||||
|
|
|
@ -3,7 +3,7 @@ package upload
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
"github.com/dgrijalva/jwt-go"
|
"github.com/golang-jwt/jwt/v4"
|
||||||
|
|
||||||
"net/http"
|
"net/http"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
|
@ -14,7 +14,7 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/dgrijalva/jwt-go"
|
"github.com/golang-jwt/jwt/v4"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
"gitlab.com/gitlab-org/gitlab/workhorse/internal/api"
|
"gitlab.com/gitlab-org/gitlab/workhorse/internal/api"
|
||||||
|
|
Loading…
Reference in a new issue