-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[self-hosted] add netbird server #5232
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
Changes from 75 commits
Commits
Show all changes
87 commits
Select commit
Hold shift + click to select a range
e6e12b4
Add automatic WebSocket fallback for HTTP/1.1-only environments
shyam0904a 1ed8154
Add comment to empty EnableWebSocketFallback function for SonarQube
shyam0904a 4fffdbb
Address CodeRabbit review comments
shyam0904a 33974ff
Address additional CodeRabbit nitpicks
shyam0904a 44e9619
Merge branch 'netbirdio:main' into main
shyam0904a 22904ae
Merge branch 'netbirdio:main' into main
shyam0904a b0525d8
Merge branch 'netbirdio:main' into main
shyam0904a 0a1a20a
Embedded STUN initial commit
braginini 7e359e1
Add logs
braginini d346bb4
Update stun log
braginini 861b15e
Update stun log
braginini 827a54b
Update stun log
braginini cc39e5b
Add STUN benchmark test
braginini adb1f9b
Reduce STUN benchmark test time
braginini fac75e4
Fix review issues
braginini 8ff4afd
Fix lint issues
braginini 08e3620
Inject stun listener to relay
braginini 7df8461
Fix go.sum
braginini f1b88f1
Fix log
braginini 2e85d60
Apply custom log level
braginini 1a20756
Apply custom stun log formatter
braginini 6d202e4
Support multiple STUN ports
braginini 1a68dca
Identify which STUN listener received a msg
braginini c1c627e
Handle cancellation of the context in stun server
braginini 1941ff9
Embedded STUN handling improvements
braginini 40e65d9
Coderabbit review notes
braginini 2d18ec3
The config now validates:
braginini 6cc4432
Simplify execute()
braginini c9c6340
Extract start servers
braginini 111b418
Remove error shadowing
braginini 75efdf6
Remove empty conn list check
braginini be7c945
Remove comment contradiction
braginini 7aec863
Fix tests
braginini b611598
Fix tests
braginini 3910c14
Implement combined server supporting Management, Signal, Relay, and S…
pappz 2c4e62f
Merge remote-tracking branch 'origin/main' into combined
braginini b9b0c1b
Add initial working design of a homelab package
braginini a7da4ad
Simplified config
braginini dd31f4f
add "lego" config
braginini f0dc88e
Update getting started
braginini a615935
Update getting started
braginini 323d33a
Add docker file for homelab
braginini e398aa5
Fix NETBIRD_SERVER_IMAG
braginini 19702cb
Fix getting started
braginini afc9ee7
Remove metrics
braginini ed433d0
Fix signal metrics
braginini dcc838c
Fix getting started
braginini f48f2b6
Fix getting started
braginini 4c9325c
Fix exposed port protocol
braginini 0ab03db
Add config log
braginini a64d912
Add more logs
braginini 0abcc36
Fix relay address sent to clients
braginini 64378d9
Remove unnecessary log messages
braginini e4224c7
Split components in the log
braginini 1831f30
Configure components log level
braginini a04cbaa
Add relay conn logging
braginini 39eb5b3
Fix config structure
braginini 5ace0f9
remove client relay transport check
braginini 9917a4d
Add multiple stun ports
braginini be2da83
Add default stun port
braginini c707d8d
Now they correctly inherit from server.logLevel via ApplySimplifiedD…
braginini 426bbb0
extract components in logs
braginini d3221d7
Remove log changes
braginini be2a2f9
Fix lint
braginini df6e8d4
Fix sonar
braginini 0ab8465
Rename homelab to combined
braginini ea3ac51
Remove client dialer changes
braginini ddb5400
Remove client dialer changes
braginini 889ffc1
Fix getting-started
braginini 39d0c53
Fix encryption key output
braginini f54dd6e
Rejecting invalid CredentialsTTL values
braginini 2454a84
netbird to netbird-server
braginini 538009f
Fix getting-started wrong container name
braginini 4d9337b
Fix signal to use env variables on boot
braginini cc8eb6f
Print env variables on start
braginini ca8e2a2
Use NB_ in store instead of NETBIRD_. Add config of the store dsn
braginini 8701490
Output DSN in teh config print
braginini e42049e
Fix metrics to include prefix
braginini 0ae0d37
Update getting started Caddy files
braginini 51a8626
Update release files to include new docker image
braginini 9b5ca46
Fix reverse proxy configs
braginini e8a457c
Fix getting started
braginini 2efc613
Fix traefik read timeout
braginini 3c81837
Simplify configs
braginini cb78435
Remove unnecessary auth enabled
braginini d33cb52
Remote dex storage from the config
braginini 77abc90
Remove built-in Caddy option
braginini File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| FROM ubuntu:24.04 | ||
| RUN apt update && apt install -y ca-certificates && rm -fr /var/cache/apt | ||
| ENTRYPOINT [ "/go/bin/netbird-server" ] | ||
| CMD ["--config", "/etc/netbird/config.yaml"] | ||
| COPY netbird-server /go/bin/netbird-server | ||
Oops, something went wrong.
Oops, something went wrong.
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.
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.
Container runs as root; add a non-root user and reorder layers.
Several improvements for this Dockerfile:
root(flagged by Trivy DS002). Add a dedicated user.COPYshould precedeENTRYPOINT/CMDfor readability and better cache invalidation ordering./var/lib/apt/lists/*to minimize image size.Proposed fix
🧰 Tools
🪛 Trivy (0.58.1)
[error] 1-1: Image user should not be 'root'
Specify at least 1 USER command in Dockerfile with non-root user as argument
Rule: DS002
Learn more
(IaC/Dockerfile)
🤖 Prompt for AI Agents