Skip to content

Add mailer for duo enterprise seat assignment

What does this MR do and why?

Add mailer for duo enterprise seat assignment

  • Adds a new mailer for duo enterprise seat assignments for self managed instances

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

image

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.

Related to #488584

Merge request reports

Loading