Skip to content

fix(node): reject staging path mounted from unexpected source#152

Merged
mweibel merged 1 commit into
masterfrom
stage-source-verify
Jun 4, 2026
Merged

fix(node): reject staging path mounted from unexpected source#152
mweibel merged 1 commit into
masterfrom
stage-source-verify

Conversation

@mweibel
Copy link
Copy Markdown
Collaborator

@mweibel mweibel commented Jun 1, 2026

Verify if stagingTargetPath is mounted and verify the mount source matches what we expect.
This verification is done using LUKS paths or by resolving the symlink in the other case.
To simplify the API surface, the code has been refactored to have a new GetMountInfo function which answers both former IsMounted and GetMountSources APIs.

@mweibel mweibel requested a review from disperate June 1, 2026 12:02
@mweibel mweibel force-pushed the node-request-logger branch from 01d8e88 to 9d1fbe5 Compare June 4, 2026 09:30
Base automatically changed from node-request-logger to master June 4, 2026 10:46
Verify if stagingTargetPath is mounted and verify the mount source
matches what we expect.
This verification is done using LUKS paths or by resolving the symlink
in the other case.
To simplify the API surface, the code has been refactored to have a new
GetMountInfo function which answers both former IsMounted and GetMountSources APIs.
@mweibel mweibel force-pushed the stage-source-verify branch from 3c0c3a8 to c2adec9 Compare June 4, 2026 10:55
@mweibel mweibel merged commit 32e4b79 into master Jun 4, 2026
1 check passed
@mweibel mweibel deleted the stage-source-verify branch June 4, 2026 11:30
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.

2 participants