-
Notifications
You must be signed in to change notification settings - Fork 446
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CDRIVER-4439 add AWS credential cache (#1207)
* add test-awsauth test-awsauth is intended to replace mongoc-ping in AWS tests. test-awsauth will include caching tests specific to AWS. * unconditionally define _mongoc_aws_credentials_cleanup There is no reason to condition on the presence of ENABLE_MONGODB_AWS_AUTH Removing reduces duplicate definitions. * add AWS credential cache add _mongoc_aws_credentials_copy_to add _mongoc_aws_credentials_cache_t * use AWS credential cache * use test-awsauth in Evergreen * remove outdated docs of optional variables * fix docs to note TESTCASE is an env var * remove unnecessary additions runtime paths test-awsauth statically links the C driver * use `mcd_timer` for expiration * remove unused vars * simplify bash scripts * fix comment for `expiration` * be more explicit about _mongoc_aws_credentials_cache_get behavior * rename helper to expiration_to_mcd_timer * compute in int64_t domain * remove unnecessary expiration vars * add MONGOC_AWS_CREDENTIALS_INIT macro * only initialize and cleanup AWS cache if AWS is enabled * remove unnecessary can_setenv * fix -Wmissing-braces warning * fix signature of test_aws_cache * do not support uninitialized creds in _mongoc_aws_credentials_cache_get * do not reuse creds after cleanup * fix -Wmissing-field-initializers warning
- Loading branch information
Showing
10 changed files
with
956 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.