-
Hi, We are currently implementing a licensing scheme whereby different tiers of the pricing scheme have different restrictions in our product. One of them is CPU count, for which we can set the value for each pricing tier at the Policy level, which will be inherited by the individual licenses. However, we also have other restrictable valued metrics for which we would like to be able to define them at the policy level and inherited by the license. Policies would be like We initially thought that the So far, I feel that would mean that, apart from the CPU count, for all the other restrictable metrics, we would need to either:
But this feels quite inelegant, and quickly adds overhead and a lot of handling code in the product. The reason we wanted to attach the metric restrictions at the policy level is to enable us to future-proof the system so that if we need to change the value of these metrics for future policy variants (updated product pricing or limitations), without impacting the restrictions of past licenses, we would simply add a policy like To clarify, we would like the value of these restrictions to NOT be hardcoded in the product, but rather driven from the keygen backend. I've been searching in the documentation but haven't really found a more elegant solution. (Groups are not an option as we use it for their intended purpose, i.e. grouping users from the same organisation) Wondering about any other suggestions? Otherwise, I'd see this as a potential feature request to be able to set key-value metadata at policy level that become inherited by the licenses. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
No plans on inheritable Entitlements can have metadata as well, which may be useful here. |
Beta Was this translation helpful? Give feedback.
No plans on inheritable
metadata
. Metadata is unique per-resource. You can use entitlements for this use case, as you outlined. Any entitlement attached via the policy will propagate down to all of the licenses implementing said policy.Entitlements can have metadata as well, which may be useful here.