Skip to content

feat/bedrock-secure-prompt-caching #5035

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged

Conversation

chezsmithy
Copy link
Contributor

@chezsmithy chezsmithy commented Apr 8, 2025

Description

We have learned from our AWS account rep that prompt caching for AWS Bedrock is at the AWS account level. As such there is risk that similar prompts submitted by multiple users or system processes that may contain confidential information might result in leaked data between users. The best practice recommended is to add a unique value to user prompts to avoid prompt leakage between client sessions. This PR adds that feature.

Checklist

  • The relevant docs, if any, have been updated or created
  • The relevant tests, if any, have been updated or created

Screenshots

[ For visual changes, include screenshots. Screen recordings are particularly helpful, and appreciated! ]

Testing instructions

I've added unit tests and manually validated that the secure ID is added to the relevant prompts. I've noted that prompt caching is still functioning as expected.

@chezsmithy chezsmithy requested a review from a team as a code owner April 8, 2025 06:06
@chezsmithy chezsmithy requested review from sestinj and removed request for a team April 8, 2025 06:06
Copy link

netlify bot commented Apr 8, 2025

Deploy Preview for continuedev canceled.

Name Link
🔨 Latest commit 189d0c8
🔍 Latest deploy log https://app.netlify.com/sites/continuedev/deploys/67f4bcfe0fb6e80008707f51

@sestinj sestinj merged commit 30b5f32 into continuedev:main Apr 9, 2025
30 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants