Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Suspected Regression from 0.4.5 --> 0.4.6; "Error: auth_token need to be set of auth_username and auth_password" #110

Open
brettpalmberg opened this issue Oct 13, 2023 · 5 comments

Comments

@brettpalmberg
Copy link

Terraform Version

Terraform v1.5.5
provider registry.terraform.io/rundeck/rundeck v0.4.6

Affected Resource(s)

Rundeck provider using "auth_token". The auth_token value is provided via module output. This works if the rundeck provider is pinned to previous version 0.4.5 or earlier.

Example:

provider "rundeck" {
  url         = module.rundeck.url
  api_version = "41"
  auth_token  = module.rundeck.auth_token
}

Debug Output

2023-10-13T13:45:07.825-0400 [ERROR] vertex "provider["registry.terraform.io/rundeck/rundeck"]" error: auth_token need to be set of auth_username and auth_password

Expected Behavior

Clean terraform plan without errors.

Actual Behavior

Error in terraform plan:

error: auth_token need to be set of auth_username and auth_password

Steps to Reproduce

terraform plan

Important Factoids

NA

References

I think this may be related to the PR here: https://github.com/rundeck/terraform-provider-rundeck/pull/103/files

Thank you.

@fdevans
Copy link
Contributor

fdevans commented Oct 23, 2023

Can you provide more details here? I was not able to reproduce this with my environment and 0.4.6. I am able to run my plan using just an auth_token specified.

@brettpalmberg
Copy link
Author

Thank you @fdevans . I wonder if this occurs when auth_token is provided as an output of another module (rather than an explicit string in the provider block)?

@fdevans
Copy link
Contributor

fdevans commented Oct 26, 2023

I thought that too, but I built my test environment that way and it also works as expected.

@brettpalmberg
Copy link
Author

Thanks. I will see if there is any additional information I can glean from the debug logging.

@DriesdeKort
Copy link

DriesdeKort commented Dec 21, 2023

I have the same problem in version 0.4.7

I also think there is a typo in this error: auth_token need to be set of auth_username and auth_password. I think either the aut_token OR the auth_username and auth_password need to be set

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants