Skip to content
GitLab
Next
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
GitLab
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
4
Snippets
Groups
Projects
Show more breadcrumbs
GitLab.org
GitLab
Commits
035b74a6
Commit
035b74a6
authored
9 months ago
by
🤖 GitLab Bot 🤖
Browse files
Options
Downloads
Plain Diff
Automatic merge of gitlab-org/gitlab master
parents
1e6bbdfc
8bc19263
No related branches found
No related tags found
3 merge requests
!162233
Draft: Script to update Topology Service Gem
,
!153999
Syncing master into gitlab-ee
,
!153995
Restore Canonical -> Security mirroring
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
doc/subscriptions/customers_portal.md
+1
-1
1 addition, 1 deletion
doc/subscriptions/customers_portal.md
lib/gitlab/ci/jwt_v2.rb
+1
-2
1 addition, 2 deletions
lib/gitlab/ci/jwt_v2.rb
spec/lib/gitlab/ci/jwt_v2_spec.rb
+1
-2
1 addition, 2 deletions
spec/lib/gitlab/ci/jwt_v2_spec.rb
with
3 additions
and
5 deletions
doc/subscriptions/customers_portal.md
+
1
−
1
View file @
035b74a6
...
...
@@ -24,7 +24,7 @@ If you registered for Customers Portal with your GitLab.com account, sign in wit
To sign in to Customers Portal using your GitLab.com account:
1.
Go to
[
Customers Portal
](
https://customers.gitlab.com/customers/sign_in
)
.
1.
Select
**Continue with
your
GitLab.com account**
.
1.
Select
**Continue with GitLab.com account**
.
To sign in to Customers Portal with your email and to receive a one-time sign-in link:
...
...
This diff is collapsed.
Click to expand it.
lib/gitlab/ci/jwt_v2.rb
+
1
−
2
View file @
035b74a6
...
...
@@ -5,11 +5,10 @@ module Ci
class
JwtV2
<
Jwt
include
Gitlab
::
Utils
::
StrongMemoize
DEFAULT_AUD
=
Settings
.
gitlab
.
base_url
GITLAB_HOSTED_RUNNER
=
'gitlab-hosted'
SELF_HOSTED_RUNNER
=
'self-hosted'
def
self
.
for_build
(
build
,
aud:
DEFAULT_AUD
,
target_audience:
nil
)
def
self
.
for_build
(
build
,
aud
:,
target_audience:
nil
)
new
(
build
,
ttl:
build
.
metadata_timeout
,
aud:
aud
,
target_audience:
target_audience
).
encoded
end
...
...
This diff is collapsed.
Click to expand it.
spec/lib/gitlab/ci/jwt_v2_spec.rb
+
1
−
2
View file @
035b74a6
...
...
@@ -14,7 +14,7 @@
let
(
:pipeline
)
{
build_stubbed
(
:ci_pipeline
,
ref:
'auto-deploy-2020-03-19'
)
}
let
(
:runner
)
{
build_stubbed
(
:ci_runner
)
}
let
(
:aud
)
{
described_class
::
DEFAULT_AUD
}
let
(
:aud
)
{
nil
}
let
(
:target_audience
)
{
nil
}
let
(
:build
)
do
...
...
@@ -49,7 +49,6 @@
it
'has correct values for the standard JWT attributes'
do
aggregate_failures
do
expect
(
payload
[
:iss
]).
to
eq
(
Gitlab
.
config
.
gitlab
.
url
)
expect
(
payload
[
:aud
]).
to
eq
(
Settings
.
gitlab
.
base_url
)
expect
(
payload
[
:sub
]).
to
eq
(
"project_path:
#{
project
.
full_path
}
:ref_type:branch:ref:
#{
pipeline
.
source_ref
}
"
)
end
end
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment