-
Notifications
You must be signed in to change notification settings - Fork 27
Document tls_no_verify #394
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,9 +2,9 @@ | |
| title: Custom TLS certificates | ||
| description: Using custom TLS certificates with LocalStack | ||
| template: doc | ||
| tags: ["Free"] | ||
| tags: ['Free'] | ||
| sidebar: | ||
| order: 5 | ||
| order: 5 | ||
| --- | ||
|
|
||
| import { Tabs, TabItem } from '@astrojs/starlight/components'; | ||
|
|
@@ -88,8 +88,8 @@ services: | |
| It is recommended to create a `boot` init hook. | ||
| Create a directory on your local system that includes | ||
|
|
||
| * the certificate you wish to copy, and | ||
| * the following shell script: | ||
| - the certificate you wish to copy, and | ||
| - the following shell script: | ||
|
|
||
| ```bash | ||
| #!/bin/bash | ||
|
|
@@ -102,8 +102,21 @@ update-ca-certificates | |
|
|
||
| Then run LocalStack with the environment variables | ||
|
|
||
| * `REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt`, and | ||
| * `CURL_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt`, and | ||
| * `NODE_EXTRA_CA_CERTS=/etc/ssl/certs/ca-certificates.crt` | ||
| - `REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt`, and | ||
| - `CURL_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt`, and | ||
| - `NODE_EXTRA_CA_CERTS=/etc/ssl/certs/ca-certificates.crt` | ||
|
|
||
| and follow the instructions fn the [init hooks documentation](/aws/capabilities/config/initialization-hooks) for configuring LocalStack to use the hook directory as a `boot` hook. | ||
|
|
||
| ## Disabling TLS verification for LocalStack Cloud | ||
|
|
||
| If your proxy intercepts traffic to LocalStack cloud services (e.g., license server, localhost.localstack.cloud), you can disable TLS verification for these specific requests using the `SSL_NO_VERIFY` [configuration variable](/aws/capabilities/config/configuration#security). | ||
|
|
||
| ```bash | ||
| SSL_NO_VERIFY=1 localstack start | ||
|
Contributor
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. question: don't we have a thing where our envars need to be prefixed with |
||
| ``` | ||
|
|
||
| :::caution | ||
| This approach disables certificate verification rather than trusting your proxy's certificate. | ||
|
Contributor
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. praise: good worth putting in here that disabling TLS verification should be a last resort 👍 |
||
| Use custom certificates (as described above) when you need to maintain proper TLS verification for all traffic. | ||
| ::: | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit:
localhost.localstack.cloudis not one of our cloud services. The two requests we make are to the license server, and to fetch our TLS certificate so that we can serve a trusted certificate forlocalhost.localstack.cloud.