Repository navigation
Deduplicate Cloud Hypervisor enclave workload profile creation - #11849
Merged
Merged
Conversation
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
lpcox
marked this pull request as ready for review
November 19, 2026 22:56
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the workload-profile factory consolidation.
No open issues 🎉
What changed in this PR
This PR consolidates the Cloud Hypervisor enclave workload-profile factory, addressing #11845 and reducing the risk of security-relevant policy handling drifting between implementations.
Changes:
- Replace the executor-policy module’s duplicate factory with a re-export of the shared implementation, preserving existing imports.
- Add a regression test asserting both modules export the same factory function.
| File | Description |
|---|---|
src/cloud-hypervisor/host-enclave-workload-profile.test.ts |
Adds a factory identity check across both module exports. |
src/cloud-hypervisor/host-enclave-executor-policy.ts |
Removes the duplicate factory and unused imports; re-exports the shared implementation. |
Review effort: Balanced (adaptive)
Contributor
|
✅ Copilot review passed with no inline comments. @lpcox Add the |
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.
Two host-enclave modules duplicate the trusted workload-profile factory, risking drift in security-relevant agent-policy and GitHub-capability handling.
createWorkloadProfilein Cloud Hypervisor host-enclave modules #11845