Security hardening: credential scoping, S3 encryption, scanner logging#788
Security hardening: credential scoping, S3 encryption, scanner logging#788Schmarvinius merged 9 commits intomainfrom
Conversation
SummaryThe following content is AI-generated and provides a summary of the pull request: Security Hardening: Credential Scoping, S3 Encryption, and Scanner LoggingBug Fix / Security🔒 This PR applies several security hardening improvements: scoping cloud storage credentials to only the jobs that need them, enabling server-side encryption for S3 uploads, and enriching malware scanner error logs with entity context. Changes
PR Bot InformationVersion:
💌 Have ideas or want to contribute? Create an issue and share your thoughts with us! Made with ❤️ by Hyperspace. |
There was a problem hiding this comment.
The PR is well-structured with meaningful security improvements. The only issues found are a minor unused import and test code duplication in AWSClientTest.java — the core logic changes across all three files are correct.
PR Bot Information
Version: 1.20.11 | 📖 Documentation | 🚨 Create Incident | 💬 Feedback
- File Content Strategy: Full file content
- LLM:
anthropic--claude-4.6-sonnet - Correlation ID:
7f1c62a0-34f3-11f1-9a92-7d9361aac18d - Event Trigger:
pull_request.opened
Security Hardening: Credential Scoping, S3 Encryption, and Scanner Logging
Bug Fix / Security
🔒 This PR applies several security and observability improvements: cloud storage credentials are now scoped to only the jobs that require them, S3 uploads are enforced with server-side encryption, and malware scanner error logs now include entity context for better diagnostics.
Changes
.github/workflows/pipeline.yml: Moved cloud storage credentials (AWS, Azure, GCP) from the globalenvblock to theintegration-testsjob-levelenvblock, ensuring secrets are only exposed to jobs that actually need them.AWSClient.java: AddedServerSideEncryption.AES256to all S3PutObjectRequestcalls, enforcing server-side encryption at rest for uploaded attachments.AWSClientTest.java: Added a dedicated testtestUploadContentSetsServerSideEncryptionto verify that every upload request includes theAES256server-side encryption setting.DefaultAttachmentMalwareScanner.java: UpdatedscanDocumentto accept theCdsEntityparameter, enabling error log messages to include the entity's qualified name alongside the content ID when a scan failure occurs — improving traceability of scan errors.📬 Subscribe to the Hyperspace PR Bot DL to get the latest announcements and pilot features!
PR Bot Information
Version:
1.20.11| 📖 Documentation | 🚨 Create Incident | 💬 Feedbackissue_comment.createdanthropic--claude-4.6-sonnet942ed330-34f3-11f1-90c9-773dc2f9de58