terraform-provider-http icon indicating copy to clipboard operation
terraform-provider-http copied to clipboard

remote saml_metadata_document

Open ghost opened this issue 7 years ago • 3 comments
trafficstars

This issue was originally opened by @tomdavidson as hashicorp/terraform#5848. It was migrated here as a result of the provider split. The original body of the issue is below.


I would like to reference a remote document over https in creating a aws_iam_saml_provider rather than a local file, something similar to modules' source = "github.com/.... such as:

resource "aws_iam_saml_provider" "default" {
    name = "myprovider"
    saml_metadata_document = "${file("https://domain.local/idp/shibboleth")}"
}

The remote file seems especially relevant in this case - am I overlooking existing functionality?

ghost avatar Nov 07 '18 02:11 ghost

We have the same use case for SAML IdP. It would help to support xml document as well

Sluggerman avatar Jul 11 '19 11:07 Sluggerman

It's almost possible using the http provides, were it not for this:

This URL must respond with a 200 OK response and a text/* or application/json Content-Type.

So, it fails if the response has a Content-Type like application/xml or application/samlmetadata+xml. You know, the content types typically used for saml metadata.

tmccombs avatar Oct 30 '19 01:10 tmccombs

Any news on this one?

sebastianmacarescu avatar Aug 17 '22 12:08 sebastianmacarescu

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

github-actions[bot] avatar May 23 '24 15:05 github-actions[bot]