zulip/docs/production
Alex Vandiver 4f93b4b6e4 uploads: Skip the outgoing proxy if S3_KEY is unset.
When the credentials are provided by dint of being run on an EC2
instance with an assigned Role, we must be able to fetch the instance
metadata from IMDS -- which is precisely the type of internal-IP
request that Smokescreen denies.

While botocore supports a `proxies` argument to the `Config` object,
this is not actually respected when making the IMDS queries; only the
environment variables are read from.  See
https://github.com/boto/botocore/issues/2644

As such, implement S3_SKIP_PROXY by monkey-patching the
`botocore.utils.should_bypass_proxies` function, to allow requests to
IMDS to be made without Smokescreen impeding them.

Fixes #20715.
2022-03-24 10:21:35 -07:00
..
authentication-methods.md docs: Add more details on configuring LDAP group restriction. 2022-03-20 17:04:16 -07:00
deployment.md uploads: Skip the outgoing proxy if S3_KEY is unset. 2022-03-24 10:21:35 -07:00
email-gateway.md docs: Convert .html#fragment links to .md#fragment. 2022-02-28 16:28:31 -08:00
email.md docs: Update all links to Django docs to point to version /3.2/. 2021-11-08 18:06:16 -08:00
export-and-import.md docs: Remove references to supervisorctl (re)start all. 2022-03-21 16:33:28 -07:00
giphy-gif-integration.md docs: Format Markdown with Prettier. 2021-09-08 12:06:24 -07:00
index.md docs: Update README and installation guide. 2022-03-04 13:59:17 -08:00
install-existing-server.md docs: Uncapitalize the name for nginx. 2022-01-25 11:17:51 -08:00
install.md docs: Update README and installation guide. 2022-03-04 13:59:17 -08:00
maintain-secure-upgrade.md docs: Convert .html#fragment links to .md#fragment. 2022-02-28 16:28:31 -08:00
management-commands.md docs: management-commands.md: Fix grammar problems found by LanguageTool. 2022-03-18 15:28:16 -07:00
mobile-push-notifications.md docs: mobile-push-notifications.md: Fix grammar problems found by LanguageTool. 2022-03-18 15:28:16 -07:00
multiple-organizations.md docs: Convert .html#fragment links to .md#fragment. 2022-02-28 16:28:31 -08:00
password-strength.md docs: Convert .html#fragment links to .md#fragment. 2022-02-28 16:28:31 -08:00
postgresql.md docs: Convert .html#fragment links to .md#fragment. 2022-02-28 16:28:31 -08:00
requirements.md docs: requirements.md: Fix grammar problems found by LanguageTool. 2022-03-18 15:28:16 -07:00
security-model.md docs: Convert .html#fragment links to .md#fragment. 2022-02-28 16:28:31 -08:00
settings.md docs: Convert .html#fragment links to .md#fragment. 2022-02-28 16:28:31 -08:00
ssl-certificates.md docs: Convert .html#fragment links to .md#fragment. 2022-02-28 16:28:31 -08:00
troubleshooting.md docs: Remove teleport from example list of services. 2022-03-21 16:33:28 -07:00
upgrade-or-modify.md docs: Remove references to supervisorctl (re)start all. 2022-03-21 16:33:28 -07:00
upload-backends.md uploads: Skip the outgoing proxy if S3_KEY is unset. 2022-03-24 10:21:35 -07:00
video-calls.md docs: Fix grammar problems found by LanguageTool. 2022-01-21 14:02:14 -08:00