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

Resource: auth0_custom_domain does not have correct type for verifications #1110

Open
6 tasks done
mjdavidson opened this issue Jan 6, 2025 · 1 comment
Open
6 tasks done
Assignees
Labels
🪲 bug Something isn't working

Comments

@mjdavidson
Copy link

Checklist

  • I have looked into the README and have not found a suitable solution or answer.
  • I have looked into the documentation and have not found a suitable solution or answer.
  • I have searched the issues and have not found a suitable solution or answer.
  • I have upgraded to the latest version of this provider and the issue still persists.
  • I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • I agree to the terms within the Auth0 Code of Conduct.

Description

The schema says that type of auth0_custom_domain.verification[0].methods[0] is List of Map of String but it is a List of Object

Expectation

I believe this is causing a downstream issue in the Pulumi provider https://github.com/pulumi/pulumi-auth0 where the type is showing as any

Reproduction

  1. create auth0_custom_domain and see that it returns a map of object

Auth0 Terraform Provider version

1.9.1

Terraform version

N/A

@mjdavidson mjdavidson added the 🪲 bug Something isn't working label Jan 6, 2025
@duedares-rvj
Copy link
Contributor

Hello!
Hope you're doing well.

We tried to explore the mismatch that is highlighted here. The response on creating a custom domain looks like:

{
  "custom_domain_id": "cd_some_id_here",
  "domain": "sample.auth.domain.com",
  "primary": true,
  "status": "pending_verification",
  "type": "self_managed_certs",
  "verification": {
    "methods": [
      {
        "name": "TXT",
        "record": "some-uuid",
        "domain": "_cf-custom-hostname.sample.auth.somedomain.com"
      }
    ]
  },
  "custom_client_ip_header": null
}

In the provider, methods is defined as a list of maps. The below resembles the definition.

 "methods": [
      {
        "name": "TXT",
        "record": "some-uuid",
        "domain": "_cf-custom-hostname.sample.auth.somedomain.com"
      }
    ]

Please provide additional context if something is missed or misunderstood.
We'd be happy to investigate it further.
Thanks!

@duedares-rvj duedares-rvj self-assigned this Jan 13, 2025
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