Browse Source

removed creds from log, user tag upped to administrator (#6)

pull/8/head
Vladimir Smagin 1 year ago
committed by GitHub
parent
commit
262a8fd74b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      pkg/controller/rabbitmq/rabbitmq_policies.go
  2. +1
    -1
      pkg/controller/rabbitmq/rabbitmq_users.go

+ 1
- 1
pkg/controller/rabbitmq/rabbitmq_policies.go View File

@@ -41,7 +41,7 @@ func (r *ReconcileRabbitmq) setPolicies(ctx context.Context, reqLogger logr.Logg
raven.CaptureErrorAndWait(err, nil)
return err
}
reqLogger.Info("Policies: Using API service: "+r.apiServiceAddress(cr), "username", serviceAccount.username, "password", serviceAccount.password)
reqLogger.Info("Policies: Using API service: "+r.apiServiceAddress(cr), "username", serviceAccount.username)

var policiesCR []rabbitmqv1.RabbitmqPolicy



+ 1
- 1
pkg/controller/rabbitmq/rabbitmq_users.go View File

@@ -87,7 +87,7 @@ func (r *ReconcileRabbitmq) syncUsersCredentials(ctx context.Context, reqLogger
for userName, userPassword := range usersSecret.Data {
reqLogger.Info("Adding user " + userName)

err = r.apiUserAdd(reqLogger, cr, serviceAccount, rabbitmqUserStruct{Name: userName, Password: string(userPassword), Tags: "management"})
err = r.apiUserAdd(reqLogger, cr, serviceAccount, rabbitmqUserStruct{Name: userName, Password: string(userPassword), Tags: "administrator"})
if err != nil {
reqLogger.Info("Error adding user "+userName, "Error", err)
raven.CaptureErrorAndWait(err, nil)


Loading…
Cancel
Save