Repository navigation
fix(tunnel): forward advertised TCP and UDP ports through tsnet #765
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
ValgulNecron
merged 16 commits into
GameplanePanel:master
from
Baylem:fix/audit-tailscale-forwarding
Oct 27, 2026
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
9f2ce75
fix(tunnel): forward advertised Tailscale TCP and UDP traffic
Baylem 7ce6915
merge: include shared web build prerequisite
Baylem fd20432
fix: normalize relay diagnostics and generated CRD inputs
Baylem 2d151dd
fix(e2e): read metrics probes from completed pod logs
Baylem 0139ddd
fix(ci): integrate upstream selection and current Tailscale SDK
Baylem f2b9be5
chore: synchronize CRDs with workspace generator
Baylem 66f6e7f
ci: use Go 1.27 compatible golangci-lint
Baylem 1853ce5
test: synchronize closed RCON response fixtures
Baylem 51a58b8
ci: align lint tooling with Go 1.27 export data
Baylem cc0e175
docs: classify lint tool dependency versions
Baylem 0d6f9b8
fix(operator): use explicit waits for expected reconcile retries
Baylem 7c08c87
fix(agent): confine mod deletion to an open directory root
Baylem 39882e7
fix: reset tailscale retries after sustained health
Baylem 35882a4
fix: align tailscale condition documentation and coverage
Baylem 8309db7
fix(tunnel): retain active UDP sessions and validate tags
Baylem eb8bcde
chore: reconcile Tailscale resources with upstream
Baylem 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
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
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
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
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
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
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
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,75 @@ | ||
| package mods | ||
|
|
||
| import ( | ||
| "fmt" | ||
| "os" | ||
| "path/filepath" | ||
| "strings" | ||
| ) | ||
|
|
||
| // openModsRoot anchors removal to the configured data volume. Open each mods | ||
| // directory component without accepting symlink aliases, then retain its handle | ||
| // so a later rename cannot redirect removal or its manifest update. | ||
| func (h *handler) openModsRoot() (*os.Root, error) { | ||
| rel, err := filepath.Rel(h.dataRoot, h.dir) | ||
| if err != nil || !filepath.IsLocal(rel) { | ||
| return nil, ErrEscapesRoot | ||
| } | ||
| root, err := os.OpenRoot(h.dataRoot) | ||
| if err != nil { | ||
| return nil, fmt.Errorf("open mod data root: %w", err) | ||
| } | ||
| if rel == "." { | ||
| return root, nil | ||
| } | ||
| for _, component := range strings.Split(rel, string(os.PathSeparator)) { | ||
| next, err := openModDirectory(root, component) | ||
| _ = root.Close() | ||
| if err != nil { | ||
| return nil, err | ||
| } | ||
| root = next | ||
| } | ||
| return root, nil | ||
| } | ||
|
|
||
| func openModDirectory(parent *os.Root, name string) (*os.Root, error) { | ||
| info, err := parent.Lstat(name) | ||
| if err != nil { | ||
| return nil, fmt.Errorf("inspect mod directory: %w", err) | ||
| } | ||
| if info.Mode()&os.ModeSymlink != 0 || !info.IsDir() { | ||
| return nil, ErrEscapesRoot | ||
| } | ||
| root, err := parent.OpenRoot(name) | ||
| if err != nil { | ||
| return nil, fmt.Errorf("open mod directory: %w", err) | ||
| } | ||
| opened, err := root.Stat(".") | ||
| if err != nil || !os.SameFile(info, opened) { | ||
| _ = root.Close() | ||
| return nil, ErrEscapesRoot | ||
| } | ||
| return root, nil | ||
| } | ||
|
|
||
| // removeModEntry never resolves the final name to a symlink's referent. Existing | ||
| // links are rejected; a link swapped in after Lstat is only unlinked by Remove | ||
| // or RemoveAll. Recursive removal likewise never follows child symlinks. | ||
| func removeModEntry(root *os.Root, name string, recursive bool) error { | ||
| name, err := safeName(name) | ||
| if err != nil { | ||
| return fmt.Errorf("invalid mod name: %w", err) | ||
| } | ||
| info, err := root.Lstat(name) | ||
| if err != nil { | ||
| return fmt.Errorf("inspect mod entry: %w", err) | ||
| } | ||
| if info.Mode()&os.ModeSymlink != 0 { | ||
| return ErrEscapesRoot | ||
| } | ||
| if recursive { | ||
| return root.RemoveAll(name) | ||
| } | ||
| return root.Remove(name) | ||
| } |
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.
Uh oh!
There was an error while loading. Please reload this page.