mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 18:18:55 +00:00
Bumps the windows group in /rust with 2 updates: [windows](https://github.com/microsoft/windows-rs) and [windows-implement](https://github.com/microsoft/windows-rs). Updates `windows` from 0.56.0 to 0.57.0 <details> <summary>Commits</summary> <ul> <li><a href="15947886be"><code>1594788</code></a> Release 0.57.0 (<a href="https://redirect.github.com/microsoft/windows-rs/issues/3081">#3081</a>)</li> <li><a href="21d17ab998"><code>21d17ab</code></a> Add WinRT <code>noexcept</code> support (<a href="https://redirect.github.com/microsoft/windows-rs/issues/3070">#3070</a>)</li> <li><a href="7d94387a7c"><code>7d94387</code></a> Optimize <code>IUnknown</code> identity checks (<a href="https://redirect.github.com/microsoft/windows-rs/issues/3073">#3073</a>)</li> <li><a href="4572dcd6ae"><code>4572dcd</code></a> Remove <code>unused_qualifications</code> (<a href="https://redirect.github.com/microsoft/windows-rs/issues/3078">#3078</a>)</li> <li><a href="a623c3f27f"><code>a623c3f</code></a> Fix warnings from Rust 1.80.0 nightly (<a href="https://redirect.github.com/microsoft/windows-rs/issues/3074">#3074</a>)</li> <li><a href="0940e1f635"><code>0940e1f</code></a> Check for null pointers in core <code>IInspectable</code> implementation (<a href="https://redirect.github.com/microsoft/windows-rs/issues/3057">#3057</a>)</li> <li><a href="8b4a185e56"><code>8b4a185</code></a> Use default rustfmt config for most crates (<a href="https://redirect.github.com/microsoft/windows-rs/issues/3064">#3064</a>)</li> <li><a href="b8586add80"><code>b8586ad</code></a> Fix Debug impls for COM interfaces (<a href="https://redirect.github.com/microsoft/windows-rs/issues/3066">#3066</a>)</li> <li><a href="dbc3932513"><code>dbc3932</code></a> Fix bug in COM interface chain support (<a href="https://redirect.github.com/microsoft/windows-rs/issues/3060">#3060</a>)</li> <li><a href="71f8c2a4d9"><code>71f8c2a</code></a> Fix handling of COM interfaces with same method name (<a href="https://redirect.github.com/microsoft/windows-rs/issues/3059">#3059</a>)</li> <li>Additional commits viewable in <a href="https://github.com/microsoft/windows-rs/compare/0.56.0...0.57.0">compare view</a></li> </ul> </details> <br /> Updates `windows-implement` from 0.56.0 to 0.57.0 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/microsoft/windows-rs/releases">windows-implement's releases</a>.</em></p> <blockquote> <h2>0.57.0</h2> <p>This release includes updates to a number of crates.</p> <p>It includes major updates to the following:</p> <ul> <li><code>riddle</code> 0.57.0</li> <li><code>windows</code> 0.57.0</li> <li><code>windows-bindgen</code> 0.57.0</li> <li><code>windows-core</code> 0.57.0</li> <li><code>windows-implement</code> 0.57.0</li> <li><code>windows-interface</code> 0.57.0</li> <li><code>windows-metadata</code> 0.57.0</li> </ul> <p>It also includes minor updates to the following:</p> <ul> <li><code>windows-result</code> 0.1.2</li> <li><code>windows-registry</code> 0.1.2</li> </ul> <p>This includes various improvements and fixes to code generation, compliance with new Rust warnings, COM authoring support helpers, and more.</p> <p>This release also includes the first published version of the <code>cppwinrt</code> crate.</p> <h2>What's Changed</h2> <ul> <li>Workflow improvements by <a href="https://github.com/kennykerr"><code>@kennykerr</code></a> in <a href="https://redirect.github.com/microsoft/windows-rs/pull/2994">microsoft/windows-rs#2994</a></li> <li>Workflow improvements 2 by <a href="https://github.com/kennykerr"><code>@kennykerr</code></a> in <a href="https://redirect.github.com/microsoft/windows-rs/pull/2998">microsoft/windows-rs#2998</a></li> <li>Workflow improvements 3 by <a href="https://github.com/kennykerr"><code>@kennykerr</code></a> in <a href="https://redirect.github.com/microsoft/windows-rs/pull/3000">microsoft/windows-rs#3000</a></li> <li>Workflow improvements 4 by <a href="https://github.com/kennykerr"><code>@kennykerr</code></a> in <a href="https://redirect.github.com/microsoft/windows-rs/pull/3001">microsoft/windows-rs#3001</a></li> <li>Add <code>as_raw</code> to <code>windows-registry</code> by <a href="https://github.com/kennykerr"><code>@kennykerr</code></a> in <a href="https://redirect.github.com/microsoft/windows-rs/pull/3003">microsoft/windows-rs#3003</a></li> <li>Add Linux smoke test by <a href="https://github.com/kennykerr"><code>@kennykerr</code></a> in <a href="https://redirect.github.com/microsoft/windows-rs/pull/3005">microsoft/windows-rs#3005</a></li> <li>Add non-windows support for PWSTR and PCWSTR by <a href="https://github.com/tyilo"><code>@tyilo</code></a> in <a href="https://redirect.github.com/microsoft/windows-rs/pull/3004">microsoft/windows-rs#3004</a></li> <li>Use generated <code>E_POINTER</code> constant in <code>windows-core</code> by <a href="https://github.com/kennykerr"><code>@kennykerr</code></a> in <a href="https://redirect.github.com/microsoft/windows-rs/pull/3008">microsoft/windows-rs#3008</a></li> <li>Use prebuilt gnullvm target by <a href="https://github.com/mati865"><code>@mati865</code></a> in <a href="https://redirect.github.com/microsoft/windows-rs/pull/3007">microsoft/windows-rs#3007</a></li> <li>Eliminate default features for JSON samples by <a href="https://github.com/kennykerr"><code>@kennykerr</code></a> in <a href="https://redirect.github.com/microsoft/windows-rs/pull/3012">microsoft/windows-rs#3012</a></li> <li>Add support for freeing handles automatically by <a href="https://github.com/kennykerr"><code>@kennykerr</code></a> in <a href="https://redirect.github.com/microsoft/windows-rs/pull/3013">microsoft/windows-rs#3013</a></li> <li>Addressing feedback on handle ownership by <a href="https://github.com/kennykerr"><code>@kennykerr</code></a> in <a href="https://redirect.github.com/microsoft/windows-rs/pull/3014">microsoft/windows-rs#3014</a></li> <li>Bump ejs from 3.1.9 to 3.1.10 in /web/features by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/microsoft/windows-rs/pull/3017">microsoft/windows-rs#3017</a></li> <li>Reconfigure environment for GNU toolchain by <a href="https://github.com/riverar"><code>@riverar</code></a> in <a href="https://redirect.github.com/microsoft/windows-rs/pull/3019">microsoft/windows-rs#3019</a></li> <li>Remove workaround for empty structs by <a href="https://github.com/kennykerr"><code>@kennykerr</code></a> in <a href="https://redirect.github.com/microsoft/windows-rs/pull/3016">microsoft/windows-rs#3016</a></li> <li>Derive <code>Copy</code>, <code>Clone</code>, and <code>Debug</code> for handles by <a href="https://github.com/kennykerr"><code>@kennykerr</code></a> in <a href="https://redirect.github.com/microsoft/windows-rs/pull/3015">microsoft/windows-rs#3015</a></li> <li>Fix for Clippy <code>HSTRING</code> interior mutability warnings in nightly by <a href="https://github.com/riverar"><code>@riverar</code></a> in <a href="https://redirect.github.com/microsoft/windows-rs/pull/3021">microsoft/windows-rs#3021</a></li> <li>Handle new <code>unexpected_cfgs</code> warnings by <a href="https://github.com/kennykerr"><code>@kennykerr</code></a> in <a href="https://redirect.github.com/microsoft/windows-rs/pull/3022">microsoft/windows-rs#3022</a></li> <li>Update jsonschema requirement from 0.17 to 0.18 by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/microsoft/windows-rs/pull/3023">microsoft/windows-rs#3023</a></li> <li>Add <code>Ref</code> and <code>OutRef</code> to enhance COM authoring support by <a href="https://github.com/kennykerr"><code>@kennykerr</code></a> in <a href="https://redirect.github.com/microsoft/windows-rs/pull/3025">microsoft/windows-rs#3025</a></li> <li>Simplify derefencing <code>Ref</code> interface parameters by <a href="https://github.com/kennykerr"><code>@kennykerr</code></a> in <a href="https://redirect.github.com/microsoft/windows-rs/pull/3027">microsoft/windows-rs#3027</a></li> <li>Add <code>from_raw</code> to <code>windows-registry</code> by <a href="https://github.com/kennykerr"><code>@kennykerr</code></a> in <a href="https://redirect.github.com/microsoft/windows-rs/pull/3034">microsoft/windows-rs#3034</a></li> <li>Simplify <code>windows-registry</code> readme by <a href="https://github.com/kennykerr"><code>@kennykerr</code></a> in <a href="https://redirect.github.com/microsoft/windows-rs/pull/3035">microsoft/windows-rs#3035</a></li> <li>Type name deferral in <code>windows-metadata</code> and <code>windows-bindgen</code> by <a href="https://github.com/kennykerr"><code>@kennykerr</code></a> in <a href="https://redirect.github.com/microsoft/windows-rs/pull/3039">microsoft/windows-rs#3039</a></li> <li>Streamline <code>TypeName</code> to support pattern matching by <a href="https://github.com/kennykerr"><code>@kennykerr</code></a> in <a href="https://redirect.github.com/microsoft/windows-rs/pull/3040">microsoft/windows-rs#3040</a></li> <li>Derive standard traits for structs by <a href="https://github.com/kennykerr"><code>@kennykerr</code></a> in <a href="https://redirect.github.com/microsoft/windows-rs/pull/3041">microsoft/windows-rs#3041</a></li> <li>Add missing MSRV workflows for newer lib crates by <a href="https://github.com/kennykerr"><code>@kennykerr</code></a> in <a href="https://redirect.github.com/microsoft/windows-rs/pull/3042">microsoft/windows-rs#3042</a></li> <li>Provide an explicit <code>ComObject<T></code> type that represents a heap-allocated COM object by <a href="https://github.com/sivadeilra"><code>@sivadeilra</code></a> in <a href="https://redirect.github.com/microsoft/windows-rs/pull/3043">microsoft/windows-rs#3043</a></li> <li>bindgen/default: Improve formatting of the readme by <a href="https://github.com/MarijnS95"><code>@MarijnS95</code></a> in <a href="https://redirect.github.com/microsoft/windows-rs/pull/3045">microsoft/windows-rs#3045</a></li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="15947886be"><code>1594788</code></a> Release 0.57.0 (<a href="https://redirect.github.com/microsoft/windows-rs/issues/3081">#3081</a>)</li> <li><a href="21d17ab998"><code>21d17ab</code></a> Add WinRT <code>noexcept</code> support (<a href="https://redirect.github.com/microsoft/windows-rs/issues/3070">#3070</a>)</li> <li><a href="7d94387a7c"><code>7d94387</code></a> Optimize <code>IUnknown</code> identity checks (<a href="https://redirect.github.com/microsoft/windows-rs/issues/3073">#3073</a>)</li> <li><a href="4572dcd6ae"><code>4572dcd</code></a> Remove <code>unused_qualifications</code> (<a href="https://redirect.github.com/microsoft/windows-rs/issues/3078">#3078</a>)</li> <li><a href="a623c3f27f"><code>a623c3f</code></a> Fix warnings from Rust 1.80.0 nightly (<a href="https://redirect.github.com/microsoft/windows-rs/issues/3074">#3074</a>)</li> <li><a href="0940e1f635"><code>0940e1f</code></a> Check for null pointers in core <code>IInspectable</code> implementation (<a href="https://redirect.github.com/microsoft/windows-rs/issues/3057">#3057</a>)</li> <li><a href="8b4a185e56"><code>8b4a185</code></a> Use default rustfmt config for most crates (<a href="https://redirect.github.com/microsoft/windows-rs/issues/3064">#3064</a>)</li> <li><a href="b8586add80"><code>b8586ad</code></a> Fix Debug impls for COM interfaces (<a href="https://redirect.github.com/microsoft/windows-rs/issues/3066">#3066</a>)</li> <li><a href="dbc3932513"><code>dbc3932</code></a> Fix bug in COM interface chain support (<a href="https://redirect.github.com/microsoft/windows-rs/issues/3060">#3060</a>)</li> <li><a href="71f8c2a4d9"><code>71f8c2a</code></a> Fix handling of COM interfaces with same method name (<a href="https://redirect.github.com/microsoft/windows-rs/issues/3059">#3059</a>)</li> <li>Additional commits viewable in <a href="https://github.com/microsoft/windows-rs/compare/0.56.0...0.57.0">compare view</a></li> </ul> </details> <br /> Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore <dependency name> major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself) - `@dependabot ignore <dependency name> minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself) - `@dependabot ignore <dependency name>` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself) - `@dependabot unignore <dependency name>` will remove all of the ignore conditions of the specified dependency - `@dependabot unignore <dependency name> <ignore condition>` will remove the ignore condition of the specified dependency and ignore conditions </details> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Reactor Scram <ReactorScram@users.noreply.github.com>
headless-client
This crate acts as the CLI / headless Client, and the privileged tunnel service for the GUI Client, for both Linux and Windows.
It is built as:
headless-clientto act as the Linux / Windows headless Clientfirezone-headless-clientto act as the Linux tunnel service, Windows headless Client, or Windows tunnel service
In general, the brand name should be part of the file name, but the OS name should not be.
Running
To run the headless Client:
- Generate a new Service account token from the "Actors -> Service Accounts" section of the admin portal and save it in your secrets manager. The Firezone Linux client requires a service account at this time.
- Ensure
/etc/dev.firezone.client/tokenis only readable by root (i.e.chmod 400) - Ensure
/etc/dev.firezone.client/tokencontains the Service account token. The Client needs this before it can start - Set
FIREZONE_IDto a unique string to identify this client in the portal, e.g.export FIREZONE_ID=$(uuidgen). The client requires this variable at startup. - Set
LOG_DIRto a suitable directory for writing logsexport LOG_DIR=/tmp/firezone-logs mkdir $LOG_DIR - Now, you can start the client with:
./firezone-headless-client standalone
If you're running as an unprivileged user, you'll need the CAP_NET_ADMIN
capability to open /dev/net/tun. You can add this to the client binary with:
sudo setcap 'cap_net_admin+eip' /path/to/firezone-headless-client
Building
Assuming you have Rust installed, you can build the headless Client with:
cargo build --release -p firezone-headless-client
The binary will be in target/release/firezone-headless-client
The release on Github are built with musl. To build this way, use:
rustup target add x86_64-unknown-linux-musl
sudo apt-get install musl-tools
cargo build --release -p headless-client --target x86_64-unknown-linux-musl
Files
/etc/dev.firezone.client/token- The service account token, provided by the human administrator. Must be owned by root and have 600 permissions (r/w by owner, nobody else can read) If present, the tunnel will ignore any GUI Client and run as a headless Client. If absent, the tunnel will wait for commands from a GUI Client/usr/bin/firezone-headless-client- The tunnel binary. This must run as root so it can modify the system's DNS settings. If DNS is not needed, it only needs CAP_NET_ADMIN./usr/lib/systemd/system/firezone-headless-client.service- A systemd service unit, installed by the deb package./var/lib/dev.firezone.client/config/firezone-id- The device ID, unique across an organization. The tunnel will generate this if it's not present.