Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
e7041029
Commit
e7041029
authored
Jun 30, 2021
by
Marius Bobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Require encryption on builds tokens
Require encryption on builds tokens Changelog: changed
parent
c79db67d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
14 deletions
+1
-14
app/models/ci/build.rb
app/models/ci/build.rb
+1
-2
config/feature_flags/development/ci_builds_tokens_required_encryption.yml
...lags/development/ci_builds_tokens_required_encryption.yml
+0
-8
lib/gitlab/ci/features.rb
lib/gitlab/ci/features.rb
+0
-4
No files found.
app/models/ci/build.rb
View file @
e7041029
...
...
@@ -193,8 +193,7 @@ module Ci
acts_as_taggable
add_authentication_token_field
:token
,
encrypted:
->
{
Gitlab
::
Ci
::
Features
.
require_builds_token_encryption?
?
:required
:
:optional
}
add_authentication_token_field
:token
,
encrypted: :required
before_save
:ensure_token
before_destroy
{
unscoped_project
}
...
...
config/feature_flags/development/ci_builds_tokens_required_encryption.yml
deleted
100644 → 0
View file @
c79db67d
---
name
:
ci_builds_tokens_required_encryption
introduced_by_url
:
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/63874
rollout_issue_url
:
https://gitlab.com/gitlab-org/gitlab/-/issues/333566
milestone
:
'
14.0'
type
:
development
group
:
group::pipeline execution
default_enabled
:
false
lib/gitlab/ci/features.rb
View file @
e7041029
...
...
@@ -29,10 +29,6 @@ module Gitlab
def
self
.
gldropdown_tags_enabled?
::
Feature
.
enabled?
(
:gldropdown_tags
,
default_enabled: :yaml
)
end
def
self
.
require_builds_token_encryption?
Feature
.
enabled?
(
:ci_builds_tokens_required_encryption
,
default_enabled: :yaml
)
end
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment