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

hosted functions use insecure python cryptography library #78

Closed
michaelbrewer opened this issue Feb 3, 2022 · 3 comments
Closed

hosted functions use insecure python cryptography library #78

michaelbrewer opened this issue Feb 3, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@michaelbrewer
Copy link

When setting up rotations via the hosted function like below:

from aws_cdk import core, aws_ec2 as ec2
from aws_cdk.aws_rds import DatabaseCluster, DatabaseClusterEngine, InstanceProps, AuroraEngineVersion
from aws_cdk.core import Duration


class Tmp2Stack(core.Stack):
    def __init__(self, scope: core.Construct, construct_id: str, **kwargs) -> None:
        super().__init__(scope, construct_id, **kwargs)

        vpc = ec2.Vpc(self, "VPC")

        db = DatabaseCluster(
            self,
            "Database",
            engine=DatabaseClusterEngine.aurora(version=AuroraEngineVersion.VER_1_22_2),
            instance_props=InstanceProps(vpc=vpc),
        )
        db.add_rotation_single_user(automatically_after=Duration.days(7))

Then the python 3.7 lambdas are insecure using 2017 version of python cryptography

image

image

@whygoyal whygoyal added the enhancement New feature or request label Mar 2, 2022
@whygoyal
Copy link
Contributor

whygoyal commented Mar 2, 2022

Thank you for your feedback. We have noted this as a feature request.

@goyalya
Copy link

goyalya commented Apr 7, 2022

We investigated this further and it appears that there might be some issue with your lambda setup. If you are initiating the lambda from CFN, you have to update lambda in CFN or if it is from console, you should replace existing lambda with new lambda. If you need further assistance, please open a support case with AWS.

@goyalya goyalya closed this as completed Apr 7, 2022
@michaelbrewer
Copy link
Author

@goyalya - i will submit a synthed cfn example and share the generated stack, but this is not closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants