Skip to content

feat: add Bundle Optimization Security Context (#409)#685

Merged
RUKAYAT-CODER merged 1 commit into
rinafcode:mainfrom
usmanimamu17-create:fix/issue-409-bundle-security-context
Jun 25, 2026
Merged

feat: add Bundle Optimization Security Context (#409)#685
RUKAYAT-CODER merged 1 commit into
rinafcode:mainfrom
usmanimamu17-create:fix/issue-409-bundle-security-context

Conversation

@usmanimamu17-create

Copy link
Copy Markdown
Contributor

Closes #409

Adds a per-chunk Security Context to the bundle optimizer enforcing SRI integrity, origin allow-listing, size limits, and trust levels. BundleOptimizer.registerChunk now forwards optional security metadata, and unregisterChunk detaches it. Covered by 14 tests.

…#409)

- Introduce BundleSecurityContext with default + per-chunk policies
- Enforce SRI integrity, origin allow-list, max-size, trust level
- Wire BundleOptimizer.registerChunk to forward security metadata
- Add unregisterChunk which detaches security metadata
- Cover with unit tests (14 passing)
@drips-wave

drips-wave Bot commented Jun 25, 2026

Copy link
Copy Markdown

@Icahbod Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@RUKAYAT-CODER

Copy link
Copy Markdown
Contributor

Thank you for contributing to the project

@RUKAYAT-CODER
RUKAYAT-CODER merged commit fcfa1a9 into rinafcode:main Jun 25, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor Bundle Optimization : Security Context

2 participants