Allow offline cloud license upload
What does this MR do and why?
Part of https://gitlab.com/gitlab-org/gitlab/-/issues/349611
Allow the upload of offline cloud licenses.
How to set up and validate locally
Since CustomersDot does not support all of the required workflows yet (at the time of writing this), I think the quickest way to test this is to purchase a new self-managed subscription and modify some code to create the license:
- Purchase a self-managed subscription.
- Add the following code after this line:
license.offline_cloud_licensing_enabled = offline_cloud_licensing_enabled?
- Go to your local CustomersDot's rails console and create a new license with the purchased subscription:
subscription = Customer.find(<CUSTOMER_ID>).find_subscription(<SUBSCRIPTION_NAME>) License.build_from_subscription(subscription: subscription)
- Upload the license key to your local GitLab instance.
- With the changes here, it should successfully work.
- Without the changes, an invalid license key error should show up.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Corinna Gogolok