Skip to content

Add CRT auth package#2417

Merged
kyleknap merged 1 commit intoboto:v2from
kyleknap:v2-crt-auth
Aug 3, 2021
Merged

Add CRT auth package#2417
kyleknap merged 1 commit intoboto:v2from
kyleknap:v2-crt-auth

Conversation

@kyleknap
Copy link
Copy Markdown
Contributor

This pulls in CRT auth abstractions from the develop branch in order to have a starting to point to pull in future updates related to CRT auth. Note the code does not actually use any of the CRT auth abstractions when making API requests. The main difference in porting the package is that because CRT is a required dependency there is no branching logic for conditionally using CRT auth. Eventually, we should remove the pure-Python sigv4 auth abstractions and completely rely on the CRT auth abstractions for sigv4 signing.

For reference the changes should follow closely to the original PR that added CRT auth to the develop branch: #2350

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Jun 16, 2021

Codecov Report

Merging #2417 (13fecf7) into v2 (c2efcec) will increase coverage by 0.01%.
The diff coverage is 95.65%.

Impacted file tree graph

@@            Coverage Diff             @@
##               v2    #2417      +/-   ##
==========================================
+ Coverage   97.62%   97.64%   +0.01%     
==========================================
  Files          56       57       +1     
  Lines       10685    10808     +123     
==========================================
+ Hits        10431    10553     +122     
- Misses        254      255       +1     
Impacted Files Coverage Δ
botocore/auth.py 97.95% <90.90%> (-0.03%) ⬇️
botocore/crt/auth.py 96.87% <96.87%> (ø)
botocore/credentials.py 98.55% <0.00%> (-0.11%) ⬇️
botocore/compat.py 69.88% <0.00%> (+2.27%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c2efcec...13fecf7. Read the comment docs.

Copy link
Copy Markdown
Contributor

@nateprewitt nateprewitt left a comment

Choose a reason for hiding this comment

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

Looks like a clean port. Thanks!

This commit pulls in CRT auth abstractions from the develop branch in order to
have a starting to point to pull in future updates related to CRT
auth. Note the code does not actually use any of the CRT
auth abstractions when making API requests. The main difference
in porting the package is that because CRT is a required dependency
there is no branching logic for conditionally using CRT auth. Eventually, we
should remove the pure-Python sigv4 auth abstractions and completely
rely on the CRT auth abstractions for sigv4 signing.
Comment thread botocore/crt/auth.py
Copy link
Copy Markdown
Contributor

@nateprewitt nateprewitt left a comment

Choose a reason for hiding this comment

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

Still looks good, thanks for rebasing!

@kyleknap kyleknap merged commit 3a7f435 into boto:v2 Aug 3, 2021
@kyleknap kyleknap deleted the v2-crt-auth branch August 3, 2021 20:59
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.

4 participants