Repository navigation
Add Linux NVMe preparation action - #40
Open
jonathanbrenes wants to merge 9 commits into
Open
jonathanbrenes wants to merge 9 commits into
jonathanbrenes wants to merge 9 commits into
Conversation
Embed the shared Linux preparation script with guest-kernel/device adapters and the tested RHEL 7 standalone EFI timeout correction. Add self-contained action regressions and optional shared-source fixtures. Document the unchanged Oracle framework limitation and SSH acceptance gap; keep ADE and session-specific deployment tooling outside this change. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Remove unused check/dry-run flags, staging and non-fix branches while preserving default repairs and the optional equivalent -fix argument. Retain every shared-source fix/error scenario, update the self-contained regressions and document the narrower interface and historical live scope. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Preserve the developer test harness separately and remove it from the contribution. Keep only the action, minimal built-in wiring and usage documentation, including the unchanged Oracle framework limitation. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Require a fresh root-owned source-VM check report covering OS and data disks before discovery or repair. Refuse encrypted or unknown guest partitions before ADE setup and keep other actions' recovery behavior unchanged. Keep the regression harness external and document the trusted report handoff. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
3 of 4 tasks
Restore standalone invocation and remove the JSON report input/parser. Refuse local BEK volumes, key files and unlocked mappings before discovery, including ADE-aware data-disk-only recovery with a plaintext OS disk. Keep encryption/probe-error refusal, other actions' ADE behavior and the external test harness; document the offline coverage boundary. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Describe the NVMe action directly in usage and source comments, and name ALAR in the fallback rule's installer comment. Preserve Microsoft copyright and license notices and all operational behavior. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Strengthen the existing driver, UUID and udev preparation paths and clean up on NVMe child failures without adding modes or a shipped test suite. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Document the live-verified manual-attachment boundary and link the Microsoft automatic-BEK workflow. Runtime code remains unchanged from the native ARM64/x64 and genuine ADE-refusal tested candidate. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
Author
|
Focused live testing is complete for runtime commit
Live setup confirmed an important existing boundary: adding an encrypted disk to an already-created rescue does not itself provision a BEK. Automatic BEK provisioning belongs to the documented creation-time workflow. README clarification in The updated PR description includes commands/results and coverage limits. No ADE controller conversion, key export, network opening or policy relaxation occurred. The 1,820-file evidence manifest is sealed with SHA256 |
jonathanbrenes
marked this pull request as ready for review
November 25, 2026 19:57
Use installed kernel package files and boot references instead of module directories. Ignore module-only kmod-kvdo and debug/header artifacts while preserving genuine missing-image failures. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.
Summary
Add a built-in, fix-only
alar nvmeaction with offline guest-kernel/deviceresolution, RHEL 7 standalone EFI correction and local ADE refusal.
Run
alar nvmedirectly. No external command, report or dependency is required.Preparation safeguards
and its distribution-specific boot images. Reject missing required images,
failed inspections/rebuilds and unavailable drivers after rebuilding.
entry leaves the original fstab unchanged and fails preparation.
later actions or emit successful-recovery telemetry after a failure.
Local ADE safeguards and boundary
ADE credentials, an attached
BEK VOLUME, existing recovery-key metadata orknown unlocked ADE mappings refuse an invocation containing NVMe before
discovery. Encrypted/unknown recovery partitions are refused before unlocking.
The guard does not mount key disks or read key contents. Probe errors refuse
NVMe. Other actions retain their ADE behavior.
A genuine BEK catches data-only ADE even with a plaintext recovery OS. Unlocked
ADE is still encrypted.
Important live-verified boundary: attaching an encrypted disk to an existing
rescue does not itself guarantee a BEK volume. The documented automatic-BEK
workflow attaches the encrypted disk at rescue VM creation. Usage now links
Microsoft's workflow.
An offline disk cannot reveal unattached data disks or omitted keys. The repair
workflow/operator must ensure the original VM has no OS/data-disk ADE; this
local guard is not standalone Azure VM-wide certification.
Scope
Eight runtime/usage files. No shipped test suite, packages, cloud API calls,
health-check modes, controller/size changes or ADE-classifier rewrite.
Copyright/license notices remain; current code/docs have no unapproved dependency.
Runtime tested at
aaebb79cc1aad4dec499b1155b0f67d216b41ce7.Follow-up
caa224f7730454a27d9d2a47898bce6765f6c818changes README only;git diff aaebb79 HEAD -- srcconfirms the runtime is unchanged.Local validation
cargo check --locked --offline --target x86_64-unknown-linux-gnucargo test --locked --offline --target x86_64-unknown-linux-gnucargo build --release --locked --offline --target x86_64-unknown-linux-gnubash -n,git diff --cached --check, embedded-payload/scope checkscargo fmt --check, preserved-baseline comparisonThe existing Rust telemetry test emits its normal test telemetry.
Focused live validation — 2026-11-25
All harnesses/evidence remain outside this PR. No production correction was
needed during live testing.
cargo build --release --locked --offline --target aarch64-unknown-linux-gnu -j 4;cargo test --locked --offline --target aarch64-unknown-linux-gnu -j 4CC_aarch64_unknown_linux_musl=musl-gcc CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER=musl-gcc cargo build --release --locked --offline --target aarch64-unknown-linux-musl -j 4python3 -B plain_case.py armpython3 -B plain_case.py x64nvmeandfstab,nvmepython3 -B resume_data_ade.py --use-diagnostic-attachmentspython3 -B os_ade_after_encryption.pypython3 -B close_campaign.pyEight distinct real boot IDs were captured across the plaintext roundtrips.
Full guest logs were retrieved and hash-verified, not inferred from RunCommand's
outer success status. Genuine ADE was never switched to NVMe.
Initial oversized transfers and missing/already-mounted/suffixed-BEK setup
preconditions were recorded explicitly and corrected only in the external
harness. Failed preconditions were not reported as successful action tests.
No key contents were printed/exported; cryptsetup consumed the existing file
directly. The NVMe guard itself only inspected metadata.
Exactly three new private two-vCPU test VMs and a test-only vault were used.
Original disks, cold snapshots/clones, and old/new ARM artifacts are retained.
No broad deletion, public endpoint for new guests, network opening or tenant
policy relaxation. All used VMs finished deallocated.
Evidence: 1,820 sealed files; manifest SHA256
7233bf0d512daaf7bcc6b9031f6332f731eb8236f5ab883f9e9c437b47a5c1c7.Payload SHA256:
db573d46a043db39d1dab5d6b208dce140191e5bfca41c1bdaba04a0b750b6fe.Native ARM64 static executable SHA256:
ae370e6852cb180da4d0affa6980a0a9859a2a197f945537686df0cd49330b0d.Remaining coverage boundaries
This is focused Ubuntu 24.04 plaintext and Ubuntu 22.04 ADE acceptance, not a
new all-distro matrix. Native RunCommand does not certify SSH.
Existing-action isolation used a plaintext recovery copy on a genuine data-ADE
host; encrypted-OS unlocking compatibility with its own supplied key is not
claimed. Earlier RHEL/Oracle evidence remains historical. The temporary Oracle
classifier correction is still reverted and existing false-positive layouts
remain refused. Draft for review.