hono icon indicating copy to clipboard operation
hono copied to clipboard

Automatically create resources on EnMasse

Open ctron opened this issue 7 years ago • 3 comments

I would like to create some kind of functionality which extracts the Tenant information from Hono in order to automatically provision messaging resources in EnMasse.

Basically taking newly created tenants (or recently dropped ones) to requests addresses from EnMasse instead of manually executing a curl command.

ctron avatar May 08 '18 14:05 ctron

Would that be plugged into the creation of a tenant then? Or are you more thinking of a making all tenant information accessible from EnMasse, so it could synchronize at any time?

In the latter case, I would have the concern that in true multi tenant setups IMHO usually there is no "super user" that can access all tenants, but only single tenant users that can access exactly the tenant that they were created for.

sysexcontrol avatar May 09 '18 09:05 sysexcontrol

Up until now I haven't any specific plans other than getting rid of manual provisioning.

The way the service broker works (at least my basic understanding of it) would be that some component (e.g. the Hono component having all the tenant informations) would publish a request for new resources. EnMasse would pick this up (or would get informed) and provision the new resources.

If there is a "super user" it would be OpenShift/Kubernetes probably with service accounts.

ctron avatar May 09 '18 14:05 ctron

I would like to make sure, though, that we do not introduce a direct dependency on an enMasse component in Hono. An elegant way to solve this might be to publish corresponding events from within the Tenant service which could be processed by enMasse in order to manage the resources ...

sophokles73 avatar May 11 '18 08:05 sophokles73