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

new Keycloak/keycloak Provider dose not work #1363

Closed
AchimGrolimund opened this issue Dec 11, 2024 · 2 comments
Closed

new Keycloak/keycloak Provider dose not work #1363

AchimGrolimund opened this issue Dec 11, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@AchimGrolimund
Copy link

Thank you for reporting an issue.

I made the upgrade from the old mrparkers/keycloak 4.4.0 to keycloak/keycloak 4.5.0
but i can not run the plan/apply

Based on this PR: #1356

Reproduce:

  1. upgrade versions.tf:
terraform {
  required_providers {
    keycloak = {
      source = "keycloak/keycloak"
      version = "4.5.0"
    }
  }
}
  1. run upgrade commands:
tofu state replace-provider mrparkers/keycloak keycloak/keycloak
# Successful
tofu init -upgrade
# Successful
tofu plan

Planning failed. OpenTofu encountered an error while generating this plan.

╷
│ Error: Missing required attribute
│ 
│   on provider["registry.opentofu.org/mrparkers/keycloak"] with no configuration line 1:
│   (source code not available)
│ 
│ The attribute "client_id" is required, but no definition was found.
╵
╷
│ Error: Missing required attribute
│ 
│   on provider["registry.opentofu.org/mrparkers/keycloak"] with no configuration line 1:
│   (source code not available)
│ 
│ The attribute "url" is required, but no definition was found.
╵

i have a file named: terraform.tf (same directory):

terraform {
  backend "s3" {
    ...
  }
}

provider "keycloak" {
  client_id     = var.terraform_client_id
  client_secret = var.terraform_client_secret
  url           = var.rhbk_base_url
}

OpenTofu Version

➜  tofu version
OpenTofu v1.8.7
on linux_amd64
+ provider registry.opentofu.org/hashicorp/external v2.3.4
+ provider registry.opentofu.org/hashicorp/null v3.2.3
+ provider registry.opentofu.org/hashicorp/time v0.12.1
+ provider registry.opentofu.org/keycloak/keycloak v4.5.0
+ provider registry.opentofu.org/mrparkers/keycloak v4.5.0


### OpenTofu Configuration Files

```hcl
# This file is maintained automatically by "tofu init".
# Manual edits may be lost in future updates.

provider "registry.opentofu.org/hashicorp/external" {
  version = "2.3.4"
  hashes = [
    "h1:saRbzhRhYh4urj+ARe8vIB0mlRspy6E/fPSyvwqjUW8=",
    "zh:0e5eb3513d6ad5cc3196799a6e413c6a9c0b642ba6d8f84fc11efa48f58358a4",
    "zh:1658beae42b4614d4009a3191710c86571ccf1dc526c4bac520a87ab701dd2e9",
    "zh:28d937c13e90c170fc1e4b726a9bcf113aade53b95b3eccd335cd9eaba8acff5",
    "zh:2ac19917bb83233f24391d4cbaf301bb6ec14013d3b7f93bdf64823280622daa",
    "zh:3263d1808fc5252d586a9aa98d89086c912f53e1a3dc43bc5306364b358f04fa",
    "zh:463469836637342495e22a936ef9ab3c8ab2fb47eb0fae09c346d63f3331af59",
    "zh:53398a27492cd11f61b2f24c2601c12f50c39da32b90fd25aed7011a1e25a225",
    "zh:5a44cfbcef52fd3c970144a69a934cab320bd3bb57939ae4682fc516783e2996",
    "zh:65edb579d9d0dac42e77728d81da6e85ea30d3fe8f2cb6e5db82602ee8afa17e",
    "zh:f2edd3027b7ae0d31a690fd5dcdcd22b467b4f1e045f84f2bc88289353ef9a5b",
  ]
}

provider "registry.opentofu.org/hashicorp/null" {
  version = "3.2.3"
  hashes = [
    "h1:LF8arSzHfhbyQSFtTMTYEqCM34klzrbAQBJMHYCs9d8=",
    "zh:1d57d25084effd3fdfd902eca00020b34b1fb020253b84d7dd471301606015ac",
    "zh:65b7f9799b88464d9c2ec529713b7f52ea744275b61a8dc86cdedab1b2dcb933",
    "zh:80d3e9c95b7b4ae7c54005cd127cae82e5c53d2b7023ef24c147337bac9dadd9",
    "zh:841b60c07683e4bf456799ccd718896fdafdcc2c49252ae09967f2e74d8c8a03",
    "zh:8fa1c592a9c78222e35713c6edb3f1f818a4c6f3524a30a209f0a7e919827b68",
    "zh:bb795cc1429e09466840c09d39a28edf1db5070b1ec76822fc1173906a264572",
    "zh:da1784818a89bea29dfe660632f0060a7a843e4e564d74435fbeca002b0f7d2a",
    "zh:f409bf21b1cdaa6dac47cd79806f3d93f67e9507fe4dbf33b0165335f53bc2e1",
    "zh:fbea7a1ff84b430ba9594698e93196d81d03e4036de3d1cafccb2a96d5b38581",
    "zh:fbf0c84663a7e85881388d7d71ac862184f05fbf2d17ecf76bc5d3d7503ea260",
  ]
}

provider "registry.opentofu.org/hashicorp/time" {
  version = "0.12.1"
  hashes = [
    "h1:PnOB6IAQJoYi/r3iUH7Hml2c2zFrIzHksQsrK3VPjSI=",
    "zh:50a9b67d5f5f42adbdb7712f67858aa64b5670070f6710751239b535fb48a4df",
    "zh:5a846fae035e363aed75b966d64a56f3489a38083e8407aaa656730437f53ed7",
    "zh:6767f1fc8a679b48eaa4cd114da0d8185fb3546375f3a0fb3728f10fa3dbc551",
    "zh:85d3da407c828bf057cbc0e86c75ef3d0f9f74a73c4ea1b4aef18e33f41092b1",
    "zh:9180721325139431112c638f5382a740ff219782f81d6346cdff5bccc418a43f",
    "zh:9ba9989f905a64db1409a9a57649549c89c7aedfb55ae399a7fa9411aafaadac",
    "zh:b3d9e7afb6a742e9be0541bc434b00d849fdfab0b4b859ceb0296c26c541af15",
    "zh:c87da712d718acd9dd03f544b020c320699cb29df197be4f74783e3c3d80fc17",
    "zh:cb1abe07638ef6d7b41d0e86dfb12d60a513aca3395a5da7191947f7459821dd",
    "zh:ecff2e823ef49eda03663fa8ee8bdc17d27cd419dbdacbf1719f38812dbf417e",
  ]
}

provider "registry.opentofu.org/keycloak/keycloak" {
  version     = "4.5.0"
  constraints = "4.5.0"
  hashes = [
    "h1:SaRSw74s//z4y2VybrIcx3GaIUQKcBcVGyYzhPVKq1g=",
    "zh:08c76d5000a2f8683577bf3fa5529584742e5f06bc06cf42ea8b05c94297cf7f",
    "zh:24ade48d62a67c65a64b425a23aa473eff0fdecae628a7272dbd027e7d1fb992",
    "zh:24c2c7d21f3e85256eed0f2601e9cbaf826867cf05c942f93d8c2a396cf3b1a3",
    "zh:2a4114f9f83f2c3286488773473bb67159dfd831b8b05076cfa5b54c84aa6111",
    "zh:3abbd8c4ec23b25a1083d4fee53f12c0b058906c87bb31d887d62dad354b3edf",
    "zh:5ed4fb36fb260b4af613e5e389710551cd6acec4b7b970de3dceb064d9e92036",
    "zh:718f6265f7cbefb72c65d32141c0e0816219b35dea3f978f2c9e441bc9f3b42b",
    "zh:72abedcdeccb82bfa5ea07fc54edd3d088fda9b3619d99f2dea81ba5b12a38e1",
    "zh:78c5a6cfc8789134f8f1c997bb8731395872ba0d4bc7f7df010e53ba52b92fe2",
    "zh:792206341f0ffcfad5b732fe938d93b911283088d7c2dc14be28ae8879fa9407",
    "zh:82ed201fe929d42b13725ae4e196b8842995a9ac261914b6721b2cf7c7c05a26",
    "zh:98ce3081a3a4998d793fd4ea01b386efa7076533aff0b055f93395955619ebfb",
    "zh:b91e4a911c30f0a5e929a34f9bbfc67cb8e5aa3b0a62633e4cfa44186ca10420",
    "zh:c39ac1504df522384186a446da485c906517c5f312ef4e321a6ad4c30b019e30",
    "zh:cbe2b76fc69f688500c0381160dbea6537add3d18cc7b622f81650a9c9af162d",
    "zh:e6b173a1e4ffa855d0a222c54e89efe0be648df3a29d39c66286132fa2e0a35e",
    "zh:eb7c90edaef4b97e86cb4b9ba8edfff49732f97eb60cf5acef4d790bed032bb3",
  ]
}

provider "registry.opentofu.org/mrparkers/keycloak" {
  version     = "4.5.0"
  constraints = ">= 4.4.0, < 5.0.0"
  hashes = [
    "h1:SaRSw74s//z4y2VybrIcx3GaIUQKcBcVGyYzhPVKq1g=",
    "zh:08c76d5000a2f8683577bf3fa5529584742e5f06bc06cf42ea8b05c94297cf7f",
    "zh:24ade48d62a67c65a64b425a23aa473eff0fdecae628a7272dbd027e7d1fb992",
    "zh:24c2c7d21f3e85256eed0f2601e9cbaf826867cf05c942f93d8c2a396cf3b1a3",
    "zh:2a4114f9f83f2c3286488773473bb67159dfd831b8b05076cfa5b54c84aa6111",
    "zh:3abbd8c4ec23b25a1083d4fee53f12c0b058906c87bb31d887d62dad354b3edf",
    "zh:5ed4fb36fb260b4af613e5e389710551cd6acec4b7b970de3dceb064d9e92036",
    "zh:718f6265f7cbefb72c65d32141c0e0816219b35dea3f978f2c9e441bc9f3b42b",
    "zh:72abedcdeccb82bfa5ea07fc54edd3d088fda9b3619d99f2dea81ba5b12a38e1",
    "zh:78c5a6cfc8789134f8f1c997bb8731395872ba0d4bc7f7df010e53ba52b92fe2",
    "zh:792206341f0ffcfad5b732fe938d93b911283088d7c2dc14be28ae8879fa9407",
    "zh:82ed201fe929d42b13725ae4e196b8842995a9ac261914b6721b2cf7c7c05a26",
    "zh:98ce3081a3a4998d793fd4ea01b386efa7076533aff0b055f93395955619ebfb",
    "zh:b91e4a911c30f0a5e929a34f9bbfc67cb8e5aa3b0a62633e4cfa44186ca10420",
    "zh:c39ac1504df522384186a446da485c906517c5f312ef4e321a6ad4c30b019e30",
    "zh:cbe2b76fc69f688500c0381160dbea6537add3d18cc7b622f81650a9c9af162d",
    "zh:e6b173a1e4ffa855d0a222c54e89efe0be648df3a29d39c66286132fa2e0a35e",
    "zh:eb7c90edaef4b97e86cb4b9ba8edfff49732f97eb60cf5acef4d790bed032bb3",
  ]
}

@AchimGrolimund AchimGrolimund added the bug Something isn't working label Dec 11, 2024
@abstractionfactory
Copy link
Contributor

Hi @AchimGrolimund thank you for the issue. The Keycloak provider is maintained here. Please raise this issue with the provider maintainers as the OpenTofu maintainers have no ability to fix this bug.

@abstractionfactory abstractionfactory closed this as not planned Won't fix, can't repro, duplicate, stale Dec 11, 2024
@AchimGrolimund
Copy link
Author

Hey @abstractionfactory okay i wil do that. i was not sure, if this is an issue comming from the REgestry or from tofu.

thanks for pointing this out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants