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(kinesis): stream encryption with the Kinesis master key #7057

Merged
merged 7 commits into from
Mar 31, 2020

Conversation

shivlaks
Copy link
Contributor

The ability to create a Kinesis Stream with encryption is not currently possible in the L2 construct without a user managed key. However the keyId property can be used in the L1 to specify this mode of operation.

Commit Message

feat(kinesis): stream encryption with the Kinesis master key

Adds a StreamEncryption option to specify that encryption should be enabled on a Stream with the master key managed by Kinesis.

Closes #751

End Commit Message


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

Adds a `StreamEncryption` option to specify that encryption should be enabled and managed by Kinesis.

Closes #751
@shivlaks shivlaks requested review from eladb and a team March 29, 2020 06:37
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Mar 29, 2020
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: 90e288d
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: 38c88e4
  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@shivlaks shivlaks requested a review from nija-at March 30, 2020 17:04
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: 93f3a3a
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

Copy link
Contributor

@skinny85 skinny85 left a comment

Choose a reason for hiding this comment

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

I know this is not exactly the purpose of this PR, but this is my pet peeve 🙂.

Right now, if you leave encryptionType undefined, but pass the KMS Key, you will get an error encryptionKey is specified, so 'encryption' must be set to KMS. I find this error message infuriating ("Why are you telling me to set it, if you already know what it's supposed to be??"), and below the customer experience bar we hold for the CDK. It was the same situation in S3, and we fixed it in #2714 . I would love to get it fixed here as well (doesn't necessarily have to be this PR 🙂).

@shivlaks
Copy link
Contributor Author

I know this is not exactly the purpose of this PR, but this is my pet peeve 🙂.

Right now, if you leave encryptionType undefined, but pass the KMS Key, you will get an error encryptionKey is specified, so 'encryption' must be set to KMS. I find this error message infuriating ("Why are you telling me to set it, if you already know what it's supposed to be??"), and below the customer experience bar we hold for the CDK. It was the same situation in S3, and we fixed it in #2714 . I would love to get it fixed here as well (doesn't necessarily have to be this PR 🙂).

great point.. that’s a far more intuitive user experience. Will work into this PR

@shivlaks shivlaks requested a review from skinny85 March 30, 2020 22:07
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: ac1b730
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

Copy link
Contributor

@skinny85 skinny85 left a comment

Choose a reason for hiding this comment

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

👍

@mergify
Copy link
Contributor

mergify bot commented Mar 31, 2020

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: 831ceb0
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify
Copy link
Contributor

mergify bot commented Mar 31, 2020

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot merged commit bded683 into master Mar 31, 2020
@mergify mergify bot deleted the shivlaks/kinesis-managed-key branch March 31, 2020 01:38
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: 7a26b7c
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution/core This is a PR that came from AWS.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Kinesis Stream encryption should support the Master Kinesis key
5 participants