You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
security: path validators are POSIX-only, so on Windows ValidatePathForReading denies nothing #1000
Found by the new Windows CI job (#971): pkg/security's tests fail on windows-latest, and the package is skipped there (scripts/windows-test-skips.txt) until this is resolved.
ValidatePathForReading blocks a list of /etc/, /proc/, /root/, ... prefixes against filepath.Abs. On Windows /etc/passwd becomes D:\\etc\\passwd and /home/u/../../etc/passwd is cleaned to \\etc\\passwd, so nothing matches and every path is allowed. Callers: cmd/launch_config.go (--user-data file and user-data path lists, local machine) and pkg/agent/queue_runner.go (result-upload patterns on the spore, which includes a Windows spore).
ValidateMountPath rejects /mnt/data as "must be absolute" on Windows because filepath.IsAbs is host-relative, though mount paths describe a Linux instance.
SanitizePath returns backslashed paths on Windows.
Needs a decision per function: which paths are host paths (validate with Windows semantics, e.g. block C:\\Windows) and which are instance paths (validate with path, not filepath). ValidateMountPath and SanitizePath have no production callers today.
Activity
Windows CI: fix Windows test failures and real Windows bugs, skip Lin…
Windows CI: fix Windows test failures and real Windows bugs, skip Lin…
Make the path validators correct on Windows, and follow links (#1000)
Windows CI: fix Windows test failures and real Windows bugs, skip Lin…
Windows CI: fix Windows test failures and real Windows bugs, skip Lin…
CI: run the unit tests on Windows (#971) (#973)
Make the path validators correct on Windows, and follow links (#1000)
Build the queue-runner test's uploader with s3transfer.New after #974 (…
Windows CI: run pkg/security now that its validators handle Windows p…
Resolve junctions on Windows with GetFinalPathNameByHandle (#1000)
Make the path validators correct on Windows, and follow links (#1000)
Build the queue-runner test's uploader with s3transfer.New after #974 (…
Windows CI: run pkg/security now that its validators handle Windows p…
Resolve junctions on Windows with GetFinalPathNameByHandle (#1000)
Make the path validators correct on Windows, and follow links (#1000) (…
Windows: admit paths on a mapped network drive (#1107)
Windows: admit paths on a mapped network drive (#1107) (#1110)