Rabbitmq set user only sub - rabbitmq

How to add a user can only Subscribe but not Publish?
on Publish/Subscribe https://www.rabbitmq.com/tutorials/tutorial-three-python.html

Please refer to official documentation regarding access control:
https://www.rabbitmq.com/access-control.html
Especially the "Authorisation: How Permissions Work" section.

Related

How to change Telegram Bot settings knowing only the token

Someone set up Matterbridge to transfer the contents of a Telegram channel into a Mattermost channel. To do this, they created a Telegram bot.
Unfortunately, the person has disappeared (Covid?), and we don't have full details of the account used to set up the bot.
We do have the Bot Token (from the Matterbridge config file).
Is there any way we can find out more about the bot, change its settings, join it to other channels, etc?
A bot's token allows you to do anything the Bot API is capable of doing. You can check a list of available methods here https://core.telegram.org/bots/api#available-methods.
"Is there any way we can find out more about the bot"
Some limited info, yes. Try calling https://api.telegram.org/botBOT_TOKEN/getMe and /getWebhookInfo.
You might be able to get a webhook url - in case it was set up to use one.
"... change its settings"
Rather not. You'd need access to wherever the bot is hosted. It's not possible to tell exactly without knowing how the bot works. But anything specific found within the bot's processing script/program will not be accessible to you.
"...join it to other channels"
Yes. As answered here. Though it may not be useful to do. Depends on how the bot is set up to work.

Which app permissions are required for the RingCentral Call Control API?

I'm wondering if anyone has had any success with the new RingCentral Call Control API, particularly around app permissions.
The docs suggest the app needs the CallControl permission. The problem is that this permission does not appear to exist. Do we use the "Active Call Control" permission instead?
My use case is for creating subscriptions using the "/restapi/v1.0/account/~/telephony/sessions" event filter. Even though the "Active Call Control" permission appears to work, I'm not convinced it's the correct approach.
When the "Active Call Control" permission is not set, I get the error "Required application permission [CallControl] is missing" on subscription creation. When it is set, I don't get an error and the subscription appears to work. So what's the problem?
Well, for one, I don't like the I'm just guessing at what the proper permission is. I don't see any documentation where the app permissions are defined.
Also, when I go to graduate the app from the sandbox, it tells me that the "Active Call Control" permission was unused. This might be a separate issue, a quirk with subscriptions, but it adds to my feeling that perhaps I shouldn't just be guessing.
Links to relevant documentation would be appreciated, as would direction or experience with this API.
Thanks for bringing this up. This is a bug in the documentation, the actual permission name is "Active Call Control" and not "CallControl". You are using "Active Call Control" correctly. This permission is used for both Telephony Sessions Notifications and Active Call Control APIs. We shall update the documentation soon.
If you want to see any changes, please feel free to send your feedback directly to our Public Developer Glip Group https://developers.ringcentral.com/community.html.

How to get all JIRA notifications?

We use JIRA 7.0.4.
I'm trying to work out the best way to get notified of any comments/changes/anything on a JIRA ticket. Do I need to be a Watcher? A Participant? The Assignee? Or is it reliant on whether or not the comment is #Budfudder?
I'm having a hard time finding any definitive statements on this in the JIRA documentation.
Strange question. Notification that you receive depends on you permission browse issue and notification scheme in project settings. If you want recieve all notifications one of best practices this is create role named like Notificator and add all event to this role in notification scheme/browse permission in permission scheme.

MFA is required? Container-based services

I am using Container-based services, is there a way I can find out the container requires MFA or not after i have additemforcontentservice1?
Cheers,
Patrick
You will have to call getContentServiceInfo1 API before calling additemForContentService1 to know if the content service(the bank) requires MFA or not.
You need to look for the field "mfaType". This field will only be present for MFA sites with "typeName" as "TOKEN" or "IMAGE" or "SECURITY_QUESTION".
Also please follow the API flow Add_Account and Refresh_Account
for building the container based add account process.

How to get current user permissions using JIRA SOAP API?

I'm developing a JIRA Client using the SOAP API and I want to check in advance what features the user will have available.
For example I don't want to show a button to comment on an issue if the user doesn't have Add Comments RemotePermission.
I tried with getAllPermissions method, but it seems it gets all permissions int the application, not the ones that the user has.
Not easy. There is a method for checking comment permission in 4.4 but not for all permissions in general, IIRC.
http://docs.atlassian.com/rpc-jira-plugin/4.4/com/atlassian/jira/rpc/soap/JiraSoapService.html#hasPermissionToEditComment(java.lang.String, com.atlassian.jira.rpc.soap.beans.RemoteComment)
Better to go with REST if you can.