Skip to content
This repository has been archived by the owner on Nov 14, 2020. It is now read-only.

rabbitmq_user - updating tags clears password #40

Closed
heimweh opened this issue Oct 11, 2019 · 1 comment
Closed

rabbitmq_user - updating tags clears password #40

heimweh opened this issue Oct 11, 2019 · 1 comment

Comments

@heimweh
Copy link
Contributor

heimweh commented Oct 11, 2019

Terraform Version

Terraform v0.12.9

Affected Resource(s)

  • rabbitmq_user

Terraform Configuration Files

resource "rabbitmq_user" "test" {
  name     = "mctest"
  password = "foobarry"
  tags = [
    "admin",
    "management",
  ]
}

Expected Behavior

Updating user tags shouldn't clear the user password

Actual Behavior

When updating the tags for an existing user, it seems like the provider doesn't pass the password in the PUT request, which essentially leads to the user not being able to authenticate. This can currently only be resolved by:

  1. Updating the user password in the management console
  2. Re-creating the user with Terraform

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. terraform apply the above configuration
  2. Try to log in (works)
  3. Update the list of tags and run terraform apply
  4. Try to log in (does not work)
@heimweh
Copy link
Contributor Author

heimweh commented Dec 9, 2019

Closing this since it's been fixed by #31

@heimweh heimweh closed this as completed Dec 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
1 participant