MONGODB-AWS credential caching no longer works

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Unknown
    • 4.7
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • Python Drivers
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      The changes in PYTHON-4260 broke MONGODB-AWS credential caching. One issue is that set_use_cached_credentials() is no longer called. Another is that we try to call pymongo_auth_aws.set_cached_credentials which doesn't exist:

       [2024/03/26 12:59:10.177]         except Exception:
       [2024/03/26 12:59:10.177]             # Clear the cached credentials if we hit a failure in auth.
       [2024/03/26 12:59:10.177] >           pymongo_auth_aws.set_cached_credentials(None)
       [2024/03/26 12:59:10.177] E           AttributeError: module 'pymongo_auth_aws' has no attribute 'set_cached_credentials'
       [2024/03/26 12:59:10.177] pymongo/auth_aws.py:97: AttributeError
      

      https://spruce.mongodb.com/task/mongo_python_driver_aws_auth_test_mac__platform~macos_1014_aws_auth_test_7.0_f757fe39cc12520e299090adf750fc07eb03dec8_24_03_26_17_18_54/logs?execution=0&sortBy=STATUS&sortDir=ASC

            Assignee:
            Steve Silvester
            Reporter:
            Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: