Skip to content

Remove requirement for tell() on decrypt #104

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

Merged
merged 6 commits into from
Dec 6, 2018
Merged

Remove requirement for tell() on decrypt #104

merged 6 commits into from
Dec 6, 2018

Conversation

mattsb42-aws
Copy link
Member

Issue #, if available: #103

Description of changes:
This is the first in a series of changes to implement #103.

This removes the need for the source stream to implement tell() on the decrypt path.

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

@mattsb42-aws mattsb42-aws requested a review from a team November 14, 2018 04:06
@mattsb42-aws
Copy link
Member Author

flake8 and pylint checks will still fail on one line in this change being too long. I have some changes staged to address this by way of expanding imports which also makes the code easier to follow, but I think it is better to have those as their own PR for clarity.

@mattsb42-aws
Copy link
Member Author

Rebased on master to catch 1.3.8 changes.

@property
def body_start(self):
"""Log deprecation warning when body_start is accessed."""
_LOGGER.warning("StreamDecryptor.body_start is deprecated and will be removed in 1.4.0")
Copy link
Contributor

Choose a reason for hiding this comment

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

Would adding this deprecation message be released through a minor rev or a patch rev?

Copy link
Member Author

Choose a reason for hiding this comment

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

Per our versioning statement, the warnings should be added in a Z rev and the removal should happen in a Y rev.

https://github.com/aws/aws-encryption-sdk-python/blob/master/VERSIONING.rst

@mattsb42-aws mattsb42-aws merged commit 7771f51 into aws:master Dec 6, 2018
@mattsb42-aws mattsb42-aws deleted the dev-103 branch December 6, 2018 19:50
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