Commit Graph

19 Commits

Author SHA1 Message Date
John DiSanti 04e09c2d3b
Allow the closure passed to `async_provide_credentials_fn` to borrow (#637)
* Allow the closure passed to `async_provide_credentials_fn` to borrow

* Update the CHANGELOG
2021-08-09 11:07:31 -07:00
Russell Cohen b2dff509e7
assume role chain parse tree (#632)
* assume role chain parse tree

This commit builds the parsing half of our AssumeRoleProvider implementation. Our implementation decouples
the (fairly complex) task of actually turning a profile file into a series of providers from the (fairly simple)
task if iterating through credential providers and executing them.

The descriptive test cases from the spec have been ported to JSON and some new ones have been added and they cover our implementation fairly exhaustively.

Future commits will implement a named-provider factory, wire up the STS client and actually turn this into a credentials provider.

* assume role chain parse tree

This commit builds the parsing half of our AssumeRoleProvider implementation. Our implementation decouples
the (fairly complex) task of actually turning a profile file into a series of providers from the (fairly simple)
task if iterating through credential providers and executing them.

The descriptive test cases from the spec have been ported to JSON and some new ones have been added and they cover our implementation fairly exhaustively.

Future commits will implement a named-provider factory, wire up the STS client and actually turn this into a credentials provider.

* Update aws/rust-runtime/aws-auth-providers/src/profile/repr.rs

Co-authored-by: John DiSanti <jdisanti@amazon.com>

* Deal with the aws-auth-providers package being special

* add copyright header

* update changelog

Co-authored-by: John DiSanti <jdisanti@amazon.com>
2021-08-06 03:26:46 +00:00
John DiSanti 68984dc408
Refactor middleware to use new `operation::Response` instead of `http::Response<SdkBody>` (#635)
* Refactor Smithy service tower to include a property bag with the response

* Add doc comments and rename functions on operation Request/Response

* Fix codegen

* Update CHANGELOG

* Attach PR number to CHANGELOG

* Fix test compile error

* CR feedback

* Fix AWS runtime tests

* Fix doc comment link

* Fix API gateway customization

* Fix AWS integration tests and update design doc

* Make it possible to run IAM test outside CI and fix it
2021-08-05 17:44:58 -07:00
John DiSanti 8aa3a74af9
Remove generic body from `ParseHttpResponse` (#626)
* Remove generic body from `ParseHttpResponse`

* Update CHANGELOG
2021-08-04 17:31:48 -07:00
John DiSanti dba6ec4093
Prepare August 3rd release (#628)
* Version bump generated SDK

* Update the CHANGELOG

* Make the changelog readable in a normal text editor
2021-08-03 17:50:06 +00:00
John DiSanti 5d84a12085
Include `iotdataplane` in tier-2 services (#624)
* Include `iotdataplane` in tier-2 services

* Update CHANGELOG
2021-08-02 15:49:40 -07:00
John DiSanti 70999dadce
Implement timeouts for LazyCachingCredentialsProvider (#595)
* Implement timeouts for LazyCachingCredentialsProvider

* Rename refresh to reload

* Update CHANGELOG

* Fix clippy

* CR feedback

* Add note about panic on `LazyCachedCredentialsProvider` builder

* Fix doc comment code reference
2021-08-02 14:54:59 -07:00
Russell Cohen 03ae7cc6a1
Overhaul gradle inclusion/exclusion logic (#620)
* Overhaul gradle inclusion/exclusion logic

* Update changelog

* split tier1 services onto multiple lines
2021-07-30 21:18:54 +00:00
Russell Cohen 7a6414ea35
Backport change from aws-sdk-rust (#622)
* Backport change from https://github.com/awslabs/aws-sdk-rust/pull/162/files

* Update changelog
2021-07-30 21:08:57 +00:00
Russell Cohen f1a726c1d7
Smithy 1.9/1.10 Upgrade (#618)
* smithy 1.9.1 upgrade & primitive encode/decode

This upgrades to Smithy 1.10, but the major change is a complete overhaul of how primitives are formatted and parsed. Primitive serialization was migrated and unified into Smithy Types with the end requirement of dealing with special float serialization semantics.

* Switch to Smithy Core S3 Customization Trait

Smithy 1.9.1 brings S3UnwrappedXmlOutput as a vended trait. This commit pulls in the new model & uses that trait.

* Fix clippy warnings

* Fix doc links

* fix kotlin formatting

* Fix s3 customization to use the operation shape

* Ensure that numbers in string don't parse as numbers

* remove unused itoa

* Apply suggestions from code review

Co-authored-by: John DiSanti <jdisanti@amazon.com>

* Fix tests, CR feedback

* rename parse to parse_smithy_primitive

* Fix some more clippy errors

* Update changelog

Co-authored-by: John DiSanti <jdisanti@amazon.com>
2021-07-30 15:25:10 +00:00
Russell Cohen a50c966ef2
change http checksums to be base64 encoded (#615)
* change http checksums to be base64 encoded

due to a misreading of the spec, the http checksums where hex encoded when they should actually be base64 encoded

* Update changelog
2021-07-28 15:29:02 +00:00
Russell Cohen 6201a3833b
drop timestream services from full SDK (#613)
* drop timestream services from full SDK

* update changelog
2021-07-28 00:16:37 +00:00
Russell Cohen 08961db587
Update CHANGELOG for v0.18 (#612)
* Update CHANGELOG for v0.17

* Update CHANGELOG.md

* backport v0.16 and v0.17
2021-07-27 19:52:58 -04:00
Russell Cohen afa09008b5
prepare for all services release (#607)
* prepare for all services release

- denylist glacier & iotdevice manager which are known to not work pending custom SDK work
- update CI job to have the all-service artifact be named `aws-sdk` and the smaller tier1 artifact be named `tier1`

* fix ci, update changelog

* Update .github/workflows/ci.yaml

* Error on disabled service mismatch & fix typo

* update changelog entry with suggestions

Co-authored-by: John DiSanti <jdisanti@amazon.com>
2021-07-27 19:35:55 -04:00
Russell Cohen a88fff1afd
breaking: Remove make test-util and optional feature (#608)
* breaking: Remove make test-util and optional feature

for historical reasons, `test-util` was enabled by default in aws-hyper. This change:
* removes the pub use for test util in aws-hyper
* updates usages to use it in smithy-client
* updates the crate dependencies to correctly pull in the new feature but only for development

NOTE: please wait for a full cargoTest all crates prior to merging this change.

* Update CHANGELOG.md

* fix non-optional smithy client dependencies

* Update CHANGELOG.md

Co-authored-by: John DiSanti <jdisanti@amazon.com>

Co-authored-by: John DiSanti <jdisanti@amazon.com>
2021-07-27 14:15:46 +00:00
Russell Cohen 6e3ebaaa44
Implement the "source" side of profile parsing (#594)
* Introduce environment abstraction

* Update region provider to use ProcessEnvironment

* Update credentials provider to use env var abstraction

* implement the "source" side of profile parsing

This commit adds support for the "source" side of profile file parsing:
Given a filesystem/environment, what files should we actually be reading?

* run runtime tests on windows

* Update changelog

* Update ci.yaml

don't run rustfmt on windows

* Apply suggestions from code review

Co-authored-by: John DiSanti <jdisanti@amazon.com>

* cr feedback / refactorings to profile source loading

* refactor runtime test job

* Add missing workspace cargo.toml

* Fix working directory issue

* fix windows test for new API

* special case test for windows behavior

* Always compile the tests but conditionally ignore

* Apply suggestions from code review

Co-authored-by: John DiSanti <jdisanti@amazon.com>

Co-authored-by: John DiSanti <jdisanti@amazon.com>
2021-07-21 17:36:19 -04:00
John DiSanti 6342fdc68d
Constrain RFC-3339 timestamps to microsecond precision (#596)
* Constrain RFC-3339 timestamps to microsecond precision

* Update CHANGELOG

* Incorporate feedback
2021-07-21 19:57:08 +00:00
Russell Cohen f810b1c3f5
don't strip whitespace when reading XML data nodes (#590)
* don't strip whitespace when reading XML data nodes

smithy-xml had a bug that erroneously stripped whitespace when parsing data nodes. This created incorrect parsers when parsing keys that contained spaces. An S3 protocol test is included.

* Update CHANGELOG.md

* fix s3 list-objects
2021-07-19 18:29:00 -04:00
Russell Cohen 456808051c
Add changelog with a few backported releases (#562) 2021-06-29 14:54:07 -07:00