Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: implementation of standard AWS signer #651

Merged
merged 6 commits into from
Jun 1, 2022
Merged

Conversation

ianbotsf
Copy link
Contributor

Issue #

#617

Description of changes

Merge signer feature branch into main. All of these changes should've been reviewed in #635 and #637.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@ianbotsf ianbotsf requested a review from a team as a code owner May 27, 2022 22:56
Copy link
Contributor

@aajtodd aajtodd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix and ship.

edit: Also you are missing changelog entry!

// ktor-http-cio parser doesn't support parsing multiline headers since they are deprecated in RFC7230
"get-header-value-multiline",
// ktor fails to parse with space in it (expects it to be a valid request already encoded)
"get-space-normalized",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably address these as they are mostly limitations of the parser in use. In particular the space ones since IIRC rust had some issues with this. I don't think we need to block this PR over it but we should make a task for it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep yep, created #653 and will note it in a TODO around these tests.


private const val PANGRAM = "The quick brown fox jumps over the lazy dog"

class HmacTest {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix: We should really use more official test vectors like the ones provided in rfc-4231 section 4.

Sorry for not catching this before

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ooh great idea!

@sonarcloud
Copy link

sonarcloud bot commented Jun 1, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 5 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@ianbotsf ianbotsf merged commit 5cd3ae1 into main Jun 1, 2022
@aajtodd aajtodd deleted the feat-standard-signer branch November 29, 2022 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants