keygen-sh / keygen-api

Keygen is a fair source software licensing and distribution API built with Ruby on Rails. For developers, by developers.
https://keygen.sh
Other
699 stars 40 forks source link

Is there any way to enroll multiple licenses on one machine? #844

Closed ahnjs1987 closed 1 month ago

ahnjs1987 commented 1 month ago

Since a machine may have more than one license and may be added, I am wondering if there is a way to add/change more than one license to the machine.

ezekg commented 1 month ago

By default, the same fingerprint can be activated for multiple licenses, given the policy has a uniqueness strategy that allows for that, but actual machine objects are per-license and managed per-license, i.e. activations are managed individually for each license as opposed to collectively. What's your use case here? Why would a machine have more than 1 license?

ahnjs1987 commented 1 month ago

Because I can install multiple software on machine. And I want to configure different policies and license for each software, and I want those software licenses to be tied to the machine. I think the uniqueness strategy is right for us. However, that property does not seem to be able to express dependency with a specific machine. (It is possible to compare using fingerprints, but I considered about changing group for a specific machine and software mounted on the machine.)

ezekg commented 1 month ago

Each application (product) is already licensed separately. I'm still not sure I'm following exactly what you're asking for, nor how the current defaults don't already get you there. Machines are per-license, and we have no plans to share machine objects between licenses, because each license<>machine relationship is unique. This would complicate activation and deactivation, since deactivating machine X for license A would also deactivate machine X for license B and C as well. Like I said above, you can control uniqueness to effectively get what I believe you're asking for (which is actually the default... so I'm confused if this is a real issue or a contrived one that you haven't actually tried yet).

Regardless, the issue tracker is for issues and feature requests only, not for support. We have a community discussion forum, a Discord, and email for support. Please use one of those for further support.