Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(linux): make deep link auth work #4102

Merged
merged 20 commits into from
Mar 13, 2024
Merged

Conversation

ReactorScram
Copy link
Collaborator

@ReactorScram ReactorScram commented Mar 12, 2024

Right now it only works on my dev VM, not on my test VMs, due to #4053 and #4103, but it passes tests and should be safe to merge.

There's one doc fix and one script fix which are unrelated and could be their own PRs, but they'd be tiny, so I left them in here.

Ref #4106 and #3713 for the plan to fix all this by splitting the tunnel process off so that the GUI runs as a normal user.

@ReactorScram ReactorScram self-assigned this Mar 12, 2024
Copy link

vercel bot commented Mar 12, 2024

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

Name Status Preview Comments Updated (UTC)
firezone ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 13, 2024 4:35pm

Copy link

github-actions bot commented Mar 12, 2024

Terraform Cloud Plan Output

Plan: 8 to add, 7 to change, 8 to destroy.

Terraform Cloud Plan

Copy link

github-actions bot commented Mar 12, 2024

Performance Test Results

TCP

Test Name Received/s Sent/s Retransmits
direct-tcp-client2server 198.0 MiB (+1%) 198.9 MiB (+1%) 265 (+57%)
direct-tcp-server2client 199.3 MiB (+2%) 199.9 MiB (+1%) 571 (-0%)
relayed-tcp-client2server 135.4 MiB (+0%) 136.3 MiB (+0%) 146 (-13%)
relayed-tcp-server2client 140.8 MiB (-2%) 141.2 MiB (-2%) 200 (+19%)

UDP

Test Name Total/s Jitter Lost
direct-udp-client2server 50.0 MiB (+0%) 0.05ms (-27%) 0.00% (NaN%)
direct-udp-server2client 50.0 MiB (-0%) 0.03ms (-26%) 0.00% (NaN%)
relayed-udp-client2server 50.0 MiB (+0%) 0.11ms (-2%) 0.00% (NaN%)
relayed-udp-server2client 50.0 MiB (+0%) 0.07ms (+4%) 0.00% (NaN%)

@@ -1,18 +1,15 @@
#!/bin/sh
#!/usr/bin/env bash
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

all this stuff is unrelated to deep linking but happened to be changed on this branch.

Comment on lines +94 to +97
## Linux

- Dir `$HOME/.local/share/applications` (.desktop file for deep links. This dir may not even exist by default on distros like Debian)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Not complete yet but it's more than nothing.

Comment on lines 36 to 37
// TODO: Delete this before opening PR
tracing::debug!(secret = url.expose_secret(), "Parsing URL");
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

oops

tracing::warn!("Not implemented yet");
tracing::trace!(scheme = super::FZ_SCHEME, "prevents dead code warning");
Ok(Self {})
/// Create a new deep link server to make sure we're the only instance
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Single-instance doesn't work on Linux yet. It's in #3884

@ReactorScram ReactorScram marked this pull request as ready for review March 12, 2024 19:45
@@ -212,6 +217,7 @@ pub enum Cmd {

#[derive(Args)]
pub struct DeepLink {
// TODO: Should be `Secret`?
Copy link
Member

@jamilbk jamilbk Mar 12, 2024

Choose a reason for hiding this comment

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

Yeah, but we can wait until the two-process arch is done before this

@ReactorScram ReactorScram added this pull request to the merge queue Mar 13, 2024
Merged via the queue into main with commit 52cde61 Mar 13, 2024
134 checks passed
@ReactorScram ReactorScram deleted the feat/linux-register-deep-link branch March 13, 2024 18:23
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.

None yet

2 participants