Repository navigation
starboard: Unify CA certificate lookup - #13068
Merged
Merged
Conversation
The CA certificates were located three different ways. net::TrustStoreInMemoryStarboard read DIR_EXE/ssl/certs, CrashpadConfigTest.VerifyUploadCert appended app/cobalt/content to the content directory, and, when given no content path, the loaders' crashpad handler tried both places. This only worked where the build happened to stage a copy for each, and VerifyUploadCert failed on AOSP, where none matched its path. All three now read <content>/ssl/certs, where <content> is the reader's content directory: the one the Evergreen library is loaded with, or the executable's directory in a non-Evergreen build. The dependencies on the certificates now sit with what reads them. In an Evergreen build, elf_loader_sandbox depends on copy_ssl_certificates, which stages them at the content root for runs through the generated runfile. Each Evergreen target stages them in app/<target>/content for loader_app and the AOSP apks. //net depends on copy_ssl_certificates only in a non-Evergreen build, monolithic or modular, where the content root is the executable's directory. CrashpadConfigTest.VerifyUploadCert now passes on AOSP, so re-enable it. Bug: 532068409
Contributor
|
Contributor
🤖 Gemini Suggested Commit Message💡 Pro Tips for a Better Commit Message:
|
Contributor
There was a problem hiding this comment.
Code Review
This pull request simplifies and refactors how trusted Certificate Authority (CA) root certificates are located and copied across Cobalt and Starboard. It consolidates the GetCACertificatesPath functions in starboard/common/paths.cc into a single function with a default argument, and updates various build targets and tests to use the simplified paths and copy targets. The review feedback suggests removing a redundant SB_LOG(ERROR) statement in GetCACertificatesPath to prevent false-positive error logs during unit tests where certificates are not staged.
jellefoks
approved these changes
Oct 2, 2026
jellefoks
enabled auto-merge (squash)
October 2, 2026 18:20
briantting
pushed a commit
that referenced
this pull request
Oct 6, 2026
Refer to original PR: #13068 The CA certificates were located three different ways. net::TrustStoreInMemoryStarboard read DIR_EXE/ssl/certs, CrashpadConfigTest.VerifyUploadCert appended app/cobalt/content to the content directory, and, when given no content path, the loaders' crashpad handler tried both places. This only worked where the build happened to stage a copy for each, and VerifyUploadCert failed on AOSP, where none matched its path. All three now read <content>/ssl/certs, where <content> is the reader's content directory: the one the Evergreen library is loaded with, or the executable's directory in a non-Evergreen build. The dependencies on the certificates now sit with what reads them. In an Evergreen build, elf_loader_sandbox depends on copy_ssl_certificates, which stages them at the content root for runs through the generated runfile. Each Evergreen target stages them in app/<target>/content for loader_app and the AOSP apks. //net depends on copy_ssl_certificates only in a non-Evergreen build, monolithic or modular, where the content root is the executable's directory. CrashpadConfigTest.VerifyUploadCert now passes on AOSP, so re-enable it. Bug: 532068409 (cherry picked from commit 5bdc602)
briantting
pushed a commit
that referenced
this pull request
Oct 16, 2026
Refer to original PR: #13068 The CA certificates were located three different ways. net::TrustStoreInMemoryStarboard read DIR_EXE/ssl/certs, CrashpadConfigTest.VerifyUploadCert appended app/cobalt/content to the content directory, and, when given no content path, the loaders' crashpad handler tried both places. This only worked where the build happened to stage a copy for each, and VerifyUploadCert failed on AOSP, where none matched its path. All three now read <content>/ssl/certs, where <content> is the reader's content directory: the one the Evergreen library is loaded with, or the executable's directory in a non-Evergreen build. The dependencies on the certificates now sit with what reads them. In an Evergreen build, elf_loader_sandbox depends on copy_ssl_certificates, which stages them at the content root for runs through the generated runfile. Each Evergreen target stages them in app/<target>/content for loader_app and the AOSP apks. //net depends on copy_ssl_certificates only in a non-Evergreen build, monolithic or modular, where the content root is the executable's directory. CrashpadConfigTest.VerifyUploadCert now passes on AOSP, so re-enable it. Bug: 532068409 (cherry picked from commit 5bdc602)
briantting
pushed a commit
that referenced
this pull request
Oct 16, 2026
…kup (#13409) Automated cherry-pick roll to 27.lts. Original pull requests: - #13068 CONFLICTED files: ``` cobalt/aosp/modular_apk.gni cobalt/testing/filters/evergreen-arm-softfp-aosp/nplb_loader_filter.json cobalt/testing/filters/evergreen-arm64-aosp/nplb_loader_filter.json ```⚠️ This PR has conflicts that must be resolved manually (don't forget to update the `.github/AUTOROLL` file). Use the following commands to checkout the branch locally and resolve the conflicts in a separate commit: ```bash gh pr checkout <pull_request_number> -R youtube/cobalt # Resolve conflicts and update .github/AUTOROLL then git add <resolved_files> # Copy CONFLICTED commit's message and metadata # Replace CONFLICTED in title with RESOLVED git commit -c <conflicted_sha> git push origin autoroll-main-to-27.lts ``` --------- Co-authored-by: Henrique Ferreiro <hferreiro@igalia.com>
briantting
pushed a commit
that referenced
this pull request
Oct 16, 2026
Refer to original PR: #13068 The CA certificates were located three different ways. net::TrustStoreInMemoryStarboard read DIR_EXE/ssl/certs, CrashpadConfigTest.VerifyUploadCert appended app/cobalt/content to the content directory, and, when given no content path, the loaders' crashpad handler tried both places. This only worked where the build happened to stage a copy for each, and VerifyUploadCert failed on AOSP, where none matched its path. All three now read <content>/ssl/certs, where <content> is the reader's content directory: the one the Evergreen library is loaded with, or the executable's directory in a non-Evergreen build. The dependencies on the certificates now sit with what reads them. In an Evergreen build, elf_loader_sandbox depends on copy_ssl_certificates, which stages them at the content root for runs through the generated runfile. Each Evergreen target stages them in app/<target>/content for loader_app and the AOSP apks. //net depends on copy_ssl_certificates only in a non-Evergreen build, monolithic or modular, where the content root is the executable's directory. CrashpadConfigTest.VerifyUploadCert now passes on AOSP, so re-enable it. Bug: 532068409 (cherry picked from commit 5bdc602)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The CA certificates were located three different ways. net::TrustStoreInMemoryStarboard read DIR_EXE/ssl/certs, CrashpadConfigTest.VerifyUploadCert appended app/cobalt/content to the content directory, and, when given no content path, the loaders' crashpad handler tried both places. This only worked where the build happened to stage a copy for each, and VerifyUploadCert failed on AOSP, where none matched its path.
All three now read /ssl/certs, where is the reader's content directory: the one the Evergreen library is loaded with, or the executable's directory in a non-Evergreen build.
The dependencies on the certificates now sit with what reads them. In an Evergreen build, elf_loader_sandbox depends on copy_ssl_certificates, which stages them at the content root for runs through the generated runfile. Each Evergreen target stages them in app//content for loader_app and the AOSP apks. //net depends on copy_ssl_certificates only in a non-Evergreen build, monolithic or modular, where the content root is the executable's directory.
CrashpadConfigTest.VerifyUploadCert now passes on AOSP, so re-enable it.
Bug: 532068409