Skip to content

fix(amazon-sns-sqs-mcp-server): add tag validation to permission mutator tools - #4478

Open
hashimsharkh wants to merge 1 commit into
awslabs:mainfrom
hashimsharkh:fix/permission-mutators-tag-validation
Open

fix(amazon-sns-sqs-mcp-server): add tag validation to permission mutator tools#4478
hashimsharkh wants to merge 1 commit into
awslabs:mainfrom
hashimsharkh:fix/permission-mutators-tag-validation

Conversation

@hashimsharkh

@hashimsharkh hashimsharkh commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Summary

Changes

Three permission mutator tools (add_sns_permission, add_sqs_permission, remove_sqs_permission) bypassed the mcp_server_version tag validation that guards all other mutative operations. This allows untagged resources to be modified without the safety check.

Added validator: is_mutative_action_allowed to the tool configuration for all three tools, consistent with other mutative operations. Also added @BenAtAmazon to CODEOWNERS.

User experience

Before: Resources without the mcp_server_version tag could have permissions modified via these three tools, bypassing the safety gate.

After: All permission mutator tools now consistently validate the tag before execution.

Checklist

  • I have reviewed the contributing guidelines
  • I have performed a self-review of this change
  • Changes have been tested
  • Changes are documented

Is this a breaking change? N

Acknowledgment

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the project license.

@hashimsharkh
hashimsharkh requested review from a team as code owners August 11, 2026 17:51
@hashimsharkh
hashimsharkh force-pushed the fix/permission-mutators-tag-validation branch from 80504bc to 5bb84c0 Compare August 11, 2026 17:55
@hashimsharkh
hashimsharkh enabled auto-merge August 11, 2026 17:55
@codecov

codecov Bot commented Aug 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.14%. Comparing base (ebcafae) to head (1c6086c).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4478      +/-   ##
==========================================
- Coverage   93.14%   93.14%   -0.01%     
==========================================
  Files        1038     1038              
  Lines       87530    87536       +6     
  Branches    14121    14123       +2     
==========================================
+ Hits        81529    81534       +5     
  Misses       3638     3638              
- Partials     2363     2364       +1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

BenAtAmazon
BenAtAmazon previously approved these changes Aug 12, 2026
…tor tools

Three permission mutator tools (add_sns_permission, add_sqs_permission,
remove_sqs_permission) bypassed the mcp_server_version tag validation
that guards all other mutative operations. This allows untagged resources
to be modified without the safety check.

Add 'validator': is_mutative_action_allowed to the tool configuration
for all three tools, consistent with other mutative operations.

Also adds @BenAtAmazon to CODEOWNERS for amazon-sns-sqs-mcp-server.

By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of the
project license.
@hashimsharkh
hashimsharkh force-pushed the fix/permission-mutators-tag-validation branch from fa4a007 to 1c6086c Compare August 12, 2026 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: To triage

Development

Successfully merging this pull request may close these issues.

2 participants