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
0eed6096
Commit
0eed6096
authored
Nov 30, 2021
by
Vasilii Iakliushin
Committed by
Adam Hegyi
Nov 30, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extend database with encrypted field for static objects tokens
parent
96126793
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
0 deletions
+30
-0
db/migrate/20211124132319_add_encrypted_static_objects_external_storage_auth_token.rb
...d_encrypted_static_objects_external_storage_auth_token.rb
+14
-0
db/migrate/20211126113029_add_text_limit_for_static_objects_external_storage_auth_token.rb
...t_limit_for_static_objects_external_storage_auth_token.rb
+12
-0
db/schema_migrations/20211124132319
db/schema_migrations/20211124132319
+1
-0
db/schema_migrations/20211126113029
db/schema_migrations/20211126113029
+1
-0
db/structure.sql
db/structure.sql
+2
-0
No files found.
db/migrate/20211124132319_add_encrypted_static_objects_external_storage_auth_token.rb
0 → 100644
View file @
0eed6096
# frozen_string_literal: true
class
AddEncryptedStaticObjectsExternalStorageAuthToken
<
Gitlab
::
Database
::
Migration
[
1.0
]
def
up
# rubocop:disable Migration/AddLimitToTextColumns
# limit is added in 20211126113029_add_text_limit_for_static_objects_external_storage_auth_token
add_column
:application_settings
,
:static_objects_external_storage_auth_token_encrypted
,
:text
# rubocop:enable Migration/AddLimitToTextColumns
end
def
down
remove_column
:application_settings
,
:static_objects_external_storage_auth_token_encrypted
end
end
db/migrate/20211126113029_add_text_limit_for_static_objects_external_storage_auth_token.rb
0 → 100644
View file @
0eed6096
# frozen_string_literal: true
class
AddTextLimitForStaticObjectsExternalStorageAuthToken
<
Gitlab
::
Database
::
Migration
[
1.0
]
disable_ddl_transaction!
def
up
add_text_limit
:application_settings
,
:static_objects_external_storage_auth_token_encrypted
,
255
end
def
down
remove_text_limit
:application_settings
,
:static_objects_external_storage_auth_token_encrypted
end
end
db/schema_migrations/20211124132319
0 → 100644
View file @
0eed6096
cdb85c8633687338a11ebce0603f82f5cab00e7c58f923d30b68a877b94e2db2
\ No newline at end of file
db/schema_migrations/20211126113029
0 → 100644
View file @
0eed6096
96abde258e6527a2b09bb60e1cc0cb90802c8a7e43a2132e9956536390a8aab8
\ No newline at end of file
db/structure.sql
View file @
0eed6096
...
...
@@ -10477,6 +10477,7 @@ CREATE TABLE application_settings (
sentry_dsn text,
sentry_clientside_dsn text,
sentry_environment text,
static_objects_external_storage_auth_token_encrypted text,
CONSTRAINT app_settings_container_reg_cleanup_tags_max_list_size_positive CHECK ((container_registry_cleanup_tags_service_max_list_size >= 0)),
CONSTRAINT app_settings_dep_proxy_ttl_policies_worker_capacity_positive CHECK ((dependency_proxy_ttl_group_policy_worker_capacity >= 0)),
CONSTRAINT app_settings_ext_pipeline_validation_service_url_text_limit CHECK ((char_length(external_pipeline_validation_service_url) <= 255)),
...
...
@@ -10485,6 +10486,7 @@ CREATE TABLE application_settings (
CONSTRAINT app_settings_yaml_max_size_positive CHECK ((max_yaml_size_bytes > 0)),
CONSTRAINT check_17d9558205 CHECK ((char_length((kroki_url)::text) <= 1024)),
CONSTRAINT check_2dba05b802 CHECK ((char_length(gitpod_url) <= 255)),
CONSTRAINT check_32710817e9 CHECK ((char_length(static_objects_external_storage_auth_token_encrypted) <= 255)),
CONSTRAINT check_3def0f1829 CHECK ((char_length(sentry_clientside_dsn) <= 255)),
CONSTRAINT check_4f8b811780 CHECK ((char_length(sentry_dsn) <= 255)),
CONSTRAINT check_51700b31b5 CHECK ((char_length(default_branch_name) <= 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