You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/reference/template-functions-license-context.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
```go
5
5
funcLicenseFieldValue(namestring) string
6
6
```
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).
8
8
9
9
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.
Copy file name to clipboardExpand all lines: docs/vendor/licenses-about-types.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# Community Licenses
1
+
# About Community Licenses
2
2
3
3
This topic describes community licenses. For more information about other types of licenses, see [License Types](licenses-about#license-types) in _About Customers_.
Copy file name to clipboardExpand all lines: docs/vendor/licenses-about.mdx
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,13 +36,13 @@ Except Community licenses, the license type is used solely for reporting purpose
36
36
37
37
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.
38
38
39
-
### Built-in and Custom License Fields
39
+
### Built-In and Custom License Fields
40
40
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.
42
42
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.
44
44
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).
Copy file name to clipboardExpand all lines: docs/vendor/licenses-adding-custom-fields.md
+34-18Lines changed: 34 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,22 +1,38 @@
1
-
# Managing Custom License Fields
1
+
# Managing Customer License Fields
2
2
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.
5
4
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)
8
6
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.
10
8
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.
[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.
12
28
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.
14
30
15
-
## Limitation
31
+
###Limitation
16
32
17
33
The maximum size for a license field value is 64KB.
18
34
19
-
## Create Custom License Fields
35
+
###Create Custom License Fields
20
36
21
37
To create a custom license field:
22
38
@@ -37,20 +53,20 @@ To create a custom license field:
37
53
| Type| The field type. Supported formats include integer, string, text (multi-line string), and boolean values. This value cannot be changed. |
38
54
| 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. |
39
55
| 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). |
41
57
42
-
## Update Custom License Fields
58
+
###Update Custom License Fields
43
59
44
60
To update a custom license field:
45
61
46
62
1. Log in to the Vendor Portal and select the application.
47
63
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.
48
64
49
65
:::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.
51
67
:::
52
68
53
-
## Set Customer-Specific Values for Custom License Fields
69
+
###Set Customer-Specific Values for Custom License Fields
54
70
55
71
To set a customer-specific value for a custom license field:
56
72
@@ -67,11 +83,11 @@ To set a customer-specific value for a custom license field:
67
83
68
84
[View a larger version of this image](/images/customer-license-custom-fields.png)
69
85
70
-
## Delete Custom License Fields
86
+
###Delete Custom License Fields
71
87
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.
73
89
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.
75
91
76
92
Only administrators can delete license fields.
77
93
@@ -92,4 +108,4 @@ To delete a custom license field:
92
108
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.
93
109
:::
94
110
95
-
1. Follow the instructions in the dialog and click **Delete**.
111
+
1. Follow the instructions in the dialog and click **Delete**.
Copy file name to clipboardExpand all lines: docs/vendor/licenses-download.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ For information about how to download customer licenses with the Vendor API v3,
8
8
9
9
## Download Licenses
10
10
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.
Copy file name to clipboardExpand all lines: docs/vendor/licenses-reference-helm.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ To check entitlements before installation:
39
39
40
40
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).
41
41
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).
43
43
44
44
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.
Copy file name to clipboardExpand all lines: docs/vendor/licenses-reference-kots-runtime.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,9 +10,9 @@ Using the KOTS License API to check entitlements during runtime is _not_ recomme
10
10
11
11
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.
12
12
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).
14
14
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.
Copy file name to clipboardExpand all lines: docs/vendor/licenses-reference-sdk.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ To use the SDK API to query entitlements at runtime:
27
27
28
28
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).
29
29
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).
31
31
32
32
1. (Recommended) Develop against the SDK API `license` endpoints locally:
Copy file name to clipboardExpand all lines: docs/vendor/licenses-referencing-fields.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ This topic describes how to check custom entitlements before installation or upg
6
6
7
7
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.
8
8
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).
10
10
11
11
## Add Preflights to Check Entitlements Before Installation or Upgrade {#install}
0 commit comments