question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Deprecate Usage of `sslComonName` in Endpoint Creation

See original GitHub issue

The Problem

Currently when creating a service client, an sslCommonName attribute may be used for endpoint construction in unique cases. The format of sslCommonName is typically {region}.{service}.{dnsSuffix}, as opposed to the more common {service}.{region}.{dnsSuffix}. This usage originated from a time where Python versions (<2.7) didn’t supply an SSL module, requiring specific certificate formats.

Now that the library only support Python 3.7+, we’ll be deprecating the usage of sslCommonName to standardize Boto3 with all other AWS SDKs. This will also resolve long running issues of services such as SQS and GuardDuty being incompatible with certain VPC endpoint configurations.

Required Actions

In the immediate term, we will start raising a deprecation warning when sslCommonName is used. This is to alert customers of the upcoming change and provide time to make any required changes.

For most users, this will not require any changes. The URL will automatically update when the next minor version (1.29.0) is released, and clients will continue to operate the same. For any users with strict network rules, explicitly allow listing domains, you will need to add support for {service}.{region}.{dnsSuffix} as demonstrated below:

Old Format: https://us-west-2.sqs.amazonaws.com New Format: https://sqs.us-west-2.amazonaws.com

Warning Mitigation Strategy

  1. If you wish to ensure that your application does not use sslCommonName now or test the impending deprecation, we have created a new environment variable BOTO_DISABLE_COMMONNAME. Setting this to true will suppress the warning and convert to the new hostname format.
  2. If you are concerned about this change causing disruptions, you can pin your version of botocore to <1.29.0 until you are ready to migrate.
  3. If you are only concerned about silencing the warning in your logs, use warnings.filterwarnings when instantiating a new service client.
import warnings
warnings.filterwarnings('ignore', category=FutureWarning, module='botocore.client')

Other Information

Endpoint Docs: https://docs.aws.amazon.com/general/latest/gr/rande.html Related Issues: https://github.com/boto/botocore/issues/2376, https://github.com/boto/boto3/issues/1900, https://github.com/boto/boto3/issues/3311, https://github.com/boto/botocore/issues/2683

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:9
  • Comments:26 (12 by maintainers)

github_iconTop GitHub Comments

4reactions
dlm6693commented, Oct 26, 2022

After conferring with the team, BOTO_DISABLE_COMMNAME will no longer be needed to suppress the deprecation warning for the NEXT minor version 1.29.0. That will be released in the near future. I’ve updated the issue accordingly.

2reactions
nateprewittcommented, Nov 16, 2022

Resolving now that we’ve had botocore 1.29.x out for a couple weeks. Please feel free to let us know if you encounter any issues but the migration should be complete at this point.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can I deprecate this endpoint? - Pixie Labs Blog
You've been asked to deprecate the /v1/catalog endpoint in favor ... Your company's specific method for determining endpoint usage may vary.
Read more >
Deprecating API Endpoints
If global API versions are used, then every API end point inside that version is deprecated at the same time: /v1/foo and /v1/bar...
Read more >
How to Properly Deprecate an API using Moesif
This guide walks through the best practices of deprecating and endpoint and how to easily do it with Moesif API Analytics.
Read more >
Deprecate Usage of `sslComonName` in Endpoint Creation
Deprecate Usage of `sslComonName` in Endpoint Creation ... This issue has been created since 2022-06-22. The Problem. Currently when creating a service client,...
Read more >
Boto Botocore Statistics & Issues - Codesti
Issue Title State Comments Created Date Updated... botocore 1.29.21 not available via pip closed 8 2022‑12‑01 2022‑12... Import fails with `‑Werror` python option open 3...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found