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

Value Conversion Error : ldap_group_settings #168

Closed
5 tasks done
MrLuje opened this issue Nov 29, 2024 · 1 comment · Fixed by #171
Closed
5 tasks done

Value Conversion Error : ldap_group_settings #168

MrLuje opened this issue Nov 29, 2024 · 1 comment · Fixed by #171
Assignees
Labels
bug Something isn't working

Comments

@MrLuje
Copy link

MrLuje commented Nov 29, 2024

Describe the bug

Updated my existing terraform project from 1.12.0 to 1.18.2

terraform {
  required_providers {
    platform = {
      source  = "jfrog/platform"
      version = "1.18.2"
    }
  }
}

provider "platform" {
  url               = ""
  access_token      = ""
}

resource "platform_saml_settings" "keycloak-saml" {
  name                         = "keycloak-saml"
  enable                       = true
  certificate                  = "xxx"
  login_url                    = "https://keycloak/protocol/saml"
  logout_url                   = "https://keycloak/protocol/saml"
  service_provider_name        = "stuff-external"

  allow_user_to_access_profile = true
  sync_groups                  = true
  no_auto_user_creation        = false

  group_attribute              = "memberOf"
}

No diff related to platform_saml_settings but following error on terraform plan :

│ Error: Value Conversion Error
│ 
│   with platform_saml_settings.keycloak-saml,
│   on artifactory_settings.tf line 19, in resource "platform_saml_settings" "keycloak-saml":
│   19: resource "platform_saml_settings" "keycloak-saml" {
│ 
│ An unexpected error was encountered while verifying an attribute value matched its expected type to prevent unexpected behavior or panics.
│ This is always an error in the provider. Please report the following to the provider developer:
│ 
│ Expected framework type from provider logic: types.SetType[basetypes.StringType] / underlying type: tftypes.Set[tftypes.String]
│ Received framework type from provider logic: types.SetType[!!! MISSING TYPE !!!] / underlying type: tftypes.Set[tftypes.DynamicPseudoType]
│ Path: ldap_group_settings

Requirements for and issue

  • A description of the bug
  • A fully functioning terraform snippet that can be copy&pasted (no outside files or ENV vars unless that's part of the issue). If this is not supplied, this issue will likely be closed without any effort expended.
  • Your version of artifactory (you can curl it at $host/artifactory/api/system/version : 7.84.12
  • Your version of terraform : v1.9.8
  • Your version of terraform provider : v1.18.2

Additional context
The new ldap_group_settings feature (https://registry.terraform.io/providers/jfrog/platform/latest/docs/resources/saml_settings#ldap_group_settings-1) seems to only be supported for artifactory >= v7.98 so it shouldn't be usable on my instance

Thanks

@MrLuje MrLuje added the bug Something isn't working label Nov 29, 2024
@alexhung
Copy link
Member

alexhung commented Dec 2, 2024

@MrLuje Thanks for the report. I've added this to our plan to investigate/fix.

alexhung added a commit that referenced this issue Dec 3, 2024
…version-error

Fix 'Value Conversion Error' for platform_saml_settings
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

Successfully merging a pull request may close this issue.

2 participants