feat(glue-alpha): new `hasEncryptedData` property by otaviomacedo · Pull Request #38511 · aws/aws-cdk · GitHub
Skip to content

feat(glue-alpha): new hasEncryptedData property - #38511

Merged
mergify[bot] merged 4 commits into
mainfrom
otaviom/glue/has-encrypted-data
Aug 13, 2026
Merged

mergify[bot] merged 4 commits into
mainfrom
otaviom/glue/has-encrypted-data

Conversation

@otaviomacedo

Copy link
Copy Markdown
Contributor

Glue tables have a storage descriptor, in which certain properties may be configured. One of them is has_encrypted_data, that is used by Athena do handle encryption when the data is client-side encrypted (server side encrypted data is encrypted and decrypted transparently).

Currently, in S3Table and ExternalTable this value is hard-coded to true. Although there is a way to override this value, it's incidental (by adding a has_encrypted_data to the free-form parameters property).

Add a type safe hasEncryptedData property to TableBaseProps. This is now the only way to override this value.

BREAKING CHANGE: a differing/tokenized has_encrypted_data supplied via parameters now throws.


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

Glue tables have a storage descriptor, in which certain properties may be configured. One of them is `has_encrypted_data`, that is used by Athena do handle encryption when the data is client-side encrypted (server side encrypted data is encrypted and decrypted transparently).

Currently, in `S3Table` and `ExternalTable` this value is hard-coded to `true`. Although there is a way to override this value, it's incidental (by adding a `has_encrypted_data` to the free-form `parameters` property).

Add a type safe `hasEncryptedData` property to `TableBaseProps`. This is now the only way to override this value.

BREAKING CHANGE: a differing/tokenized `has_encrypted_data` supplied via `parameters` now throws.
@github-actions github-actions Bot added the p2 label Aug 7, 2026
@aws-cdk-automation
aws-cdk-automation requested a review from a team August 7, 2026 08:15
@mergify mergify Bot added the contribution/core This is a PR that came from AWS. label Aug 7, 2026
@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

@aws-cdk-automation aws-cdk-automation left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(This review is outdated)

@otaviomacedo otaviomacedo added the pr-linter/exempt-integ-test The PR linter will not require integ test changes label Aug 7, 2026
@aws-cdk-automation
aws-cdk-automation dismissed their stale review August 7, 2026 08:38

✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.

@aws-cdk-automation aws-cdk-automation added the pr/needs-maintainer-review This PR needs a review from a Core Team Member label Aug 7, 2026
@alvazjor alvazjor self-assigned this Aug 13, 2026
throw new ValidationError(
lit`HasEncryptedDataConflict`,
`the \`${key}\` table parameter is managed by the \`hasEncryptedData\` property; ` +
`remove it from \`parameters\` (got ${JSON.stringify(supplied)}, expected ${JSON.stringify(managed)})`,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nit: ... remove it from parameters and use the official property instead.... I can see a scenario where someone just reads remove it from the parameters and doesnt add it back in the new prop, and if they had false in the parameters workaround, we will flip their decision

Updated error message to clarify usage of hasEncryptedData property.
@mergify

mergify Bot commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

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

@mergify

mergify Bot commented Aug 13, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

  • ✅ Entered queue — 2026-08-13 13:26 UTC · Rule: default-squash · triggered by rule automatic merge
  • ✅ Checks passed · in-place
  • ✅ Merged — 2026-08-13 14:03 UTC · at 3b5a4374eb6cf51aaab5f4c9625d28d23760426e · squash

This pull request spent 37 minutes 10 seconds in the queue, including 36 minutes 40 seconds running CI.

Required conditions to merge

@mergify
mergify Bot merged commit c977e36 into main Aug 13, 2026
18 of 19 checks passed
@mergify
mergify Bot deleted the otaviom/glue/has-encrypted-data branch August 13, 2026 14:03
@mergify

mergify Bot commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

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

@github-actions

Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Aug 13, 2026
@aws-cdk-automation aws-cdk-automation removed the pr/needs-maintainer-review This PR needs a review from a Core Team Member label Aug 13, 2026

This branch was previously deployed

1 inactive deployment
automation — 3b5a4374 Deployed Aug 13, 2026 by aws-cdk-automation via validate-pr #360976
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

contribution/core This is a PR that came from AWS. p2 pr-linter/exempt-integ-test The PR linter will not require integ test changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants