Feat/sandbox ca list 5001 #5091
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/5091"
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?
Imported from boykopovar/AnyPS5. Originally posted by MrMha on 2026-10-13T11:18:33Z.
What
Propose a host-provided certificate bundle for
/<sandbox word>/common/cert/CA_LIST.cer, addressing #5001. Carry screamm's offered commitdc51db5b4c517f731c07247b7702febd529e7922without changing its implementation; the integration retains the original commit as a parent and preserves its authorship.Add a libc path-provider registration API for an exact normalized, case-insensitive guest path. Libkernel registers the certificate path and generates its contents on the first resolution. Windows exports certificates from the current user's ROOT and CA stores. On non-Windows hosts, the provider uses the first readable regular file among
SSL_CERT_FILEand the configured distro bundle paths.The provider writes the selected bytes to
cert_cache/CA_LIST.cer, setting a newly written cache file read-only, and caches the resolved path for the process. It checks for a BEGIN CERTIFICATE marker; it does not parse or validate certificates. An empty result falls back to ordinary guest-path resolution. Sibling paths receive no provider mapping.The host trust-store design and console file format remain unverified. This PR is a design proposal; draft status is recommended until the design and implementation gaps below are resolved.
Tested
Prior local validation recorded for head
52fa8c361570d557d2ed115fb629183c4cb922b5: Linux x86-64, GCC 13.3.SSL_CERT_FILE, distro fallback, input without a certificate marker, and a blocked cache-directory write.-Wall -Wextra -Werror;-Wno-deprecated-declarationscovered the existingstd::filesystem::u8pathuse. Local code-convention and whitespace checks were reported as passing.Those four results were supplied in the work record and were not rerun here. This review separately compiled the unchanged production certificate-provider source with a minimal provider-registration harness on Linux/GCC 13.3. Precreating an identical owner-writable cache reproduced the permissions bug described below. This harness does not exercise the real guest resolver, kernel/stream wrappers or TLS.
No full runtime build,
guest_sandbox_certificatesCTest, Windows-store export or title run is claimed for this integration head. Historical Windows/title and Linux results in #5001 concern the original branch and, for titles, additional patches. The inspected GitHub full Linux/Windows runtime jobs were skipped.Outstanding work
General.cppand #5008 in libkernel's test registration. Their implementations concern path-service lifetime and rename semantics, respectively; these overlaps do not by themselves establish dependencies.5d50886ee4045dc2a081d8d93bf8e667f6d82325, this branch was 36 main commits behind, with merge basec7632f036f68f71a5e514f5b20f6df68a9062ada. Update it while preserving the carried commit and validate the resulting head.Checklist
main; no other open PR implements the same functions (see outstanding work above)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-13T11:25:21Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)core/libs/prx/libkernel/File/src/SandboxCertificates.cppcore/libs/tests/GuestSandboxCertificates.cppcore/libs/prx/libkernel/File/src/SandboxCertificates.cppcore/libs/tests/GuestSandboxCertificates.cppImported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-14T02:33:31Z.
Closing: no title is known to reach this. With the queue at 700+ open PRs, please hold off on new PRs that don't name a title needing the change until it's down. If a title stops on this on current main, reopen with the title ID and the log line.
Imported from boykopovar/AnyPS5. Originally posted by MrMha on 2026-10-14T10:50:45Z.
Title-need evidence relevant to the closure, attributed to an existing public run rather than a new local title test:
@babyhuey's 14 October report on #5280 identifies ProsperoLichess, PPSA99009, Game bring-up #4982. On the reported main baseline
f40b6930, Windows 11 / RTX 3080 / WinLibs GCC 15.2 Release, its log has:The same report says merging #5280's
8fd97c29onto that baseline changes the CA lookup to found and produceslichess probe status=200; the daily puzzle and Lichess TV load. This supplies a named title and baseline failure for the missing CA-file use case. Those are the contributor's results on those revisions, not an independent rerun or a claim about today's main or this PR's unchanged head.#5280 already carries the original certificate implementation with additional trust/precedence fixes. Its maintainer review says the host-trust design awaits a decision in #5001. This PR also still lists cache-permission/cleanup findings in its description. The evidence supports the need for a CA-path solution, while validation and the design decision remain necessary; it does not establish this branch as merge-ready.
AI-assisted: yes (Codex).
Pull request closed