forked from flatcar/scripts
-
Notifications
You must be signed in to change notification settings - Fork 7
Enable ACL confidential VM boot and harden Azure time synchronization #61
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
Open
mayankfz
wants to merge
3
commits into
aclmain
Choose a base branch
from
mayansingh/ac_cvm_support
base: aclmain
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
acl/SPECS/bootengine/0003-decrypt-root-fix-firstboot-ordering.patch
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| From b5153c74f62233438a72710673c0e53e3e1af7de Mon Sep 17 00:00:00 2001 | ||
| From: Mayank Singh <mayansingh@microsoft.com> | ||
| Date: Thu, 13 Aug 2026 00:00:00 +0000 | ||
| Subject: [PATCH] decrypt-root: order unlock before root-device wait | ||
|
|
||
| Keep Ignition's disks stage ahead of root decryption because it can provision | ||
| LUKS volumes, then decrypt ROOT before initramfs waits for the root device. | ||
| --- | ||
| dracut/31decrypt-root/decrypt-root.service | 2 ++ | ||
| 1 file changed, 2 insertions(+) | ||
|
|
||
| diff --git a/dracut/31decrypt-root/decrypt-root.service b/dracut/31decrypt-root/decrypt-root.service | ||
| index 54f941a..226d3d3 100644 | ||
| --- a/dracut/31decrypt-root/decrypt-root.service | ||
| +++ b/dracut/31decrypt-root/decrypt-root.service | ||
| @@ -4,5 +4,7 @@ Description=Generate and execute a systemd-cryptsetup service to decrypt the ROOT partition | ||
| DefaultDependencies=no | ||
| +# Decrypt ROOT before initramfs waits for it. | ||
| +Before=initrd-root-device.target | ||
| # If systemd-networkd.service is used in the initramfs, then we should run after it, since the ROOT partition | ||
| # might use network-bound encryption. | ||
| After=systemd-networkd.service dev-disk-by\x2dpartlabel-ROOT.device ignition-disks.service | ||
| Wants=dev-disk-by\x2dpartlabel-ROOT.device | ||
| -- | ||
| 2.43.0 |
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
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
16 changes: 16 additions & 0 deletions
16
sdk_container/src/third_party/coreos-overlay/coreos-base/oem-azure/files/chrony-azure-ptp
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| #!/bin/bash | ||
|
mayankfz marked this conversation as resolved.
mayankfz marked this conversation as resolved.
|
||
|
|
||
| set -euo pipefail | ||
|
|
||
| config_dir="/run/chrony-azure/conf.d" | ||
| config_file="${config_dir}/azure-ptp.conf" | ||
|
|
||
| install -d -m 0755 "${config_dir}" | ||
|
|
||
| if [[ -e /dev/ptp_hyperv ]]; then | ||
| printf '%s\n' \ | ||
| 'refclock PHC /dev/ptp_hyperv poll 3 dpoll -2 offset 0 stratum 2 prefer' \ | ||
| > "${config_file}" | ||
| else | ||
| rm -f "${config_file}" | ||
| fi | ||
6 changes: 4 additions & 2 deletions
6
sdk_container/src/third_party/coreos-overlay/coreos-base/oem-azure/files/chrony-hyperv.conf
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,6 @@ | ||
| # This should only be used when chronyd is configured to use the /dev/ptp_hyperv device | ||
| [Unit] | ||
| Wants=dev-ptp_hyperv.device | ||
| # Order after the PTP device if present without waiting for it when unavailable. | ||
| After=dev-ptp_hyperv.device | ||
|
|
||
| [Service] | ||
| ExecStartPre=-/usr/libexec/chrony-azure-ptp | ||
|
mayankfz marked this conversation as resolved.
|
||
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.