If you want to recreate a static username/password pair or no longer need to use a static username/password pair, you can delete the existing static username/password pair. This topic describes how to delete a static username/password pair in the Message Queue for RabbitMQ console.

Prerequisites

  • The Message Queue for RabbitMQ instance in which you want to delete a static username/password pair is in the running state.
  • The account that you use to log on to the Message Queue for RabbitMQ console is an Alibaba Cloud account or a RAM user that is granted the permissions to view and delete static username/password pairs. For more information about account permissions and authorization operations, see RAM policies, Grant permissions to RAM users, and Grant permissions across Alibaba Cloud accounts.

Background information

When you access Message Queue for RabbitMQ from a client, Message Queue for RabbitMQ authenticates your permissions based on your username and password. Message Queue for RabbitMQ allows you to generate usernames and passwords for your client by using the following methods:
  • Dynamic username and password: Use a permission authentication class provided by Alibaba Cloud to generate dynamic usernames and passwords.
  • Static username and password (recommended): Generate static usernames and passwords in the Message Queue for RabbitMQ console. This method is the same as that of open source RabbitMQ.
Notice When you call an SDK to send or receive messages on a client, we recommend that you use persistent connections. This way, you do not need to create connections every time you send or receive messages. Frequent creation of connections consumes a large number of network and server resources and may even trigger protection against SYN flood attacks. For more information, see Connection.

Usage notes

A static username/password pair becomes invalid after the pair is deleted. When the client uses this static username/password pair to access Message Queue for RabbitMQ, the access request is rejected.

Procedure

  1. Log on to the Message Queue for RabbitMQ console.
  2. In the top navigation bar, select the region where your instance resides.
  3. In the left-side navigation pane, click Static Accounts Alerting.
  4. On the Static Accounts Alerting page, select an instance, find the static username/password pair that you want to delete, and click Delete in the Actions column.
  5. In the Confirmation message, click OK.
    The deleted static username/password pair is no longer displayed on the Static Accounts Alerting page.