logo
Alauda Streaming Service for RabbitMQ
logo
Alauda Streaming Service for RabbitMQ
Navigation
Introduction
Release Notes
Lifecycle Policy
Install
Upgrade
Architecture
Concepts

Guides

Create Instance
Delete Instance
User Management
Parameter Configuration
Access Methods
Update Specification
Scheduling Configuration
Monitoring and Alerts
Log
Start & Stop Instance
Restart Instance

HowTo

Client Connection
Patch Version Upgrade

Plugin

Using RabbitMQ Management UI
Permissions

API Reference

Kubernetes APIs

RabbitMQ APIs

RabbitMQ
📝 Edit this page on GitHub
Previous PageDelete Instance
Next PageParameter Configuration

#User Management

#TOC

#Username and Password

Note

Attention: The default user guest of RabbitMQ has a publicly known password. To ensure environmental security, this user has been disabled on the platform. A randomly generated user provided by the platform can be used for accessing the instance.

When creating an instance, a random admin account will be generated, and the account information will be stored in a secret resource named <Instance name>-default-user. For example:

apiVersion: v1
data:
  default_user.conf: ZGVmYXVsdF91c2VyPWFkbWluCmRlZmF1bHRfcGFzcz1hZG1pbjEyM18=
  password: YWRtaW4xMjNf
  provider: cmFiYml0bXE=
  type: cmFiYml0bXE=
  username: YWRtaW4=
kind: Secret
metadata:
  labels:
    app.kubernetes.io/component: rabbitmq
    app.kubernetes.io/name: rrrr
    app.kubernetes.io/part-of: rabbitmq
    prometheus.io/port: "15692"
    prometheus.io/scrape: "true"
  name: rrrr-default-user
type: Opaque

Here, username corresponds to the default username for accessing RabbitMQ, and password corresponds to the default user's password.

Warning

This secret is read-only and cannot be updated directly to change the password. Otherwise, it may cause the instance to malfunction.

CLI
Web Console

Use the following commands to directly parse the default user's username and password.

# Get the username
$ kubectl -n <namespace> get secret <instance name>-default-user -o jsonpath='{.data.username}' | base64 -d

# Get the password
$ kubectl -n <namespace> get secret <instance name>-default-user -o jsonpath='{.data.password}' | base64 -d