Skip to content

Commit eaa7da0

Browse files
committed
separate out license fields from vendor portal customer fields
1 parent ebbc583 commit eaa7da0

15 files changed

+108
-112
lines changed

docs/intro.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ pagination_next: null
210210
<a href="/vendor/releases-creating-customer">Creating and Managing Customers</a>
211211
</li>
212212
<li>
213-
<a href="/vendor/licenses-adding-custom-fields">Managing Custom License Fields</a>
213+
<a href="/vendor/licenses-adding-custom-fields">Managing Customer License Fields</a>
214214
</li>
215215
</ul>
216216
</section>

docs/reference/template-functions-license-context.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
```go
55
func LicenseFieldValue(name string) string
66
```
7-
LicenseFieldValue returns the value of the specified license field. LicenseFieldValue accepts custom license fields and all built-in license fields. For a list of all built-in fields, see [Built-in License Fields](/vendor/licenses-using-builtin-fields).
7+
LicenseFieldValue returns the value of the specified license field. LicenseFieldValue accepts custom license fields and all built-in license fields. For a list of all built-in fields, see [Built-In License Fields](/vendor/licenses-using-builtin-fields).
88

99
LicenseFieldValue always returns a string, regardless of the license field type. To return integer or boolean values, you need to use the [ParseInt](/reference/template-functions-static-context#parseint) or [ParseBool](/reference/template-functions-static-context#parsebool) template function to convert the string value.
1010

docs/vendor/licenses-about-types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Community Licenses
1+
# About Community Licenses
22

33
This topic describes community licenses. For more information about other types of licenses, see [License Types](licenses-about#license-types) in _About Customers_.
44

docs/vendor/licenses-about.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ Except Community licenses, the license type is used solely for reporting purpose
3636

3737
You can change the type of a license at any time in the Vendor Portal. For example, if a customer upgraded from a trial to a paid account, then you could change their license type from Trial to Paid for reporting purposes.
3838

39-
### Built-in and Custom License Fields
39+
### Built-In and Custom License Fields
4040

41-
Customer licenses have built-in fields and also support custom fields.
41+
Each customer record in the Vendor Portal has built-in fields and also supports custom fields.
4242

43-
Built-in fields are reserved field names. You can specify the values for these fields to define entitlements for the customer. For example, Replicated includes built-in license fields to define the license expiration date, customer name, and application slug. For more information about built-in fields, see [Built-in License Fields](licenses-using-builtin-fields).
43+
The built-in fields include values such as the customer name, customer email, and the license expiration date. You can optionally set initial values for the built-in fields so that each new customer created in the Vendor Portal starts with the same set of values. You can also create custom fields to define entitlements for your application. For example, you can create a custom field to set the number of active users permitted.
4444

45-
You can also create custom license fields to define entitlements specific to the customer. For example, you can create a custom license field to limit the number of active users permitted. For more information about creating custom license fields, see [Managing Custom License Fields](licenses-adding-custom-fields).
45+
For more information, see [Managing Customer License Fields](/vendor/licenses-adding-custom-fields).
4646

4747
## About Updating Licenses
4848

docs/vendor/licenses-adding-custom-fields.md

Lines changed: 34 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,38 @@
1-
# Managing Custom License Fields
1+
# Managing Customer License Fields
22

3-
In addition to the built-in license fields available through the Replicated vendor
4-
portal, you can also create custom license fields for a customer.
3+
This topic describes how to manage customer license fields in the Replicated Vendor Portal, including how to add custom fields and set initial values for the built-in fields.
54

6-
For information about the fields that are included by default for each customer
7-
license, see [Using built-in license fields](licenses-using-builtin-fields).
5+
## Set Initial Values for Built-In License Fields (Beta)
86

9-
## About Custom License Fields
7+
You can set initial values to populate the **Create Customer** form in the Vendor Portal when a new customer is created. This ensures that each new customer created from the Vendor Portal UI starts with the same set of built-in license field values.
108

11-
Custom license fields are useful when there is entitlement information that applies to a subset of customers. For example, you can create a custom license field to limit the number of active users permitted. Or, you can create a field that limits the number of nodes a customer is permitted on their cluster.
9+
:::note
10+
Initial values are not applied to new customers created through the Vendor API v3. For more information, see [Create a customer](https://replicated-vendor-api.readme.io/reference/createcustomer-1) in the Vendor API v3 documentation.
11+
:::
12+
13+
These _initial_ values differ from _default_ values in that setting initial values does not update the license field values for any existing customers.
14+
15+
To set initial values for built-in license fields:
16+
17+
1. In the Vendor Portal, go to **License Fields**.
18+
19+
1. Under **Built-in license options**, click **Edit** next to each license field where you want to set an initial value.
20+
21+
![Edit Initial Value](/images/edit-initial-value.png)
22+
23+
[View a larger version of this image](/images/edit-initial-value.png)
24+
25+
## Manage Custom License Fields
26+
27+
You can create custom license fields in the Vendor Portal. For example, you can create a custom license field to set the number of active users permitted. Or, you can create a field that sets the number of nodes a customer is permitted on their cluster.
1228

13-
The custom license fields that you create are displayed in the Vendor Portal for all new and existing customers. If the custom field is not hidden, it is also displayed under the **Licenses** tab for customers in the Replicated Admin Console.
29+
The custom license fields that you create are displayed in the Vendor Portal for all new and existing customers. If the custom field is not hidden, it is also displayed to customers under the **Licenses** tab in the Replicated Admin Console.
1430

15-
## Limitation
31+
### Limitation
1632

1733
The maximum size for a license field value is 64KB.
1834

19-
## Create Custom License Fields
35+
### Create Custom License Fields
2036

2137
To create a custom license field:
2238

@@ -37,20 +53,20 @@ To create a custom license field:
3753
| Type| The field type. Supported formats include integer, string, text (multi-line string), and boolean values. This value cannot be changed. |
3854
| Default | The default value for the field for both existing and new customers. It is a best practice to provide a default value when possible. The maximum size for a license field value is 64KB. |
3955
| Required | If checked, this prevents the creation of customers unless this field is explicitly defined with a value. |
40-
| Hidden | If checked, the field is not visible to your customer in the Replicated Admin Console. The field is still visible to you in the Vendor Portal. **Note**: The Hidden field is displayed only for vendors with access to the Replicated KOTS installer. |
56+
| Hidden | If checked, the field is not visible to your customer in the Replicated Admin Console. The field is still visible to you in the Vendor Portal. **Note**: The Hidden field is displayed only for vendors with access to the Replicated installers (KOTS, kURL, Embedded Cluster). |
4157

42-
## Update Custom License Fields
58+
### Update Custom License Fields
4359

4460
To update a custom license field:
4561

4662
1. Log in to the Vendor Portal and select the application.
4763
1. On the **License Fields** page, click **Edit Field** on the right side of the target row. Changing the default value for a field updates the value for each existing customer record that has not overridden the default value.
4864

4965
:::important
50-
Enabling **Is this field is required?** updates the license field to be required on all new and existing licenses. If you enable **Is this field is required?**, you must either set a default value for the field or manually update each existing license file to provide a value for the field.
66+
Enabling **Is this field is required?** updates the license field to be required on all new and existing customers. If you enable **Is this field is required?**, you must either set a default value for the field or manually update each existing customer to provide a value for the field.
5167
:::
5268

53-
## Set Customer-Specific Values for Custom License Fields
69+
### Set Customer-Specific Values for Custom License Fields
5470

5571
To set a customer-specific value for a custom license field:
5672

@@ -67,11 +83,11 @@ To set a customer-specific value for a custom license field:
6783

6884
[View a larger version of this image](/images/customer-license-custom-fields.png)
6985

70-
## Delete Custom License Fields
86+
### Delete Custom License Fields
7187

72-
Deleted license fields and their values do not appear in the customer's license in any location, including your view in the Vendor Portal, the downloaded YAML version of the license, and the Admin Console license screen.
88+
Deleted license fields and their values do not appear in the customer's license in any location, including your view in the Vendor Portal, the downloaded YAML version of the license, and the Admin Console **License** screen.
7389

74-
By default, deleting a license field also deletes all of the values associated with the field in each customer record.
90+
By default, deleting a custom license field also deletes all of the values associated with the field in each customer record.
7591

7692
Only administrators can delete license fields.
7793

@@ -92,4 +108,4 @@ To delete a custom license field:
92108
If you enable **Preserve License Values**, you can create a new field with the same name and `type` as the deleted field to reinstate the preserved values.
93109
:::
94110

95-
1. Follow the instructions in the dialog and click **Delete**.
111+
1. Follow the instructions in the dialog and click **Delete**.

docs/vendor/licenses-download.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ For information about how to download customer licenses with the Vendor API v3,
88

99
## Download Licenses
1010

11-
A valid license file is required to install with Replicated KOTS. You can download license files for your customers from the **Customer** page in the Vendor Portal.
11+
You can download license files for your customers from the **Customer** page in the Vendor Portal.
1212

1313
To download a license:
1414

docs/vendor/licenses-reference-helm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ To check entitlements before installation:
3939

4040
1. In the Vendor Portal, click **Customers**. Select a customer and click the **Manage customer** tab. Alternatively, click **+ Create customer** to create a new customer. For more information, see [Creating and Managing Customers](/vendor/releases-creating-customer).
4141

42-
1. Edit the built-in license fields or add custom fields for the customer. For example, you can set a license expiration date in the **Expiration policy** field. Or, you can create a custom field that limits the number of nodes a user is permitted in their cluster. For more information, see [Managing Custom License Fields](/vendor/licenses-adding-custom-fields).
42+
1. Edit the built-in license fields or add custom fields for the customer. For example, you can set a license expiration date in the **Expiration policy** field. Or, you can create a custom field that limits the number of nodes a user is permitted in their cluster. For more information, see [Managing Customer License Fields](/vendor/licenses-adding-custom-fields).
4343

4444
1. In your Helm chart, update the Helm templates with one or more directives to access the license field. For example, you can access the built-in `expires_at` field with `{{ .Values.global.replicated.licenseFields.expires_at }}`. Add the desired logic to control application behavior based on the values of license fields.
4545

docs/vendor/licenses-reference-kots-runtime.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ Using the KOTS License API to check entitlements during runtime is _not_ recomme
1010

1111
KOTS includes default logic to control access to features in the KOTS Admin Console and KOTS CLI based on the values for the built-in fields in the customer's license. For example, by default, KOTS uses the built-in `expires_at` field to prevent an instance from receiving updates when the customer license expires. You can add custom logic to your application to control the behavior of your application based on the built-in fields or any of the custom fields that you create.
1212

13-
For more information about creating custom license fields, see [Managing Custom License Fields](licenses-adding-custom-fields). For more information about the built-in license fields, see [Built-In License Fields](licenses-using-builtin-fields).
13+
For information about creating custom license fields, see [Managing Customer License Fields](licenses-adding-custom-fields). For the list of built-in fields in customer licenses, see [Built-In License Fields](/vendor/licenses-using-builtin-fields).
1414

15-
The Replicated admin console runs on the customer's cluster and provides entitlement information during application runtime. You can query the admin console `/license/v1/license` endpoint to enforce entitlements at runtime.
15+
The KOTS Admin Console runs on the customer's cluster and provides entitlement information during application runtime. You can query the admin console `/license/v1/license` endpoint to enforce entitlements at runtime.
1616

1717
## Query Fields
1818

docs/vendor/licenses-reference-sdk.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ To use the SDK API to query entitlements at runtime:
2727

2828
1. In the Vendor Portal, click **Customers**. Select a customer and click the **Manage customer** tab. Alternatively, click **+ Create customer** to create a new customer. For more information, see [Creating and Managing Customers](/vendor/releases-creating-customer).
2929

30-
1. Edit the built-in license fields or add custom fields for the customer. For example, you can set a license expiration date in the **Expiration policy** field. Or, you can create a custom field that limits the number of nodes a user is permitted in their cluster. For more information, see [Managing Custom License Fields](/vendor/licenses-adding-custom-fields).
30+
1. Edit the built-in fields and add custom fields for the customer. For example, you can set a license expiration date in the **Expiration policy** field. Or, you can create a custom field that limits the number of nodes a user is permitted in their cluster. For more information, see [Managing Customer License Fields](/vendor/licenses-adding-custom-fields).
3131

3232
1. (Recommended) Develop against the SDK API `license` endpoints locally:
3333

docs/vendor/licenses-referencing-fields.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This topic describes how to check custom entitlements before installation or upg
66

77
KOTS includes default logic to control access to features in the Replicated Admin Console and KOTS CLI based on the values for the built-in fields in the customer's license. For example, by default, KOTS uses the built-in `expires_at` field to prevent an instance from receiving updates when the customer license expires. You can add custom logic to your application to control the behavior of your application based on the built-in fields or any of the custom fields that you create.
88

9-
For more information about creating custom license fields, see [Managing Custom License Fields](licenses-adding-custom-fields). For more information about the built-in license fields, see [Built-In License Fields](licenses-using-builtin-fields).
9+
For more information, see [Managing Customer License Fields](licenses-adding-custom-fields). For the list of built-in fields in customer licenses, see [Built-In License Fields](/vendor/licenses-using-builtin-fields).
1010

1111
## Add Preflights to Check Entitlements Before Installation or Upgrade {#install}
1212

0 commit comments

Comments
 (0)