Commit ee2e5fd4 authored by Illya Klymov's avatar Illya Klymov Committed by Miguel Rincon

Add suggestion to use short-living tokens to end-users

* Improve security by suggesting users to use short-living tokens

Changelog: added
parent 58a328ce
...@@ -23,7 +23,8 @@ ...@@ -23,7 +23,8 @@
= f.label :bulk_import_gitlab_access_token, s_('GroupsNew|Personal access token'), for: 'import_gitlab_token' = f.label :bulk_import_gitlab_access_token, s_('GroupsNew|Personal access token'), for: 'import_gitlab_token'
.gl-font-weight-normal .gl-font-weight-normal
- pat_link_start = '<a href="%{url}" target="_blank">'.html_safe % { url: help_page_path('user/profile/personal_access_tokens') } - pat_link_start = '<a href="%{url}" target="_blank">'.html_safe % { url: help_page_path('user/profile/personal_access_tokens') }
= s_('GroupsNew|Navigate to user settings to find your %{link_start}personal access token%{link_end}.').html_safe % { link_start: pat_link_start, link_end: '</a>'.html_safe } - short_living_link_start = '<a href="%{url}" target="_blank">'.html_safe % { url: help_page_path('security/token_overview', anchor: 'security-considerations') }
= s_('GroupsNew|Create this in the %{pat_link_start}user settings%{pat_link_end} of the source GitLab instance. For %{short_living_link_start}security reasons%{short_living_link_end}, use a short expiration date when creating the token.').html_safe % { pat_link_start: pat_link_start, pat_link_end: '</a>'.html_safe, short_living_link_start: short_living_link_start, short_living_link_end: '</a>'.html_safe }
= f.text_field :bulk_import_gitlab_access_token, placeholder: s_('GroupsNew|e.g. h8d3f016698e...'), class: 'gl-form-input gl-mt-3 col-xs-12 col-sm-8', = f.text_field :bulk_import_gitlab_access_token, placeholder: s_('GroupsNew|e.g. h8d3f016698e...'), class: 'gl-form-input gl-mt-3 col-xs-12 col-sm-8',
required: true, required: true,
autocomplete: 'off', autocomplete: 'off',
......
...@@ -17791,6 +17791,9 @@ msgstr "" ...@@ -17791,6 +17791,9 @@ msgstr ""
msgid "GroupsNew|Create new group" msgid "GroupsNew|Create new group"
msgstr "" msgstr ""
msgid "GroupsNew|Create this in the %{pat_link_start}user settings%{pat_link_end} of the source GitLab instance. For %{short_living_link_start}security reasons%{short_living_link_end}, use a short expiration date when creating the token."
msgstr ""
msgid "GroupsNew|Export groups with all their related data and move to a new GitLab instance." msgid "GroupsNew|Export groups with all their related data and move to a new GitLab instance."
msgstr "" msgstr ""
...@@ -17809,9 +17812,6 @@ msgstr "" ...@@ -17809,9 +17812,6 @@ msgstr ""
msgid "GroupsNew|My Awesome Group" msgid "GroupsNew|My Awesome Group"
msgstr "" msgstr ""
msgid "GroupsNew|Navigate to user settings to find your %{link_start}personal access token%{link_end}."
msgstr ""
msgid "GroupsNew|No import options available" msgid "GroupsNew|No import options available"
msgstr "" msgstr ""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment