Skip to content
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

Add additional registry values to uVM via annotation #1963

Merged
merged 1 commit into from
Nov 10, 2023

Conversation

helsaawy
Copy link
Contributor

@helsaawy helsaawy commented Nov 7, 2023

Allow callers to specify additional registry values in the WCOW OS via the io.microsoft.virtualmachine.wcow.additional-reg-keys annotation.

The intent is to test and validate bug fixes or debug uVM behavior (eg, via setting values in SYSTEM\CurrentControlSet\Services\wcifs, SYSTEM\CurrentControlSet\Policies\Microsoft\FeatureManagement\Overrides\*) without requiring a new package.

The annotation is under internal/annotations, since it is not suitable for end users to rely on.
Additionally, limit the settable registry keys to prevent it being used (abused) as a catch all mechanism to arbitrarily modify uVM behavior.

Additionally, add
RegistryValueType and
RegistryHive enum types for HCS v2 schema.

@helsaawy helsaawy requested a review from a team as a code owner November 7, 2023 19:59
Allow callers to specify additional registry values in the WCOW OS via
the `io.microsoft.virtualmachine.wcow.additional-reg-keys` annotation.

The intent is to test and validate bug fixes or debug uVM behavior
(eg, via setting values in `SYSTEM\CurrentControlSet\Services\wcifs`,
`SYSTEM\CurrentControlSet\Policies\Microsoft\FeatureManagement\Overrides\*`)
without requiring a new package.

The annotation is under `internal/annotations`, since it is not
suitable for end users to rely on.
Additionally, limit the settable registry keys to prevent it being used
(abused) as a catch all mechanism to arbitrarily modify uVM behavior.

Additionally, add
[RegistryValueType](https://learn.microsoft.com/en-us/virtualization/api/hcs/schemareference#RegistryValueType)
and
[RegistryHive](https://learn.microsoft.com/en-us/virtualization/api/hcs/schemareference#RegistryHive)
enum types for HCS v2 schema.

Signed-off-by: Hamza El-Saawy <hamzaelsaawy@microsoft.com>
@helsaawy helsaawy merged commit 73c8f5e into microsoft:main Nov 10, 2023
18 of 19 checks passed
@helsaawy helsaawy deleted the wcow-add-regs branch November 10, 2023 19:42
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.

None yet

4 participants