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

ibm_sm_public_certificate creates a "bundled" public certificate when bundle_cert is disabled #4803

Closed
vbontempi opened this issue Sep 15, 2023 · 0 comments · Fixed by #4854
Labels
service/Secrets Manager Issues related to Secrets Manager

Comments

@vbontempi
Copy link
Contributor

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform CLI and Terraform IBM Provider Version

terraform -v
Terraform v1.5.7
on darwin_amd64
+ provider registry.terraform.io/ibm-cloud/ibm v1.57.0

Affected Resource(s)

  • ibm_sm_public_certificate

Terraform Configuration Files

Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.

resource "ibm_sm_public_certificate" "sm_public_certificate" {
  instance_id       = var.sm_id
  region            = var.region
  name              = "test-public-cert"
  custom_metadata   = {"key":"value"}
  description       = "Test public secret"
  labels            = ["my-label"]
  ca                = var.ca_name
  dns               =  var.dns_name
  common_name       = var.domain
  bundle_certs      = false
  rotation {
        auto_rotate = true
        rotate_keys = false
  }
  secret_group_id = var.sm_secret_group_id
}

Debug Output

https://gist.github.com/vbontempi/4f8c0cd98f00ae45b1604efdd6e819b5

Panic Output

N/A

Expected Behavior

Certificate created not bundled in the same way it is performed by the IBM Cloud UI

Actual Behavior

Secret created in bundled version

By looking at the trace.log (available in the gist) the create certificate request contains the following configuration
"bundle_certs":true
even if the bundle_certs variable is set to false
https://gist.github.com/vbontempi/4f8c0cd98f00ae45b1604efdd6e819b5#file-trace-log-L187

Steps to Reproduce

  1. terraform apply

Important Factoids

N/A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
service/Secrets Manager Issues related to Secrets Manager
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant