Skip to content

Commit

Permalink
Merge pull request #70 from danistrebel/feature/mtls-docs
Browse files Browse the repository at this point in the history
Feature/mtls docs
  • Loading branch information
danistrebel authored Oct 3, 2022
2 parents 11c0213 + da2bfa4 commit a31c04a
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 3 deletions.
1 change: 1 addition & 0 deletions modules/apigee-x-mtls-mig/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ module "apigee-mtls-proxy-template" {
google_storage_bucket_object.ca_cert,
google_storage_bucket_object.tls_cert,
google_storage_bucket_object.tls_key,
google_storage_bucket_object.envoy_config,
module.nat
]
}
Expand Down
2 changes: 1 addition & 1 deletion modules/sb-psc-attachment/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ No modules.

| Name | Description |
|------|-------------|
| <a name="output_endpoint_attachment_connection_state"></a> [endpoint\_attachment\_connection\_state](#output\_endpoint\_attachment\_connection\_state) | Underlying connection state for the endpoint attachment. |
| <a name="output_endpoint_attachment_host"></a> [endpoint\_attachment\_host](#output\_endpoint\_attachment\_host) | Host for the endpoint attachment to be used in Apigee. |
| <a name="output_endpoint_attachment_connection_state"></a> [endpoint\_attachment\_connection_state](#output\_endpoint\_attachment\_connection_state) | Underlying connection state for the endpoint attachment. |
<!-- END_TF_DOCS -->
20 changes: 19 additions & 1 deletion samples/x-l4xlb-mtls/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,27 @@ tls_key_path = "./certs/server.key"

## Setup Instructions

Please see the main [README](https://github.com/apigee/terraform-modules#deploying-end-to-end-samples)
Ensure that your tf variables file (.apigee_envgroups.test.hostnames[])
contains the same hostname as you used in the CN of your certificate.

For the rest see the main [README](https://github.com/apigee/terraform-modules#deploying-end-to-end-samples)
for detailed instructions.

## Testing

If you used a hostname for which you don't have a DNS entry you can use:

```sh
INGRESS_IP=$(gcloud compute addresses describe apigee-external --global --format="get(address)")
curl https://test.api.example.com/my-proxy --resolve test.api.example.com:443:$INGRESS_IP --cert ./certs/example-client.crt --key ./certs/example-client.key --cacert ./certs/server-ca.crt -v
```

Otherwise use:

```sh
curl https://my-domain.com/my-proxy --cert ./certs/example-client.crt --key ./certs/example-client.key --cacert ./certs/server-ca.crt -v
```

<!-- BEGIN_TF_DOCS -->
## Providers

Expand Down
2 changes: 1 addition & 1 deletion samples/x-sb-psc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,6 @@ psc_endpoint_attachment_connection_state = "ACCEPTED"

| Name | Description |
|------|-------------|
| <a name="output_psc_endpoint_attachment_connection_state"></a> [psc\_endpoint\_attachment\_connection\_state](#output\_psc\_endpoint\_attachment\_connection\_state) | Underlying connection state of the PSC endpoint attachment. |
| <a name="output_psc_endpoint_attachment_host"></a> [psc\_endpoint\_attachment\_host](#output\_psc\_endpoint\_attachment\_host) | Hostname of the PSC endpoint attachment. |
| <a name="output_psc_endpoint_attachment_connection_state"></a> [psc\_endpoint\_attachment\_connection_state](#output\_psc\_endpoint\_attachment\_connection_state) | Underlying connection state of the PSC endpoint attachment. |
<!-- END_TF_DOCS -->

0 comments on commit a31c04a

Please sign in to comment.