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

Prerequisites

  • The Message Queue for RabbitMQ instance from which you want to delete a pair of static username and password 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 Resource Access Management (RAM) user that is granted the permissions to view and delete static usernames and passwords. 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 a pair of dynamic username and password.
  • Static username and password (recommended): Generate a pair of static username and password in the Message Queue for RabbitMQ console. This method is the same as that of open source RabbitMQ.
Notice If you use an SDK to send or receive messages on your client, we recommend that you use persistent connections. This way, the client does not need to establish connections every time you use the client to send or receive messages. Frequent creation of connections consumes a large number of network and broker resources and may even trigger protection against SYN flood attacks on the broker. For more information, see Connection.

Usage notes

A pair of static username and password becomes invalid after the pair is deleted. If a client uses this pair of static username and password 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 Resource Distribution section of the Overview page, select the region where your instance is located.
  3. On the Instances page, click the name of your instance.
  4. In the left-side navigation pane, click Static Accounts.
  5. On the Static Accounts page, find the pair of static username and password that you want to delete and click Delete in the Actions column.
  6. In the Note message, read the note. If you are sure to delete the pair of static username and password, click OK.
    The deleted pair of static username and password no longer appears on the Static Accounts page.