GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - PastureStack/websocket-proxy: PastureStack HTTP and WebSocket proxy for node, API, and token forwarding.

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

170 Commits
170 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
backend
backend
 
 
common
common
 
 
delegation
delegation
 
 
internal/logsafe
internal/logsafe
 
 
k8s
k8s
 
 
proxy
proxy
 
 
scripts
scripts
 
 
testutils
testutils
 
 
tools
tools
 
 
vendor
vendor
 
 
.dockerignore
.dockerignore
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
COMPATIBILITY.md
COMPATIBILITY.md
 
 
DEPENDENCIES.md
DEPENDENCIES.md
 
 
Dockerfile.dapper
Dockerfile.dapper
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
ORIGIN.md
ORIGIN.md
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
go.mod
go.mod
 
 
go.sum
go.sum
 
 
main.go
main.go
 
 
main_test.go
main_test.go
 
 
ubuntu-apt.lock
ubuntu-apt.lock
 
 

Repository files navigation

PastureStack WebSocket Proxy

WebSocket Proxy bridges node backends and compatible control-platform clients for logs, statistics, exec, console, Docker socket, container proxy, subscription, and API-interceptor traffic.

PastureStack is an independent community effort to preserve, audit, and modernize the Rancher 1.6 ecosystem. It is not affiliated with or endorsed by Rancher Labs or SUSE.

Capabilities

The source package version is 0.23.20, built with Go 1.27.4 and supporting protocol-compatible Host API patch releases. Target-bound API Key tickets require exact target, operation, revision, expiry, and ticket digest matches from the trusted Engine. Handshake and periodic live checks fail closed. Persistent console secrets cannot extend an expired or revoked ticket; revocation also clears replay data. Legacy and full-without-expiry token authentication remains unchanged.

Every verified API Key stream requires an authenticated Host API connection declaring exactly key-audit-v1,key-delegation-v1, with a canonical numeric 0.38.x version whose patch is at least 5. Unknown major/minor families, duplicate or malformed declarations, prereleases, and leading-zero versions fail closed. Missing capabilities prevent forwarding any execution payload. The Proxy submits only the signed stream ticket and that connection's signed backend ticket to the Engine's fixed audit-only failure endpoint; it returns BackendAuditCapabilityUnavailable (503) only after durable acceptance, or AuditUnavailable (503) when evidence cannot be accepted. Ordinary non-Key streams do not gain this capability requirement.

An expired, signed Key-traced ticket is rejected before creating a backend or persistent session. Its fixed denial receipt uses the ticket's verified identity and an authenticated host proof; signature-only parsing is never an authorization path. Each handshake attempt has a separate audit receipt. Tokens without verified Key attribution retain their existing authentication behavior and cannot claim someone else's audit history.

Certificate discovery is schema-driven with bounded responses, timeouts, same-origin URL checks, and bounded ZIP extraction. TLS listeners require TLS 1.2 or newer. Dependency provenance is recorded in go.mod, go.sum, vendor/modules.txt, and DEPENDENCIES.md.

Configuration

Use --platform-address, PLATFORM_ACCESS_KEY, and PLATFORM_SECRET_KEY. Historical --cattle-address, PROXY_CATTLE_ADDRESS, and CATTLE_* settings remain compatibility fallbacks. Set PASTURESTACK_LOCALE=en-US or zh-TW for operator messages.

When TLS terminates in front of the Server container, set PROXY_PLATFORM_PUBLIC_ORIGIN to the exact public origin, for example https://stack.example.com. The proxy uses it only when the request host matches that configured authority, so internal HTTP hops retain public HTTPS links without trusting browser-supplied forwarding headers.

The persistent console broker uses /v1/exec/sessions/{sessionId}. Session creation and deletion require a same-origin request; WebSocket attachment authenticates with the pasturestack-console-v1, pasturestack-secret.<secret>, and pasturestack-client.<clientId> subprotocols. Secrets and backend tokens are not placed in public URLs. Replay, client count, active retention, ended-session retention, and total sessions are bounded.

Build and test

From a Docker-capable Linux host, the checksum-pinned builder uses Go 1.27.3:

make test
make build
make package

The default producer version is 0.23.20; VERSION_OVERRIDE accepts only numeric semantic versions. Packaging rejects brand or maintenance suffixes and produces the deterministic, versioned websocket-proxy-0.23.20-linux-amd64.tar.xz asset. Install only a published artifact with the matching official Engine and host-api package; scoped stream protection cannot be provided by replacing the proxy alone. Package publication and deployment are explicit operations.

See COMPATIBILITY.md, SECURITY.md, and ORIGIN.md.

License and attribution

The inherited project remains licensed under Apache License 2.0. Copyright and attribution for inherited work and vendored dependencies remain with their respective authors and contributors. PastureStack contributors claim authorship only for their own changes.

October 2026 security maintenance

Maintained Go builds select the patched Go 1.27.4 compiler without raising the existing Go language requirement. Ubuntu build/runtime stages apply the checksum-pinned ca-certificates 20260816ubuntu0.26.04.1 security package after their frozen APT baseline; the final trust store and installed version are verified. Release artifacts must pass the repository's existing checks before publication.

Future release gates retain and evaluate every product severity, including UNKNOWN. No newly reported or officially fixable product vulnerability is accepted; this policy-only update does not rebuild or replace the current immutable release.

About

PastureStack HTTP and WebSocket proxy for node, API, and token forwarding.

Topics

compatibilitydockerpasturestackreverse-proxywebsocket

Resources

Readme
Apache-2.0 license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.