Skip to content
Snippets Groups Projects

In-app awareness of Registration Features - Group access by IP address

All threads resolved!

What does this MR do and why?

Related to #341949 (closed)

To increase discoverability for the features that can be enabled with Registration features, we'll be presenting in-app messages/hints. In this case, for setting allowed IP addresses.

Criteria to show the CTA

The offer shouldn't be presented to licensed instances because they already have the paid features available, so the callout (to enable features they already have) doesn't make sense. The decision on whether to show the offer is on the true/false of whether Service Ping is enabled, not on whether Registration Features is enabled.

Instance Type License Type Service Ping Setting Expected Behavior
CE Unlicensed Off Link to docs
EE Unlicensed Off Link to admin setting
EE Licensed Off Do not present offer
CE Unlicensed On Do not present offer
EE Unlicensed On Do not present offer
EE Licensed On Do not present offer

Screenshots or screen recordings

Enabled feature for reference

image


When Service Ping is disabled

The CTA is always hidden if Service Ping is enabled.

Before (hidden) After (CE) After (EE)
image image image

How to set up and validate locally

  1. Optionally restart gdk as FOSS (FOSS_ONLY=1 gdk restart) to test like a CE instance.
  2. Go to any group’s Settings > General page. and expand the Permissions, LFS, 2FA section.
  3. Scroll to the Allow access to the following IP addresses section.
  4. Toggle a local license/subscription and/or service ping/registration features.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Axel García

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Axel García changed milestone to %14.6

    changed milestone to %14.6

  • Axel García mentioned in commit cc84b05a

    mentioned in commit cc84b05a

  • Axel García added 1727 commits

    added 1727 commits

    Compare with previous version

  • Rajendra Kadam removed review request for @rkadam3

    removed review request for @rkadam3

  • Axel García mentioned in commit 0bc2c474

    mentioned in commit 0bc2c474

  • Axel García added 183 commits

    added 183 commits

    Compare with previous version

  • A deleted user added backend label

    added backend label

  • Axel García mentioned in commit ca6100f7

    mentioned in commit ca6100f7

  • Axel García added 199 commits

    added 199 commits

    Compare with previous version

  • Axel García requested review from @rkadam3

    requested review from @rkadam3

  • Rajendra Kadam removed review request for @rkadam3

    removed review request for @rkadam3

  • Axel García marked the checklist item I have evaluated the MR acceptance checklist for this MR. as completed

    marked the checklist item I have evaluated the MR acceptance checklist for this MR. as completed

  • Axel García marked this merge request as ready

    marked this merge request as ready

  • Axel García mentioned in commit 17561163

    mentioned in commit 17561163

  • Axel García added 114 commits

    added 114 commits

    Compare with previous version

  • Axel García requested review from @himkp

    requested review from @himkp

  • Axel García requested review from @marc_shaw

    requested review from @marc_shaw

  • Axel García changed the description

    changed the description

  • Axel García changed the description

    changed the description

  • Axel García mentioned in commit 7e5ca33b

    mentioned in commit 7e5ca33b

  • Axel García added 61 commits

    added 61 commits

    Compare with previous version

  • Axel García requested review from @fneill

    requested review from @fneill

  • Axel García changed the description

    changed the description

  • Amanda Rueda approved this merge request

    approved this merge request

  • :wave: @amandarueda, thanks for approving this merge request.

    This is the first time the merge request is approved. To ensure full test coverage, a new pipeline has been started.

    For more info, please refer to the following links:

  • Axel García mentioned in commit d9710fdd

    mentioned in commit d9710fdd

  • Axel García added 47 commits

    added 47 commits

    Compare with previous version

  • Axel García mentioned in commit 204ab76a

    mentioned in commit 204ab76a

  • Axel García added 9 commits

    added 9 commits

    Compare with previous version

  • Fiona Neill approved this merge request

    approved this merge request

  • Fiona Neill removed review request for @fneill

    removed review request for @fneill

  • Himanshu Kapoor approved this merge request

    approved this merge request

  • Himanshu Kapoor removed review request for @himkp

    removed review request for @himkp

  • Axel García mentioned in commit 7aaf085b

    mentioned in commit 7aaf085b

  • Axel García added 804 commits

    added 804 commits

    Compare with previous version

  • Axel García added 1 commit

    added 1 commit

    • fc6e2b93 - Pass license as parameter for RF shared view

    Compare with previous version

  • Axel García mentioned in commit 27ca5754

    mentioned in commit 27ca5754

  • Axel García added 20 commits

    added 20 commits

    • fc6e2b93...7cf3bb60 - 16 commits from branch master
    • 27ca5754 - Registration features info for ip restriction
    • 5175aa76 - Update IP restrictions specs
    • ed2f7365 - Update registration features prompt copy
    • f279d236 - Pass license as parameter for RF shared view

    Compare with previous version

  • Axel García requested review from @psimyn

    requested review from @psimyn

  • Simon Knox
  • Simon Knox
  • Simon Knox
  • couple of minor suggestions @agarciatesares - rest looks super :thumbsup:

  • Simon Knox approved this merge request

    approved this merge request

  • Simon Knox removed review request for @psimyn

    removed review request for @psimyn

  • Axel García mentioned in merge request !74042 (merged)

    mentioned in merge request !74042 (merged)

  • Marc Shaw
  • Marc Shaw
  • Axel García mentioned in commit 341b61f7

    mentioned in commit 341b61f7

  • Axel García added 1111 commits

    added 1111 commits

    • f279d236...f7963d40 - 1107 commits from branch master
    • 341b61f7 - Registration features info for ip restriction
    • dac58697 - Update IP restrictions specs
    • 1665135c - Update registration features prompt copy
    • 2f70fd17 - Pass license as parameter for RF shared view

    Compare with previous version

  • Axel García mentioned in commit b5756212

    mentioned in commit b5756212

  • Axel García added 138 commits

    added 138 commits

    • 2f70fd17...8ab9f4b3 - 134 commits from branch master
    • b5756212 - Registration features info for ip restriction
    • d6ecc1ed - Update IP restrictions specs
    • 83be0880 - Update registration features prompt copy
    • 76e1b851 - Pass license as parameter for RF shared view

    Compare with previous version

  • Marc Shaw
  • Axel García mentioned in commit 395f96e5

    mentioned in commit 395f96e5

  • 1 - return if !ip_restriction_feature_available?(group) || group.parent_id.present?
    2 1 - hidden_input_id = 'group_ip_restriction_ranges'
    3 2 - label_id = "#{hidden_input_id}_label"
    4 3
    5 4 .form-group
    6 5 %label{ id: label_id }
    7 6 = _('Allow access to the following IP addresses')
    8 .js-ip-restriction{ data: { hidden_input_id: hidden_input_id, label_id: label_id } }
    9 = f.hidden_field :ip_restriction_ranges, id: hidden_input_id
    10 .form-text.text-muted
    11 - learn_more_link = link_to(_('Learn more'), help_page_path('user/group/index.md', anchor: 'restrict-group-access-by-ip-address'))
    12 = _('Only users from the specified IP address ranges are able to reach this group, including all subgroups, projects, and Git repositories.')
    13 %br
    14 = _('Multiple IP address ranges are supported.')
    15 = html_escape(_('%{learn_more_link}.')) % { learn_more_link: learn_more_link }
    7 - if ip_restriction_feature_available?(group) && !group.parent_id.present?
  • Axel García added 389 commits

    added 389 commits

    • 76e1b851...f42bdfa9 - 384 commits from branch master
    • 395f96e5 - Registration features info for ip restriction
    • 68721ca6 - Update IP restrictions specs
    • 7921ca29 - Update registration features prompt copy
    • 20ace00f - Pass license as parameter for RF shared view
    • 65441614 - Move IP restriction logic to CE

    Compare with previous version

  • Axel García added 1 commit

    added 1 commit

    • 9fc713c0 - Move IP restriction form group to CE

    Compare with previous version

  • Axel García added 1 commit

    added 1 commit

    • ac35e1df - Move IP restriction form group to CE

    Compare with previous version

  • Axel García added 1 commit

    added 1 commit

    • 403bea08 - Move IP restriction form group to CE

    Compare with previous version

  • Axel García changed the description

    changed the description

  • mentioned in issue #348475 (closed)

  • Axel García added 1 commit

    added 1 commit

    • fe098cd4 - Allow IP restriction helper on CE

    Compare with previous version

  • Axel García added 1 commit

    added 1 commit

    • c8b898c4 - Allow IP restriction helper on CE

    Compare with previous version

  • Axel García mentioned in commit 1cbbb89e

    mentioned in commit 1cbbb89e

  • Axel García added 172 commits

    added 172 commits

    • c8b898c4...72f23cf7 - 166 commits from branch master
    • 1cbbb89e - Registration features info for ip restriction
    • 406465cd - Update IP restrictions specs
    • 6c648972 - Update registration features prompt copy
    • 06835752 - Pass license as parameter for RF shared view
    • 3df81106 - Move IP restriction form group to CE
    • 6aa52272 - Allow IP restriction helper on CE

    Compare with previous version

  • Axel García added 2 commits

    added 2 commits

    • bcd6f7a8 - Move IP restriction form group to CE
    • 7383adaf - Allow IP restriction helper on CE

    Compare with previous version

  • Axel García requested review from @rkadam3

    requested review from @rkadam3

  • Rajendra Kadam approved this merge request

    approved this merge request

  • Rajendra Kadam removed review request for @rkadam3

    removed review request for @rkadam3

  • Axel García mentioned in commit ceeffe01

    mentioned in commit ceeffe01

  • Axel García added 222 commits

    added 222 commits

    • 7383adaf...6cc51296 - 217 commits from branch master
    • ceeffe01 - Registration features info for ip restriction
    • d0de30c6 - Update IP restrictions specs
    • 753fbba4 - Pass license as parameter for RF shared view
    • 11dc1fdb - Move IP restriction form group to CE
    • 4c3c728e - Allow IP restriction helper on CE

    Compare with previous version

  • Axel García added 2 commits

    added 2 commits

    • b8fa3e87 - Move IP restriction form group to CE
    • 19009169 - Allow IP restriction helper on CE

    Compare with previous version

  • Fixed the conflicts after !73222 (merged) :100:

  • assigned to @rkadam3

  • mentioned in issue #341949 (closed)

  • Axel García changed milestone to %14.7

    changed milestone to %14.7

  • Axel García assigned to @agarciatesares and unassigned @rkadam3

    assigned to @agarciatesares and unassigned @rkadam3

  • Axel García added 1086 commits

    added 1086 commits

    • 19009169...f3e83a99 - 1080 commits from branch master
    • b842d437 - Registration features info for ip restriction
    • 7ca4dfb9 - Update IP restrictions specs
    • c22d08d6 - Pass license as parameter for RF shared view
    • 504ae27b - Move IP restriction form group to CE
    • 6555c460 - Allow IP restriction helper on CE
    • 20b448f7 - Add IP restriction CTA

    Compare with previous version

  • Axel García mentioned in commit b842d437

    mentioned in commit b842d437

  • Axel García added 1 commit

    added 1 commit

    Compare with previous version

  • Axel García changed the description

    changed the description

  • Axel García marked this merge request as draft

    marked this merge request as draft

  • Axel García removed review request for @marc_shaw

    removed review request for @marc_shaw

  • Axel García mentioned in commit 2787b620

    mentioned in commit 2787b620

  • Axel García added 389 commits

    added 389 commits

    Compare with previous version

  • Axel García added 1 commit

    added 1 commit

    • de37d5b6 - Specs for IP restriction RF CTA

    Compare with previous version

  • Axel García marked this merge request as ready

    marked this merge request as ready

  • Axel García resolved all threads

    resolved all threads

  • Axel García
  • Axel García requested review from @marc_shaw

    requested review from @marc_shaw

  • Axel García added 2 commits

    added 2 commits

    Compare with previous version

  • Axel García changed the description

    changed the description

  • Marc Shaw
  • Axel García mentioned in commit 413040ca

    mentioned in commit 413040ca

  • Axel García added 176 commits

    added 176 commits

    Compare with previous version

  • Marc Shaw
  • Marc Shaw approved this merge request

    approved this merge request

  • Axel García mentioned in commit df84aed0

    mentioned in commit df84aed0

  • Axel García added 232 commits

    added 232 commits

    Compare with previous version

  • Axel García added 1 commit

    added 1 commit

    Compare with previous version

  • Axel García added 1 commit

    added 1 commit

    Compare with previous version

  • Axel García requested review from @mikolaj_wawrzyniak and removed review request for @marc_shaw

    requested review from @mikolaj_wawrzyniak and removed review request for @marc_shaw

  • Axel García mentioned in merge request !77355 (merged)

    mentioned in merge request !77355 (merged)

  • Mikołaj Wawrzyniak approved this merge request

    approved this merge request

  • Mikołaj Wawrzyniak resolved all threads

    resolved all threads

  • Mikołaj Wawrzyniak enabled an automatic merge when the pipeline for 7587935f succeeds

    enabled an automatic merge when the pipeline for 7587935f succeeds

  • mentioned in commit 83cc2c5f

  • Axel García mentioned in commit 70dad3a4

    mentioned in commit 70dad3a4

  • Jason Goodman mentioned in merge request !78115 (merged)

    mentioned in merge request !78115 (merged)

  • added workflowcanary label and removed workflowstaging label

  • added workflowproduction label and removed workflowcanary label

  • Axel García mentioned in commit 235d52df

    mentioned in commit 235d52df

  • Axel García mentioned in issue #364871

    mentioned in issue #364871

  • Please register or sign in to reply
    Loading