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

Ability to set decryptKey in options when creating auth0_connection resource #733

Closed
1 task done
tb00-cloud opened this issue Jul 18, 2023 · 2 comments
Closed
1 task done
Labels
🌱 feature New feature or request

Comments

@tb00-cloud
Copy link

Checklist

Describe the problem you'd like to have solved

It's possible to use the Auth0 API v2 to add a custom decryption key to a connection. Anybody who wants to use Terraform but must use custom keys for SAML response decryption is blocked because it's not possible to do this via the resource.

Describe the ideal solution

Ideally the options block will support the argument decryption_key in the exact way it support signing_key.

resource "auth0_connection" "this" {
  name     = var.name
  display_name = var.display_name
  strategy = "samlp"
  show_as_button           = var.show_button

  options {
...

    signing_key {
      key  = var.request_signing_key.key
      cert = var.request_signing_key.cert
    }

    decryption_key {
      key = var.decryption_key.key
      cert = var.decryption_key.cert
    }

  }
}

Alternatives and current workarounds

Currently you have to use the API directly to update these values.

Additional context

No response

@tb00-cloud tb00-cloud added the 🌱 feature New feature or request label Jul 18, 2023
@sergiught
Copy link
Contributor

Hey @tb00-cloud 👋🏻

Thanks for taking the time to raise this with us. At the moment the Go SDK that this provider relies upon for the Management Requests doesn't support the decryption key, however I'll liasion with the team owning the SDK and look into adding support for this. I'll circle back once I have an update.

@sergiught
Copy link
Contributor

Hey @tb00-cloud 👋🏻

We've followed up with this feature in https://registry.terraform.io/providers/auth0/auth0/1.0.0-beta.1. Please make sure you update the version in your terraform configs:

terraform {
  required_providers {
    auth0 = {
      source  = "auth0/auth0"
       version = "1.0.0-beta.1"
    }
  }
}

Please also check the migration guide: https://github.com/auth0/terraform-provider-auth0/blob/main/MIGRATION_GUIDE.md.

Let us know if you have any other issues! 🙇🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌱 feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants