From c382239bf3f714a2cdc447a9b588127bfc42d0c9 Mon Sep 17 00:00:00 2001 From: Miranda Fluharty Date: Mon, 13 May 2024 16:37:12 -0600 Subject: [PATCH 1/5] Clarify CI Job Token wording Reword UI text around "Limit access to this project" toggle Add card header secondary text, wrap it responsively On md+ viewports, wrap text before it reaches the button On smaller viewports, make the text full width and wrap the button below the rest of the text Changelog: changed --- .../token_access/components/inbound_token_access.vue | 12 ++++++++---- .../components/outbound_token_access.vue | 2 +- app/views/projects/settings/ci_cd/show.html.haml | 4 ++-- locale/gitlab.pot | 12 +++++++++--- 4 files changed, 20 insertions(+), 10 deletions(-) diff --git a/app/assets/javascripts/token_access/components/inbound_token_access.vue b/app/assets/javascripts/token_access/components/inbound_token_access.vue index 29dbc49f835aed..b881e864509543 100644 --- a/app/assets/javascripts/token_access/components/inbound_token_access.vue +++ b/app/assets/javascripts/token_access/components/inbound_token_access.vue @@ -27,9 +27,12 @@ export default { i18n: { toggleLabelTitle: s__('CICD|Limit access %{italicStart}to%{italicEnd} this project'), toggleDescription: s__( - `CICD|Allow access to this project from authorized groups or projects by adding them to the allowlist. It is a security risk to disable this feature, because unauthorized projects might attempt to retrieve an active token and access the API. %{linkStart}Learn more%{linkEnd}.`, + `CICD|When enabled, groups and projects listed in the allowlist are authorized to use a CI/CD job token to authenticate requests to this project. %{linkStart}Learn more%{linkEnd}.`, + ), + cardHeaderTitle: s__('CICD|Authorized groups and projects'), + cardHeaderDescription: s__( + `CICD|Ensure only groups and projects with members authorized to access sensitive project data are added to the allowlist.`, ), - cardHeaderTitle: s__('CICD|Groups and projects with access'), settingDisabledMessage: s__( 'CICD|Access unrestricted, so users with sufficient permissions in this project can authenticate with a job token generated in any other project. Enable this setting to restrict authentication to only job tokens generated in the groups and projects in the allowlist below.', ), @@ -273,7 +276,7 @@ export default {