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
0af3d2b7
Commit
0af3d2b7
authored
Oct 28, 2020
by
rossfuhrman
Committed by
Tiger Watson
Oct 28, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add secret detection token revocation columns
These columns will be used in conjunction with a revocation API
parent
04c6d8f7
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
50 additions
and
0 deletions
+50
-0
changelogs/unreleased/270208-add-application-settings-columns.yml
...gs/unreleased/270208-add-application-settings-columns.yml
+5
-0
db/migrate/20201021152210_add_secret_detection_token_revocation_application_settings.rb
...secret_detection_token_revocation_application_settings.rb
+21
-0
db/migrate/20201021190539_add_text_limit_to_secret_detection_token_revocation_application_settings.rb
...secret_detection_token_revocation_application_settings.rb
+17
-0
db/schema_migrations/20201021152210
db/schema_migrations/20201021152210
+1
-0
db/schema_migrations/20201021190539
db/schema_migrations/20201021190539
+1
-0
db/structure.sql
db/structure.sql
+5
-0
No files found.
changelogs/unreleased/270208-add-application-settings-columns.yml
0 → 100644
View file @
0af3d2b7
---
title
:
Add secret detection token revocation columns
merge_request
:
45912
author
:
type
:
added
db/migrate/20201021152210_add_secret_detection_token_revocation_application_settings.rb
0 → 100644
View file @
0af3d2b7
# frozen_string_literal: true
class
AddSecretDetectionTokenRevocationApplicationSettings
<
ActiveRecord
::
Migration
[
6.0
]
DOWNTIME
=
false
def
up
add_column
:application_settings
,
:secret_detection_token_revocation_enabled
,
:boolean
,
default:
false
,
null:
false
add_column
:application_settings
,
:secret_detection_token_revocation_url
,
:text
,
null:
true
# rubocop:disable Migration/AddLimitToTextColumns
add_column
:application_settings
,
:encrypted_secret_detection_token_revocation_token
,
:text
add_column
:application_settings
,
:encrypted_secret_detection_token_revocation_token_iv
,
:text
end
def
down
remove_column
:application_settings
,
:secret_detection_token_revocation_enabled
remove_column
:application_settings
,
:secret_detection_token_revocation_url
remove_column
:application_settings
,
:encrypted_secret_detection_token_revocation_token
remove_column
:application_settings
,
:encrypted_secret_detection_token_revocation_token_iv
end
end
db/migrate/20201021190539_add_text_limit_to_secret_detection_token_revocation_application_settings.rb
0 → 100644
View file @
0af3d2b7
# frozen_string_literal: true
class
AddTextLimitToSecretDetectionTokenRevocationApplicationSettings
<
ActiveRecord
::
Migration
[
6.0
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
disable_ddl_transaction!
def
up
add_text_limit
:application_settings
,
:secret_detection_token_revocation_url
,
255
end
def
down
remove_text_limit
:application_settings
,
:secret_detection_token_revocation_url
end
end
db/schema_migrations/20201021152210
0 → 100644
View file @
0af3d2b7
853dbc604fc8ce4d82e6040aa7a7970ae194f09bafb2749077cd9f48d2708eac
\ No newline at end of file
db/schema_migrations/20201021190539
0 → 100644
View file @
0af3d2b7
1d0689b5182ac391473075aeabb0e341fb8634dbf0aa87dbb6d48cc0e61d2ada
\ No newline at end of file
db/structure.sql
View file @
0af3d2b7
...
...
@@ -9297,11 +9297,16 @@ CREATE TABLE application_settings (
encrypted_ci_jwt_signing_key
text
,
encrypted_ci_jwt_signing_key_iv
text
,
container_registry_expiration_policies_worker_capacity
integer
DEFAULT
0
NOT
NULL
,
secret_detection_token_revocation_enabled
boolean
DEFAULT
false
NOT
NULL
,
secret_detection_token_revocation_url
text
,
encrypted_secret_detection_token_revocation_token
text
,
encrypted_secret_detection_token_revocation_token_iv
text
,
CONSTRAINT
app_settings_registry_exp_policies_worker_capacity_positive
CHECK
((
container_registry_expiration_policies_worker_capacity
>=
0
)),
CONSTRAINT
check_2dba05b802
CHECK
((
char_length
(
gitpod_url
)
<=
255
)),
CONSTRAINT
check_51700b31b5
CHECK
((
char_length
(
default_branch_name
)
<=
255
)),
CONSTRAINT
check_57123c9593
CHECK
((
char_length
(
help_page_documentation_base_url
)
<=
255
)),
CONSTRAINT
check_85a39b68ff
CHECK
((
char_length
(
encrypted_ci_jwt_signing_key_iv
)
<=
255
)),
CONSTRAINT
check_9a719834eb
CHECK
((
char_length
(
secret_detection_token_revocation_url
)
<=
255
)),
CONSTRAINT
check_9c6c447a13
CHECK
((
char_length
(
maintenance_mode_message
)
<=
255
)),
CONSTRAINT
check_d03919528d
CHECK
((
char_length
(
container_registry_vendor
)
<=
255
)),
CONSTRAINT
check_d820146492
CHECK
((
char_length
(
spam_check_endpoint_url
)
<=
255
)),
...
...
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