-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Support for disabling basic auth / client cert #40
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
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
75c07c5
Support for disabling basic auth / client cert
coryodaniel dcc6209
Adding variables to README
coryodaniel f344b5d
Removing redundant default copy in docs
coryodaniel 4202dc0
Adding cert/basic auth tests
coryodaniel a384003
Colors, symlink and rand suffix
coryodaniel 64538d3
regenerating docs
coryodaniel c112b0e
update changelog
coryodaniel 91c1ab0
typo fix
coryodaniel a86d436
Added add'l describe block, quoted bools
coryodaniel d95afe4
fixing merge conflicts
coryodaniel 7e47502
adding master_auth to autogen
coryodaniel eb32b73
Added variables to autogen, using k8s latest
coryodaniel 15ee8d5
Added upgrade guide v1.0
coryodaniel 10282ad
rebasing / merge conflicts
coryodaniel 75de0c7
Simplify variable interface and disable by deafult
aaron-lane 022561a
Add reference to migration guide and regenerate
aaron-lane ce169cb
Add upgrading section for client certificate auth
aaron-lane 51f0472
Reword upgrading section for basic auth
aaron-lane File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,10 +10,17 @@ Extending the adopted spec, each change should have a link to its corresponding | |
|
||
## [v2.0.0] - 2019-YY-ZZ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Did we not release v2.0.0 yet? |
||
|
||
### Added | ||
|
||
* Add `basic_auth_username` set to `""` by default. [#40] | ||
* Add `basic_auth_password` set to `""` by default. [#40] | ||
* Add `issue_client_certificate` set to `false` by default. [#40] | ||
|
||
### Changed | ||
|
||
* The `service_account` variable defaults to `"create"` which causes a | ||
cluster-specific service account to be created. | ||
* Disabled Basic Authentication by default. [#40] | ||
|
||
## [v1.0.1] - 2019-04-04 | ||
|
||
|
@@ -40,7 +47,9 @@ Extending the adopted spec, each change should have a link to its corresponding | |
* Added `disable_legacy_metadata_endpoints` parameter. [#114] | ||
|
||
### Changed | ||
* Set `horizontal_pod_autoscaling` to `true` by default. Fixes [#42]. [#54] | ||
|
||
* Set `horizontal_pod_autoscaling` to `true` by default. | ||
Fixes [#42]. [#54] | ||
* Update simple-zonal example GKE version to supported version. [#49] | ||
* Drop explicit version from simple_zonal example. [#74] | ||
* Remove explicit versions from test cases and examples. [#62] | ||
|
@@ -113,6 +122,7 @@ Extending the adopted spec, each change should have a link to its corresponding | |
[#46]: https://github.com/terraform-google-modules/terraform-google-kubernetes-engine/pull/46 | ||
[#43]: https://github.com/terraform-google-modules/terraform-google-kubernetes-engine/issues/43 | ||
[#42]: https://github.com/terraform-google-modules/terraform-google-kubernetes-engine/issues/42 | ||
[#40]: https://github.com/terraform-google-modules/terraform-google-kubernetes-engine/pull/40 | ||
[#38]: https://github.com/terraform-google-modules/terraform-google-kubernetes-engine/pull/38 | ||
[#33]: https://github.com/terraform-google-modules/terraform-google-kubernetes-engine/pull/33 | ||
[#31]: https://github.com/terraform-google-modules/terraform-google-kubernetes-engine/pull/31 | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Disable Client Certificate | ||
|
||
This example illustrates how to create a simple cluster and disable deprecated security features: | ||
|
||
* basic auth | ||
* client certificate | ||
|
||
[^]: (autogen_docs_start) | ||
coryodaniel marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
## Inputs | ||
|
||
| Name | Description | Type | Default | Required | | ||
|------|-------------|:----:|:-----:|:-----:| | ||
| cluster\_name\_suffix | A suffix to append to the default cluster name | string | `""` | no | | ||
| compute\_engine\_service\_account | Service account to associate to the nodes in the cluster | string | n/a | yes | | ||
| credentials\_path | The path to the GCP credentials JSON file | string | n/a | yes | | ||
| ip\_range\_pods | The secondary ip range to use for pods | string | n/a | yes | | ||
| ip\_range\_services | The secondary ip range to use for pods | string | n/a | yes | | ||
| network | The VPC network to host the cluster in | string | n/a | yes | | ||
| network\_project\_id | The GCP project housing the VPC network to host the cluster in | string | n/a | yes | | ||
| project\_id | The project ID to host the cluster in | string | n/a | yes | | ||
| region | The region to host the cluster in | string | n/a | yes | | ||
| subnetwork | The subnetwork to host the cluster in | string | n/a | yes | | ||
|
||
## Outputs | ||
|
||
| Name | Description | | ||
|------|-------------| | ||
| ca\_certificate | | | ||
| client\_token | | | ||
| cluster\_name | Cluster name | | ||
| ip\_range\_pods | The secondary IP range used for pods | | ||
| ip\_range\_services | The secondary IP range used for services | | ||
| kubernetes\_endpoint | | | ||
| location | | | ||
| master\_kubernetes\_version | The master Kubernetes version | | ||
| network | | | ||
| project\_id | | | ||
| region | | | ||
| subnetwork | | | ||
| zones | List of zones in which the cluster resides | | ||
|
||
[^]: (autogen_docs_end) | ||
|
||
To provision this example, run the following from within this directory: | ||
- `terraform init` to get the plugins | ||
- `terraform plan` to see the infrastructure plan | ||
- `terraform apply` to apply the infrastructure build | ||
- `terraform destroy` to destroy the built infrastructure |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/** | ||
* Copyright 2018 Google LLC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
locals { | ||
cluster_type = "disable-cluster-cert" | ||
} | ||
|
||
provider "google" { | ||
credentials = "${file(var.credentials_path)}" | ||
region = "${var.region}" | ||
} | ||
|
||
module "gke" { | ||
source = "../../" | ||
|
||
project_id = "${var.project_id}" | ||
name = "${local.cluster_type}-cluster${var.cluster_name_suffix}" | ||
region = "${var.region}" | ||
network = "${var.network}" | ||
network_project_id = "${var.network_project_id}" | ||
subnetwork = "${var.subnetwork}" | ||
ip_range_pods = "${var.ip_range_pods}" | ||
ip_range_services = "${var.ip_range_services}" | ||
service_account = "${var.compute_engine_service_account}" | ||
issue_client_certificate = false | ||
} | ||
|
||
data "google_client_config" "default" {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/** | ||
* Copyright 2018 Google LLC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
output "kubernetes_endpoint" { | ||
sensitive = true | ||
value = "${module.gke.endpoint}" | ||
} | ||
|
||
output "client_token" { | ||
sensitive = true | ||
value = "${base64encode(data.google_client_config.default.access_token)}" | ||
} | ||
|
||
output "ca_certificate" { | ||
value = "${module.gke.ca_certificate}" | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../test/fixtures/all_examples/test_outputs.tf |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.