Commit 0667439 replaced the in-container 'cp -r' app copy with a direct COPY app/ /build/initramfs/, dropping the umask normalization it gave for free.
App file modes then leaked the build host's umask into PCR0/PCR1, so caution verify mismatched deploys across hosts. Force canonical modes.
enclave-builder: normalize app file modes in initramfs #351
Manually merged
ryansquared
merged 3 commits from 2026年07月06日 22:30:13 +02:00
fix/eif-app-mode-normalization into main
vkobel
commented 2026年07月01日 19:41:37 +02:00
Commit 0667439 replaced the in-container 'cp -r' app copy with a direct COPY app/ /build/initramfs/, dropping the umask normalization it gave for free.
App file modes then leaked the build host's umask into PCR0/PCR1, so caution verify mismatched deploys across hosts. Force canonical modes.
vkobel
added 1 commit 2026年07月01日 19:41:37 +02:00
Commit 0667439 replaced the in-container 'cp -r' app copy with a direct
COPY app/ /build/initramfs/, dropping the umask normalization it gave for
free. App file modes then leaked the build host's umask into PCR0/PCR1, so
caution verify mismatched deploys across hosts. Force canonical modes.
vkobel
added the 2026年07月01日 19:41:57 +02:00
Priority
High
label
ryansquared
reviewed 2026年07月03日 15:57:39 +02:00
@ -150,0 +160,4 @@
# find/chmod here are busybox (this stage is FROM busybox); use octal -perm masks
# (-0100 = user-exec bit set) which every busybox build parses unambiguously.
RUN find /build/initramfs -type d -exec chmod 0755 {} + && \
find /build/initramfs -type f -perm -0100 -exec chmod 0755 {} + && \
ryansquared
commented 2026年07月03日 15:57:39 +02:00
-executable has clearer intent than -perm -0100, and as per find documentation: "This takes into account access control lists and other permissions artefacts which the -perm test ignores."
-executable has clearer intent than -perm -0100, and as per `find` documentation: "This takes into account access control lists and other permissions artefacts which the -perm test ignores."
vkobel
commented 2026年07月03日 16:54:40 +02:00
Switched to -executable + verified busybox find supports it
Switched to -executable + verified busybox find supports it
vkobel
added 1 commit 2026年07月03日 16:50:09 +02:00
vkobel
added 1 commit 2026年07月03日 16:52:21 +02:00
ryansquared
manually merged commit 8622037336 into main 2026年07月06日 22:30:13 +02:00
Sign in to join this conversation.
No reviewers
Labels
Clear labels
Compat/Breaking
Breaking change that won't be backward compatible
Component/Enclave-Builder
This issue affects Enclave Builder (git-push and CLI)
Component/Infrastructure
This issue affects generic Caution hosted infra components
Deploy/BYOC
Relates to Caution Bring-your-own-compute
Deploy/Full-managed
Relates to Caution fully managed cloud
Deploy/Self-hosted
Relates to Caution deployed on self-hosted infra
Interface/API
This issue affects the API
Interface/CLI
This issue affects the command line interface
Interface/Git
This issue affects the Git `push` interface
Interface/Web
This issue affects the web dashboard
Kind/Bug
Something is not working
Kind/Documentation
Documentation changes
Kind/Enhancement
Improve existing functionality
Kind/Feature
New functionality
Kind/Security
This is security issue
Kind/Testing
Issue or pull request related to testing
Priority
Critical
The priority is critical
Priority
High
The priority is high
Priority
Low
The priority is low
Priority
Medium
The priority is medium
Reviewed
Confirmed
Issue has been confirmed
Reviewed
Duplicate
This issue or pull request already exists
Reviewed
Invalid
Invalid issue
Reviewed
Won't Fix
This issue won't be fixed
Status
Abandoned
Somebody has started to work on this but abandoned work
Status
Blocked
Something is blocking this issue or pull request
Status
Need More Info
Feedback is required to reproduce issue or to continue work
No labels
Compat/Breaking
Component/Enclave-Builder
Component/Infrastructure
Deploy/BYOC
Deploy/Full-managed
Deploy/Self-hosted
Interface/API
Interface/CLI
Interface/Git
Interface/Web
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set.
Reference
caution/platform!351
Loading...
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/eif-app-mode-normalization"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?