Skip to content

Conversation

@ricab
Copy link
Collaborator

@ricab ricab commented Aug 27, 2025

We need to do this via a PR now, to get the CLA check.

)

The previously generated gRPC server certificate's issuer could be
different than the current one in certain circumstances, like a manual
installation after a snap installation of Multipass.

The patch fixes that by loading both the root and the subordinate cert
for the gRPC server and verifying that the root certificate is the
issuer.

Also added some logs to the certificate regeneration logic.

Fixes #4218

MULTI-2100
Changes the logic of where root certificates are stored on all platforms
to always be in the same location. This avoids having the client and
daemon looking in different locations.

fixes #4246
MULTI-2104
chown is a platform-specific function which depends uid and gid. these
values are not available in Windows, and the chown impl is by default
returns -1. This causes filesystem operation failures in Windows hosts
when sshfs mounts are used in guests. One example is as follows:

ubuntu@foo:~/Downloads$ echo "test" > foo.txt
-bash: foo.txt: Operation not permitted

This operation fails because it first lands in handle_open, which
eventually calls chown to change the file's owner, which is a failure by
default in Windows.

The patch fixes that by introducing a shim function, chown_shim which
returns success when either uid or gid is set to no_id_info_available.

MULTI-2155
@codecov
Copy link

codecov bot commented Aug 27, 2025

Codecov Report

❌ Patch coverage is 96.87500% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 89.32%. Comparing base (d362e34) to head (0e82c4b).
⚠️ Report is 365 commits behind head on main.

Files with missing lines Patch % Lines
src/cert/ssl_cert_provider.cpp 95.65% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4327      +/-   ##
==========================================
+ Coverage   89.31%   89.32%   +0.01%     
==========================================
  Files         259      259              
  Lines       15709    15729      +20     
==========================================
+ Hits        14030    14050      +20     
  Misses       1679     1679              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ricab
Copy link
Collaborator Author

ricab commented Aug 27, 2025

Remember to restore the branch on merge! It's necessary for version derivation in the candidate channel.

@ricab ricab merged commit 675902a into main Aug 27, 2025
72 of 87 checks passed
@ricab ricab deleted the release/1.16 branch August 27, 2025 11:36
@ricab ricab restored the release/1.16 branch August 27, 2025 11:36
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