Skip to content
This repository was archived by the owner on Feb 5, 2020. It is now read-only.

Use filepath on user provided ingress#2185

Closed
alexouzounis wants to merge 5 commits intocoreos:masterfrom
alexouzounis:master
Closed

Use filepath on user provided ingress#2185
alexouzounis wants to merge 5 commits intocoreos:masterfrom
alexouzounis:master

Conversation

@alexouzounis
Copy link

@alexouzounis alexouzounis commented Oct 19, 2017

Instead of having to append the contents of the certificates, use file paths

A separate PR would be required to updates the docs; https://github.com/coreos/tectonic-docs/blob/master/Documentation/reference/tls-certificates.md

@coreosbot
Copy link

Can one of the admins verify this patch?

@alexouzounis
Copy link
Author

I tried to do something smart with count or interpolation to have one module but the source filed cannot be interpolated in TF. If anyone has any other ideas, please let me know.

The solution I see is to merge the modules/tls/ingress/self-signed and modules/tls/ingress/user-provided

Copy link
Contributor

@squat squat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alexouzounis thanks for this contribution. Overall this looks ok. Please make the requested changes and then we can run the tests.

default = ""

description = <<EOF
(optional) File with contents the public CA certificate in PEM format
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These comments are a little confusing. They say to provide a path but then show the contents of the file. Please make these comments match the descriptions for the other PEM path variables, e.g. https://github.com/coreos/tectonic-installer/blob/master/config.tf#L202

EOF
}

variable "tectonic_ingress_ca_cert_pem_path" {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These variables are not specific to AWS. Please move them out of the AWS-specific variables.tf and into config.tf.

ca_key_pem = "${module.kube_certs.ca_key_pem}"
}

//module "ingress_certs" {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this is not AWS-specific, please add this into the Azure, Openstack, bare-metal, and GCP Terraform as well.

@alexouzounis
Copy link
Author

Sure, yeah. Thanks for having a look so quickly. Will come back to you end of next week.

@alexouzounis
Copy link
Author

Hey @squat - let me know what you think about the latest changes when you get some time :)

@mxinden
Copy link
Contributor

mxinden commented Nov 1, 2017

We did some changes (#2082) to the testing process. Please rebase on to current master, so that the basic-tests PR status is reported correctly.

@enxebre
Copy link
Contributor

enxebre commented Feb 9, 2018

hey @alexouzounis thanks a lot for this contribution. Part of the reasoning behind embedding was ease of content sharing within the tf space. Let's close this for now as we are currently under considerable refactor of master and the way we generate/consume certificates might be impacted as well

@enxebre enxebre closed this Feb 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants