-
Notifications
You must be signed in to change notification settings - Fork 334
Open
Labels
help wantedNeed some extra hands to get this done.Need some extra hands to get this done.status/readyIssue ready to be worked on.Issue ready to be worked on.type/bugIssue that reports an unexpected behaviour.Issue that reports an unexpected behaviour.
Description
Summary
See this branch #2146 and these failing tests:
pack/acceptance/acceptance_test.go
Line 1339 in dc59461
| bpOutputAsserts.ReportsReadingFileContents("Detect", testFilePath, "some-content") |
fails here with output
+ [detector] Starting detector...
+ [detector] Parsing inputs...
+ [detector] Ensuring privileges...
+ [detector] Executing command...
+ [detector] Timer: Detector started at 2024-05-02T18:18:51Z
+ [detector] Checking for match against descriptor: {windows []}
+ [detector] ======== Output: volume/bp@volume-bp-version ========
+ [detector] --- Detect: Volume Buildpack
+ [detector] Access is denied.
+ [detector] Detect: Reading file 'c:\platform\volume-mount-target\some-file':
+ [detector] --- Done
pack/acceptance/acceptance_test.go
Line 1378 in dc59461
| bpOutputAsserts.ReportsReadingFileContents("Detect", testDetectFilePath, "some-content") |
fails here with output
[detector] Starting detector...
[detector] Parsing inputs...
[detector] Ensuring privileges...
[detector] Executing command...
[detector] Timer: Detector started at 2024-05-02T18:19:24Z
[detector] Checking for match against descriptor: {windows []}
[detector] ======== Output: rw-volume/bp@rw-volume-bp-version ========
[detector] --- Detect: Read/Write Volume Buildpack
[detector] Access is denied.
[detector] Detect: Writing file 'c:\volume-mount-target\detect-file': failed
[detector] The system cannot find the file specified.
[detector] Detect: Reading file 'c:\volume-mount-target\detect-file':
[detector] --- Done
I wonder if it is similar to the issue fixed by #2129 in that with the 5 phases, the volume is getting mounted first to the analyze container (which is started as root), then to the detect container (not root). Though, the creator does drop to a non-root user by the time detect starts.
Environment
Windows Containers on Windows
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
help wantedNeed some extra hands to get this done.Need some extra hands to get this done.status/readyIssue ready to be worked on.Issue ready to be worked on.type/bugIssue that reports an unexpected behaviour.Issue that reports an unexpected behaviour.