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

harbor_config_auth ldap_verify_cert always shows a diff #251

Closed
szEvEz opened this issue Sep 2, 2022 · 1 comment
Closed

harbor_config_auth ldap_verify_cert always shows a diff #251

szEvEz opened this issue Sep 2, 2022 · 1 comment

Comments

@szEvEz
Copy link

szEvEz commented Sep 2, 2022

Describe the bug
Configuring LDAP authentication results in ldap_verify_cert to always show a diff. In the UI, the certificate verify option is enabled.

To Reproduce
Steps to reproduce the behavior:

ldap.tf

resource "harbor_config_auth" "ldap" {
  auth_mode            = "ldap_auth"
  ldap_url             = "ldaps://lmyurl"
  ldap_search_dn       = "CN=my,OU=myou,DC=domain,DC=com"
  ldap_search_password = "mypassword"
  ldap_base_dn         = "OU=myou,DC=domain,DC=com"
  ldap_uid             = "userPrincipalName"
  ldap_group_membership = "memberof"
  ldap_verify_cert = true
}
$ terraform plan

Terraform will perform the following actions:

  # harbor_config_auth.container_registry_infra will be updated in-place
  ~ resource "harbor_config_auth" "ldap" {
        id                    = "/configurations"
      ~ ldap_verify_cert      = false -> true
        # (7 unchanged attributes hidden)
    }

Plan: 0 to add, 1 to change, 0 to destroy.

Expected behavior
There is no configuration diff after successfully applying.

Versions

  • Harbor v2.6.0
  • provider registry.terraform.io/bestseller/harbor v3.7.1
  • Terraform v1.2.8 on linux_amd64
@szEvEz
Copy link
Author

szEvEz commented Jan 17, 2023

Fixed with registry.terraform.io/goharbor/harbor v3.8.0.

Thank you!

@szEvEz szEvEz closed this as completed Jan 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant