Skip to content
Snippets Groups Projects

Domain Verification MVC

Merged Drew Blessing requested to merge dblessing_domain_verification_backend into master
All threads resolved!

What does this MR do and why?

Describe in detail what your merge request does and why.

Delivers #353030 (closed)

In the Domain Verification MVC we reuse verified Pages domains. SCIM and SAML-created users will not be required to verify their email address when the email domain matches a verified domain. We can trust the domain because the organization owners have verified ownership.

The new view queries pages domains for all projects in the group hierarchy. All domains, verified and unverified, are shown for clarity, with a respective badge identifying its status. This prevents confusion when an owner knows a Pages domain exists but doesn't see it in the list (it's unverified).

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Screen_Shot_2022-08-22_at_1.56.23_PM

Screen_Shot_2022-08-22_at_2.02.00_PM

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Create domains via Rails console

  1. In Rails console, use the following command to create a verified domain:
    project = Project.find_by_full_path('group/project')
    verified_domain = PagesDomain.create!(domain: 'verified.example.com', verified_at: Time.now, project: project)
  2. Use the following command to create an unverified domain:
    project = Project.find_by_full_path('group/project')
    unverified_domain = PagesDomain.create!(domain: 'unverified.example.com', verified_at: nil, project: project)

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 Drew Blessing

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
  • Drew Blessing requested review from @jessieay

    requested review from @jessieay

  • Jessie Young
  • Jessie Young
  • Jessie Young
  • Jessie Young
  • Jessie Young
  • Jessie Young
  • Jessie Young
  • Jessie Young
  • Drew Blessing added 375 commits

    added 375 commits

    Compare with previous version

  • 2 Warnings
    :warning: This merge request is quite big (516 lines changed), please consider splitting it into multiple merge requests.
    :warning:

    featureaddition and featureenhancement merge requests normally have a documentation change. Consider adding a documentation update or confirming the documentation plan with the Technical Writer counterpart.

    For more information, see:

    Reviewer roulette

    Changes that require review have been detected!

    Please refer to the table below for assigning reviewers and maintainers suggested by Danger in the specified category:

    Category Reviewer Maintainer
    backend Vladimir Shushlin (@vshushlin) (UTC+2, 7 hours ahead of @dblessing) Rémy Coutable (@rymai) (UTC+2, 7 hours ahead of @dblessing)
    frontend Tomáš Bulva (@tbulva) (UTC+2, 7 hours ahead of @dblessing) Jannik Lehmann (@jannik_lehmann) (UTC+2, 7 hours ahead of @dblessing)
    test for spec/features/* Andrejs Cunskis (@acunskis) (UTC+3, 8 hours ahead of @dblessing) Maintainer review is optional for test for spec/features/*
    ~"group::authentication and authorization" Reviewer review is optional for ~"group::authentication and authorization" Michelle Gill (@m_gill)

    To spread load more evenly across eligible reviewers, Danger has picked a candidate for each review slot, based on their timezone. Feel free to override these selections if you think someone else would be better-suited or use the GitLab Review Workload Dashboard to find other available reviewers.

    To read more on how to use the reviewer roulette, please take a look at the Engineering workflow and code review guidelines. Please consider assigning a reviewer or maintainer who is a domain expert in the area of the merge request.

    Once you've decided who will review this merge request, assign them as a reviewer! Danger does not automatically notify them for you.

    If needed, you can retry the :repeat: danger-review job that generated this comment.

    Generated by :no_entry_sign: Danger

  • Drew Blessing added 1 commit

    added 1 commit

    Compare with previous version

  • Drew Blessing added 1 commit

    added 1 commit

    Compare with previous version

  • Drew Blessing requested review from @dzubova

    requested review from @dzubova

  • Drew Blessing added 1 commit

    added 1 commit

    Compare with previous version

  • Drew Blessing requested review from @eduardosanz and removed review request for @dzubova

    requested review from @eduardosanz and removed review request for @dzubova

  • Drew Blessing requested review from @acunskis

    requested review from @acunskis

  • Drew Blessing added 1 commit

    added 1 commit

    Compare with previous version

  • Drew Blessing added 1 commit

    added 1 commit

    Compare with previous version

  • Jessie Young approved this merge request

    approved this merge request

  • :wave: @jessieay, 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:

  • Drew Blessing added 239 commits

    added 239 commits

    Compare with previous version

  • Drew Blessing added 1 commit

    added 1 commit

    Compare with previous version

  • Andrejs Cunskis approved this merge request

    approved this merge request

  • Andrejs Cunskis removed review request for @acunskis

    removed review request for @acunskis

  • Drew Blessing changed the description

    changed the description

  • Evan Read requested review from @eread

    requested review from @eread

  • Evan Read removed review request for @eread

    removed review request for @eread

  • Bogdan Denkovych approved this merge request

    approved this merge request

  • The superb job in this MR! :bow:

  • Drew Blessing added 1 commit

    added 1 commit

    • 04007bf8 - Apply 4 suggestion(s) to 1 file(s)

    Compare with previous version

  • Drew Blessing added 124 commits

    added 124 commits

    Compare with previous version

  • requested review from @nmilojevic1 and @pslaughter

  • Drew Blessing removed review request for @eduardosanz and @jessieay

    removed review request for @eduardosanz and @jessieay

  • @dblessing, great work! Thanks for addressing my suggestions.

    I am approving the MR. I have suggested a way to keep the columns closer for large viewports. I also suggested a way to simplify the markup with the link_to utility.

  • Eduardo Sanz García approved this merge request

    approved this merge request

  • Drew Blessing added 1 commit

    added 1 commit

    • 2e031254 - Apply 2 suggestion(s) to 1 file(s)

    Compare with previous version

  • Drew Blessing added 1 commit

    added 1 commit

    Compare with previous version

  • mentioned in issue #238461 (closed)

  • Thanks so much for working on this @dblessing! Sorry for my delay. This is on my radar and will get to look at this within the next 12 hours or so :eyes:

  • Author Maintainer

    Thanks for your review, @pslaughter. Fixed up as requested.

  • Paul Slaughter mentioned in merge request !96549 (merged)

    mentioned in merge request !96549 (merged)

  • Drew Blessing added 1 commit

    added 1 commit

    Compare with previous version

  • Paul Slaughter
  • Paul Slaughter requested review from @dmoraBerlin

    requested review from @dmoraBerlin

    • Resolved by Paul Slaughter

      question (non-blocking): @dblessing following the Create domains via Rails console instructions you left in this MR, I can create verified domains easily, but they only stay verified for a couple of minutes

      After creating new verified domain 2 minutes later
      Screen_Shot_2022-09-03_at_5.24.18_PM Screen_Shot_2022-09-03_at_5.32.24_PM

      Is this expected?

  • Thanks so much @dblessing! We're almost there. I have a couple of more threads for you, then we should be good to go from frontend :smile:

    Back to you! :soccer:

  • Paul Slaughter removed review request for @pslaughter

    removed review request for @pslaughter

  • Evan Read
  • Nikola Milojevic approved this merge request

    approved this merge request

  • Nikola Milojevic removed review request for @nmilojevic1

    removed review request for @nmilojevic1

  • Drew Blessing added 1 commit

    added 1 commit

    Compare with previous version

  • Paul Slaughter requested review from @pslaughter

    requested review from @pslaughter

  • Drew Blessing added 1912 commits

    added 1912 commits

    Compare with previous version

  • Looking at this now! :eyes:

  • Thanks again for working on this @dblessing! Tested locally and everything LGTM :thumbsup:

    lgtm

    Approving...

  • Paul Slaughter approved this merge request

    approved this merge request

  • Paul Slaughter removed review request for @pslaughter

    removed review request for @pslaughter

  • Evan Read approved this merge request

    approved this merge request

  • Evan Read
  • Daniel Mora approved this merge request

    approved this merge request

  • Drew Blessing added 1 commit

    added 1 commit

    Compare with previous version

  • Drew Blessing requested review from @nmilojevic1 and removed review request for @dmoraBerlin

    requested review from @nmilojevic1 and removed review request for @dmoraBerlin

  • mentioned in issue #322039 (closed)

  • Drew Blessing added 1 commit

    added 1 commit

    Compare with previous version

  • Drew Blessing added 1 commit

    added 1 commit

    Compare with previous version

  • Drew Blessing requested review from @kerrizor and removed review request for @nmilojevic1

    requested review from @kerrizor and removed review request for @nmilojevic1

  • Drew Blessing added 421 commits

    added 421 commits

    Compare with previous version

  • Drew Blessing added 1 commit

    added 1 commit

    Compare with previous version

  • Kerri Miller resolved all threads

    resolved all threads

  • merged

  • Kerri Miller mentioned in commit 735fc66e

    mentioned in commit 735fc66e

  • added workflowstaging label and removed workflowcanary label

  • mentioned in issue #353030 (closed)

  • Evan Read mentioned in merge request !98161 (merged)

    mentioned in merge request !98161 (merged)

  • Bogdan Denkovych mentioned in merge request !109237 (merged)

    mentioned in merge request !109237 (merged)

  • mentioned in epic &9675 (closed)

  • Bogdan Denkovych mentioned in merge request !135873 (merged)

    mentioned in merge request !135873 (merged)

  • Please register or sign in to reply
    Loading