Skip to content

Send an onboarding email at Duo seat assignment for SM

Roy Liu requested to merge 463094-send-duo-seat-assignment-email-for-sm into master

What does this MR do and why?

Introduce a mailer to send a notification email to user when they get assigned a duo pro seat for self-managed instances.

Related to #492545

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

To view the email in your local GDK, go to /rails/mailers/gitlab_subscriptions/duo_seat_assignment_mailer/duo_pro_email

Screenshot from Mailer Preview Screenshot_2024-08-29_at_1.34.45_PM

How to set up and validate locally

If you already have an EE self-managed instance with Duo Pro, you can skip to step 6

  1. Set up your GDK to point to CustomersDot Staging. In gdk.yml:
license:
 customer_portal_url: https://customers.staging.gitlab.com
 license_mode: test
  1. Also make sure you don't have GITLAB_SIMULATE_SAAS env variable as truthy, then you can reconfigure and restart GDK.
  2. Purchase a license with a Duo add-on (can be Duo Enterprise or Duo Pro) on https://customers.staging.gitlab.com
    • Follow this URL to purchase an Ultimate self-managed license (see these docs for details)
    • Once you have purchased the self-managed license, purchase a Duo add-on following these steps
    • You can use a test credit card to complete these purchases
  3. Copy the activation code for the license from CustomersDot
  4. Go to the Admin area > Subscription and upload the activation code
  5. Once uploaded, go to Admin area > GitLab Duo tab to view the GitLab Duo seats page (you might need to hit the sync icon in Subscription for GitLab Duo purchase to show up)
  6. Once you have the seats toggle show up, assign one user duo seat
  7. Go to /rails/letter_opener, you should see the email.
Edited by Doug Stull

Merge request reports

Loading