Repository navigation
feat(security): add auth token flag to protect self-hosted server - #116
Merged
Merged
Conversation
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #116 +/- ##
============================================
+ Coverage 62.77% 73.44% +10.66%
============================================
Files 15 15
Lines 814 836 +22
============================================
+ Hits 511 614 +103
+ Misses 272 192 -80
+ Partials 31 30 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…oken # Conflicts: # internal/provider/selfhosted.go # internal/provider/selfhosted_test.go
kernelshard
added a commit
that referenced
this pull request
Nov 6, 2026
* fix(deploy): enable on_demand in Caddyfile for dynamic subdomain SSL (#112) (#114) Co-authored-by: Samiul Sk <9149283+kernelshard@users.noreply.github.com> * fix(provider/selfhosted): server-advertised max connections and cap standby pool (#113) * fix(provider/selfhosted): cap data connections to 10 and eliminate dial spin (#55) * feat(provider/selfhosted): negotiate server-advertised max connections (#55) --------- Co-authored-by: Samiul Sk <9149283+kernelshard@users.noreply.github.com> * feat(security): add auth token flag to protect self-hosted server (#116) * feat(security): add auth token flag to protect self-hosted server (#63) * test: add unit tests for cli commands and tunnel service --------- Co-authored-by: Samiul Sk <9149283+kernelshard@users.noreply.github.com> * docs: document optional auth token for self-hosted server * chore(release): bump version to v0.6.3 and update documentation --------- Co-authored-by: Samiul Sk <9149283+kernelshard@users.noreply.github.com>
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
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.
Adds an optional auth token flag and environment variable to protect self-hosted servers from unauthorized subdomain registrations.
• Server:
--tokenflag andEXPOSE_SERVER_TOKENenv fallback• Client:
--tokenflag andEXPOSE_SERVER_TOKENenv fallback• Rejects handshake with
ErrUnauthorizedusing constant-time comparison (crypto/subtle)• Fully backwards compatible when server has no token configured
• Adds unit tests for rejection, success handshake, and CLI commands
Closes #63