Hi Ramith and All,

I believe I have a suitable solution for this.

>From our deployers lets publish the deployment message to MB and the wall
as tenant admin. We just need a username to publish but we are never going
to show it in the front end that tenant admin did the publishing. So the
solution is very very simple :)

Another thing to find out, is whether our deployers get the error message.
I am sure the deployers are getting the success case so the wall is safe.
But not the MB.

thanks,
dimuthu



On Mon, May 12, 2014 at 12:22 PM, Shammi Jayasinghe <[email protected]> wrote:

> Hi Ramith,
>
> AFAIU , there can not be any anonymous users in our system. If it is from
> Stratos, there should be a user or Admin user which booted up or
> responsible for that action. If if it from AppFactory, then AFAIU it is the
> admin task of the app factory. So, Is it not possible to use the admin user
> of Stratos or Appfactory for above use case.
>
> Basically the reason behind the above statement is, if we try to cater the
> feature of not providing the user name for MB, it will open a huge set of
> issues since we need to manage permissions for the users of MB .
>
> Thanks
> Shammi
>
>
> On Mon, May 12, 2014 at 11:42 AM, Ramith Jayasinghe <[email protected]>wrote:
>
>> Hi,
>>  The purpose of this email is the figure out a way to do $subject.
>>  Suppose a carbon server wants to send a JMS message to through MB
>> without using a user name( which is recognized by MB). this is obviously
>> not possible since to create a connection one needs have credentials ( i.g
>> username + password , access key).
>>
>> Now, the scenario I have in mind is where MB and another (probably a
>> carbon) server(s) are just part of a bigger system. various parts of the
>> system needs to communicate with each other using JMS. one approach would
>> be to have a special/magic user to connect to MB and send message. BUT this
>> is not the ideal approach given that its has the meaning of a user
>> generated the massage NOT the System. ( and a magic user need to be created
>> in every tenant).
>>
>> Now let me relate the problem to a example:
>>  In Appfactory we use MB to exchange messages. some of these messages are
>> originated from appfactory users. examples:
>>    1. User creates an application.
>>    2. User starts a build.
>>
>> However there are some events that are not particularly associated with
>> an user. Examples:
>>
>>    1) an web  application is deployed (or deployment failed) in
>> application server (App server is spawned by Stratos and deployment is done
>> via dep-sync).
>>   2) a build completes in jenkins/build server and appfactory send a
>> notification about the build status.
>>   Note that in above scenarios, event is generated by the system ( a.ka.
>> Appfactoy) not the user. which means we don't know a user to associate  OR
>> its wrong to associate the user with the event ( the user might get angry
>> if the Appfactory used his/her name to send a massage !!)
>>
>>
>> So in essence what we are looking for a way to create a jms connection to
>> MB without involving a user in userstore. I know with the current
>> capabilities ( or how the JMS is works) this may be not possible.
>>
>> So what do you guys think?
>>
>> --
>> Ramith Jayasinghe
>> Technical Lead
>> WSO2 Inc., http://wso2.com
>> lean.enterprise.middleware
>>
>>
>
>
> --
> Best Regards,
>
> *  Shammi Jayasinghe*
> Associate Tech Lead
> WSO2, Inc.; http://wso2.com,
> mobile: +94 71 4493085
>
>


-- 
Dimuthu Leelarathne
Architect & Product Lead of App Factory

WSO2, Inc. (http://wso2.com)
email: [email protected]
Mobile : 0773661935

Lean . Enterprise . Middleware
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to