-
Notifications
You must be signed in to change notification settings - Fork 20
Support the new API GetObjectAttributes #2588
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
base: development/8.2
Are you sure you want to change the base?
Conversation
Hello maeldonn,My role is to assist you with the merge of this Available options
Available commands
Status report is not available. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds support for the AWS S3 GetObjectAttributes API by introducing routing logic, action mappings, and incrementing the package version.
Changes:
- Added routing for the
objectGetAttributesAPI method triggered by theattributesquery parameter - Added action mappings for
objectGetAttributesin both policy evaluation and monitoring maps - Incremented package version from 8.2.43 to 8.2.44
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| package.json | Bumped version to 8.2.44 for the new API support |
| lib/s3routes/routes/routeGET.ts | Added routing logic to handle query.attributes parameter and call objectGetAttributes |
| lib/policyEvaluator/utils/actionMaps.ts | Added objectGetAttributes to both sharedActionMap and actionMonitoringMapS3 for IAM policy evaluation and monitoring |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| objectGetLegalHold: 'GetObjectLegalHold', | ||
| objectGetRetention: 'GetObjectRetention', | ||
| objectGetTagging: 'GetObjectTagging', | ||
| objectGetAttributes: 's3:GetObjectAttributes', |
Copilot
AI
Jan 26, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The value in actionMonitoringMapS3 should be 'GetObjectAttributes' not 's3:GetObjectAttributes'. All other entries in this map use plain action names without the 's3:' prefix (see lines 160-164, 166-173 for examples like 'GetObject', 'GetObjectAcl', 'GetObjectLegalHold', etc.).
| objectGetAttributes: 's3:GetObjectAttributes', | |
| objectGetAttributes: 'GetObjectAttributes', |
| } else if (query.attributes !== undefined) { | ||
| call('objectGetAttributes'); |
Copilot
AI
Jan 26, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider adding a test case for the new objectGetAttributes routing logic. The existing test file has test cases for other query parameters like objectGetACL (line 81-91), and following the established pattern, there should be a test to verify that when query.attributes is present, the router calls 'objectGetAttributes'.
DarkIsDude
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No a lot to add, IA spotted them
delthas
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM apart from AI comments
francoisferrand
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see comments from Copilot
Issue: ARSN-549