Skip to content

Conversation

@spanktar
Copy link

@spanktar spanktar commented Dec 1, 2025

#228

This PR attempts to add a SkipTLSVerify option to the Zitadel Terraform provider. This allows users (like me!) to use the Terraform provider with a self-hosted Zitadel instance where the certificates generated are staging certs from LetsEncrypt or self-signed certs for development.

Acceptance:
A user can set SkipTLSVerify to true in the provider config, and the provider will skip TLS verification when talking to the Zitadel endpoint.

I don't really know GoLang and I've never contributed to Zitadel before. I don't know how to run the tests (when I do everything fails, but I think it's because I'm not setup with access). I just want to help push this feature forward!

Definition of Ready

  • Short description of the feature/issue is added in the pr description
  • PR is linked to the corresponding user story
  • Acceptance criteria are met
  • All open todos and follow ups are defined in a new ticket and justified
  • Deviations from the acceptance criteria and design are agreed with the PO and documented.
  • No debug or dead code
  • My code has no repetitions
  • All non-functional requirements are met
  • The generic lifecycle acceptance test passes for affected resources.
  • Examples are up-to-date and meaningful. The provider version is incremented.
  • Docs are generated.
  • Code is generated where possible.

@mridang mridang linked an issue Dec 2, 2025 that may be closed by this pull request
2 tasks
@spanktar spanktar marked this pull request as ready for review December 2, 2025 10:31
@spanktar
Copy link
Author

spanktar commented Dec 2, 2025

@mridang After the CI tests ran, I see the error:

zitadel/helper/client.go:74:37: undefined: zitadel.WithInsecureSkipVerifyTLS

I checked the Zitadel repo and this doesn't exist, so Codex completely made it up 😒 The closest I could find was insecureSkipVerify and that's just an option for HTTP connections it seems. I guess there will need to be changes made on the server side to support this.

EDIT: Oh, I see it in the Go client

@mridang
Copy link
Collaborator

mridang commented Dec 2, 2025

I can take a stab at this. 🙏

@spanktar
Copy link
Author

spanktar commented Dec 2, 2025

I can take a stab at this. 🙏

I see the option in the Go Client, so maybe it wasn't a complete hallucination!
https://github.com/zitadel/zitadel-go/blob/main/pkg/zitadel/zitadel.go#L45

@spanktar
Copy link
Author

spanktar commented Dec 8, 2025

@mridang Anything I can do to help? I'm happy to do anything I can 😄

@elinashoko elinashoko requested a review from mridang December 17, 2025 15:48
@elinashoko elinashoko moved this to 👀 In review in Product Management Dec 17, 2025
@spanktar
Copy link
Author

spanktar commented Jan 5, 2026

SEE: #312

@mridang
Copy link
Collaborator

mridang commented Jan 8, 2026

Hi @spanktar it needs a few changes to the zitadel-go library. I've now gone ahead made the fix which in turn allowed shipping #333 This is now be implemented and released.

Thank you for the efforts.

@mridang mridang closed this Jan 8, 2026
@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Done in Product Management Jan 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Add Option to Disable TLS Certificate Verification in Zitadel Terraform Provider

3 participants