Skip to content

fix(rust/gui-client): allow GUI process to read the firezone-id file from disk#6987

Merged
ReactorScram merged 7 commits intomainfrom
chore/better-errors
Oct 9, 2024
Merged

fix(rust/gui-client): allow GUI process to read the firezone-id file from disk#6987
ReactorScram merged 7 commits intomainfrom
chore/better-errors

Conversation

@thomaseizinger
Copy link
Member

@thomaseizinger thomaseizinger commented Oct 9, 2024

Closes #6989

  • The tunnel daemon (IPC service) now explicitly sets the ID file's perms to 0o640, even if the file already exists.
  • The GUI error is now non-fatal. If the file can't be read, we just won't get the device ID in Sentry.
  • More specific error message when the GUI fails to read the ID file

We attempted to set the tunnel daemon's umask, but this caused the smoke tests to fail. Fixing the regression is more urgent than getting the smoke tests to match local debugging.

@vercel
Copy link

vercel bot commented Oct 9, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
firezone 🛑 Canceled (Inspect) Oct 9, 2024 7:01pm

@thomaseizinger thomaseizinger changed the title Improve error reporting when failing to read device id chore(gui-client): better errors when failing to read device id Oct 9, 2024
@ReactorScram ReactorScram changed the title chore(gui-client): better errors when failing to read device id fix(rust/gui-client): allow GUI process to read the firezone-id file from disk Oct 9, 2024
@ReactorScram
Copy link
Contributor

@thomaseizinger I can't mark you for review since it's your PR but I changed a bunch of stuff and it's nearly passing CI. I had a last-minute issue with the smoke test not working

Copy link
Member Author

@thomaseizinger thomaseizinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ReactorScram ReactorScram added this pull request to the merge queue Oct 9, 2024
Merged via the queue into main with commit 0825055 Oct 9, 2024
@ReactorScram ReactorScram deleted the chore/better-errors branch October 9, 2024 20:19
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.

bug(rust/gui-client): "Failed to read device ID"

2 participants