feat(aws-dataprocessing-mcp): add support for --allow-sensitive-data-access mcp flag#3094
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3094 +/- ##
=======================================
Coverage 92.45% 92.46%
=======================================
Files 851 851
Lines 67540 67570 +30
Branches 10844 10852 +8
=======================================
+ Hits 62445 62477 +32
Misses 3075 3075
+ Partials 2020 2018 -2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
ckha2000
previously approved these changes
Apr 15, 2026
chappidim
reviewed
Apr 15, 2026
chappidim
approved these changes
Apr 16, 2026
ckha2000
approved these changes
Apr 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes
Implemented enforcement for the
--allow-sensitive-data-accessCLI flag that was previously parsed and stored but never checked in any conditional. This security vulnerability allowed unauthorized access to sensitive customer data including database passwords, query results, and job execution outputs regardless of the flag's value.Security Fixes:
hide_password=Truewhen flag is disabledOperations Protected:
CRITICAL - Database Credentials:
get-connectionandlist-connections: Enforceshide_password=Trueto prevent plaintext password exposureHIGH - Customer Data:
get-query-results(Athena): Blocks customer query result dataget-statement(Glue Interactive Sessions): Blocks execution outputs with customer dataget-entity-records(Data Catalog): Blocks preview data from connected sourcesMEDIUM - Job Outputs:
get-job-run(Glue ETL & EMR Serverless): Blocks job details with sensitive arguments/errorsdescribe-step(EMR EC2): Blocks step configurations with potential credentialsUser experience
Before this change:
--allow-sensitive-data-accessflag had zero effecthide_password=FalseAfter this change:
Default behavior (secure): Without
--allow-sensitive-data-accessflag:get-connection()automatically hides passwords even if user passeshide_password=Falseget-query-results()returns error: "requires --allow-sensitive-data-access flag"get-statement()returns error: "requires --allow-sensitive-data-access flag"get-entity-records()returns error: "requires --allow-sensitive-data-access flag"With flag enabled: All operations work as originally intended:
{ "args": [ "awslabs.aws-dataprocessing-mcp-server@latest", "--allow-sensitive-data-access" ] }Metadata operations unaffected: List operations (e.g.,
list-query-executions,list-statements) continue to work without the flag as they only return IDs/status, not actual dataChecklist
If your change doesn't seem to apply, please leave them unchecked.
Is this a breaking change? (N)
Explanation: This is NOT a breaking change. The default behavior is more restrictive (secure by default), but users can restore previous behavior by explicitly adding the
--allow-sensitive-data-accessflag. Existing test suites were updated to enable the flag where needed, demonstrating backward compatibility.RFC issue number: N/A (Security fix addressing documented but unimplemented feature)
Checklist:
Testing
Test Coverage:
tests/test_sensitive_data_access.pyallow_sensitive_data_access=Truein fixturesTest Categories:
Verification:
Documentation
Updated Files:
README.md: Enhanced--allow-sensitive-data-accessflag documentation with detailed breakdown of protected operations by severity levelSENSITIVE_DATA_ANALYSIS.md: New file with comprehensive analysis of all sensitive operations backed by AWS API documentationSECURITY_IMPLEMENTATION_SUMMARY.md: New file documenting implementation approach, testing, and verificationAcknowledgment
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the project license.