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-client): load token from /etc/dev.firezone.client ... #4328

Merged
merged 1 commit into from
Mar 27, 2024

Conversation

ReactorScram
Copy link
Collaborator

If it's not in CLI / env var

This is more convenient for development, and it's a step towards getting the systemd service to work.

The token:

  • Can't go in /usr/lib/systemd/system/firezone-client.service because that file is updated by dpkg
  • Probably shouldn't be in the CLI because CLI args can be seen by other processes
  • Could go in env vars, but those can also be snooped in theory

It has to be stored on disk somewhere for headless operation, so we can just read it directly from disk.

…s not in CLI / env var

This is more convenient for development, and it's a step towards
getting the systemd service to work.
@ReactorScram ReactorScram added kind/feature New feature or request area/linux_client Linux client complexity/low Something that should not take more than a few hours. labels Mar 26, 2024
@ReactorScram ReactorScram self-assigned this Mar 26, 2024
Copy link

vercel bot commented Mar 26, 2024

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

1 Ignored Deployment
Name Status Preview Updated (UTC)
firezone ⬜️ Ignored (Inspect) Mar 26, 2024 9:58pm

@@ -21,3 +21,4 @@ humantime = "2.1"
resolv-conf = "0.7.0"
thiserror = "1.0.57"
tokio = { version = "1.36", default-features = false, features = ["rt", "macros", "signal"] }
url = { version = "2.3.1", default-features = false }
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm not sure how it's deserializing URLs if I turned off all the features. I wonder if it's one of those glitches where this package doesn't ask for a feature, but another package in the workspace does, so we get a feature we didn't ask for and silently succeed when technically the Cargo.toml manifest is not correct.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm not sure if that's consider a glitch, but I think it's that

Copy link

Terraform Cloud Plan Output

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

Terraform Cloud Plan

@ReactorScram ReactorScram marked this pull request as ready for review March 26, 2024 22:00
Copy link

Performance Test Results

TCP

Test Name Received/s Sent/s Retransmits
direct-tcp-client2server 218.7 MiB (-3%) 220.4 MiB (-3%) 350 (+68%)
direct-tcp-server2client 222.6 MiB (+0%) 224.4 MiB (+0%) 210 (-13%)
relayed-tcp-client2server 148.6 MiB (+1%) 149.3 MiB (+1%) 138 (+0%)
relayed-tcp-server2client 150.6 MiB (-2%) 151.1 MiB (-2%) 189 (0%)

UDP

Test Name Total/s Jitter Lost
direct-udp-client2server 50.0 MiB (-0%) 0.04ms (+15%) 0.00% (NaN%)
direct-udp-server2client 50.0 MiB (+0%) 0.01ms (+7%) 0.00% (NaN%)
relayed-udp-client2server 50.0 MiB (+0%) 0.14ms (+53%) 0.00% (NaN%)
relayed-udp-server2client 50.0 MiB (+0%) 0.06ms (+15%) 0.00% (NaN%)

Copy link
Collaborator

@conectado conectado 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 Mar 27, 2024
Merged via the queue into main with commit 28bb826 Mar 27, 2024
152 checks passed
@ReactorScram ReactorScram deleted the feat/linux-token-from-etc branch March 27, 2024 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/linux_client Linux client complexity/low Something that should not take more than a few hours. kind/feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants