-
Notifications
You must be signed in to change notification settings - Fork 385
feat(gateway): create debian package #10537
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
thomaseizinger
commented
Oct 9, 2025
2acf159 to
6c17b75
Compare
41ada73 to
42faf7e
Compare
4 tasks
f98e684 to
4dc8e5b
Compare
8e802df to
3eabeb6
Compare
This comment was marked as resolved.
This comment was marked as resolved.
4425aa5 to
99c0053
Compare
.deb
jamilbk
reviewed
Oct 24, 2025
| ); | ||
| } | ||
|
|
||
| let mut token = String::with_capacity(512); // Our tokens are ~270 characters, grab the next power of 2. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be a good idea here to use secrecy or otherwise zeroize this on drop, considering Gateway tokens by default today don't expire.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
With this PR we add
cargo-debto our CI pipeline and build a debian package for the Gateway. The debian package comes with several configuration files that make it easy for admins to start and maintain a Gateway installation:/etc/firezone/gateway-tokenand passed as a systemd credential. This allows us to set the permissions for this file to0400and have it owned byroot:root./etc/firezone/gateway-env.sysusersconfiguration file ensures thefirezoneuser and group are present on the system.tmpfilesconfiguration file ensures the necessary directories are present.All of the above is automatically installed and configured using the post-installation script which is called by
aptonce the package is installed.In addition to the Gateway, we also package a first version of the
firezone-cli. Right now,firezone-cli(installed asfirezone) has three subcommands:gateway authenticate: Asks for the Gateway's token and installs it at/etc/firezone/gateway-token. The user doesn't have to know how we manage this token and can trust that we are using safe defaults.gateway enable: Enables and starts the systemd service.gateway disable: Disables the systemd service.Right now, the
.debfile is only uploaded to the preview APT repository and not attached to the release. It should therefore not yet be user-visible unless somebody pokes around a lot, meaning we can defer documentation to a later PR and start testing it from the preview repository for our own purposes.Related: #10598
Resolves: #8484
Resolves: #10681