Geo-scale, next-generation peer-to-peer sharing platform built on top of OpenZiti.
Go to file
2024-10-04 15:38:47 -04:00
.github vite build refactoring (#221) 2024-10-04 12:10:53 -04:00
agent agent console iteration (#221) 2024-10-04 15:38:47 -04:00
bin next.js -> vite.js (#221) 2024-10-04 11:20:11 -04:00
build v1.0.x series 2024-09-18 12:12:21 -04:00
cmd/zrok add new 'headless' config option (#224) 2024-09-26 14:34:55 -04:00
controller chore: update invite.go 2024-09-25 18:48:39 +09:00
docker prune docker instance troubleshooting advice 2024-08-20 11:03:06 -04:00
docs Merge pull request #753 from openziti/bugfix-linux-service-private-closed 2024-09-26 16:15:16 -04:00
drives
endpoints web shares (#463) 2024-09-10 14:11:43 -04:00
environment add new 'headless' config option (#224) 2024-09-26 14:34:55 -04:00
etc frontend docs (#716) 2024-08-06 12:26:01 -04:00
google/api integrated openapi generation (#759) 2024-10-01 11:49:37 -04:00
nfpm tidy examples 2024-09-21 11:51:49 -04:00
rest_client_zrok elaborating the grants handler (#744) 2024-09-05 13:34:07 -04:00
rest_model_zrok
rest_server_zrok openapi spec 0.3.0 -> 1.0.0 2024-09-18 12:15:35 -04:00
sdk openapi spec 0.3.0 -> 1.0.0 2024-09-18 12:15:35 -04:00
specs openapi spec 0.3.0 -> 1.0.0 2024-09-18 12:15:35 -04:00
tui
ui new '/grants' endpoint for synchronizing grants for an account (#744) 2024-09-04 16:10:19 -04:00
util
website style getting started cards 2024-08-30 17:58:26 -04:00
.flake8
.gitattributes
.gitignore
.goreleaser-darwin.yml use goreleaser config spec v2 2024-07-24 16:11:59 -04:00
.goreleaser-linux-amd64.yml rename goreleaser amd64 config to match other archs 2024-07-24 16:41:13 -04:00
.goreleaser-linux-arm64.yml use goreleaser config spec v2 2024-07-24 16:11:59 -04:00
.goreleaser-linux-armel.yml switch 32bit release to armhf dynamically linked 2024-07-25 13:54:05 -04:00
.goreleaser-linux-armhf.yml switch 32bit release to armhf dynamically linked 2024-07-25 13:54:05 -04:00
.goreleaser-release.yml use goreleaser config spec v2 2024-07-24 16:11:59 -04:00
.goreleaser-windows.yml use goreleaser config spec v2 2024-07-24 16:11:59 -04:00
.markdownlint.yaml
ACKNOWLEDGEMENTS.md
BUILD.md announce armhf, armel build fixes 2024-07-25 14:59:10 -04:00
CHANGELOG.md Merge branch 'main' into v1_0_0 2024-10-03 12:54:40 -04:00
CODE_OF_CONDUCT.md
CONTRIBUTING.md
go.mod update middleware for agent ui to work properly on windows (#221) 2024-10-04 12:59:16 -04:00
go.sum update middleware for agent ui to work properly on windows (#221) 2024-10-04 12:59:16 -04:00
LICENSE
openapitools.json updated openapi spec to include new admin api endpoint for creating accounts (#734) 2024-08-19 11:33:15 -04:00
README.md
RELEASING.md
SECURITY.md

zrok

zrok is a next-generation, peer-to-peer sharing platform built on top of OpenZiti, a programmable zero-trust network overlay. zrok is a Ziti Native Application.

zrok facilitates sharing resources both publicly and privately. Public sharing allows you to share zrok resources with non-zrok users over the public internet. Private sharing allows you to directly share your resources peer-to-peer with other zrok users without changing your security or firewall settings.

Like other offerings in this space, zrok allows users to share tunnels for HTTP, TCP and UDP network resources. zrok additionally allows users to easily and rapidly share files, web content, and custom resources in a peer-to-peer manner.

zrok is an extensible platform for sharing. Initially we're targeting technical users. Super-simple sharing for end users is planned and in the backlog.

zrok Web Console

Frictionless

You can be up and sharing using the zrok.io service in minutes. Here is a synopsis of what's involved:

  • Download the binary for your platform here
  • zrok invite to create an account with the service
  • zrok enable to enable your shell environment for sharing with the service

And then... sharing...

Easily share private network resources with public internet users, securely, without having to alter any of your local network configuration:

$ zrok share public localhost:8080

zrok share public

$ curl -s https://dslno640nct4.share.zrok.io | head
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1"/>
    <meta name="theme-color" content="#000000"/>
    <meta name="description" content="zrok ui"/>
    <link rel="preconnect" href="https://fonts.googleapis.com">

Share "network drives" with public and private users running on Windows, macOS, or Linux systems:

$ zrok share public --backend-mode drive ~/Repos/zrok

zrok share public -b drive

Mounting and working with shared drives is simple, and works with any applications on the end users' systems:

mounted zrok drive

See the Concepts and Getting Started Guide for a full overview.

The zrok SDK

zrok includes an SDK that allows you to embed zrok sharing capabilities into your own applications. If you're familiar with a golang net.Conn and net.Listener, you'll be right at home with our SDK.

A Simple zrok Sharing Service

// load enabled zrok environment
root, err := environment.LoadRoot()

// request a share for your resource
shr, err := sdk.CreateShare(root, &sdk.ShareRequest{
    BackendMode: sdk.TcpTunnelBackendMode,
    ShareMode:   sdk.PrivateShareMode,
	// ...
})

// accept requests for your resource
listener, err := sdk.NewListener(shr.Token, root)

A Simple zrok Client

// load enabled zrok environment
root, err := environment.LoadRoot()

// request access to a shared zrok resource
acc, err := sdk.CreateAccess(root, &sdk.AccessRequest{ShareToken: shrToken})

// establish a connection to the resource directly
conn, err := sdk.NewDialer(shrToken, root)

This blog post provides more details for getting started with the zrok SDK.

Self-Hosting

zrok is designed to scale up to support extremely large service instances. zrok.io is a public service instance operated by NetFoundry using the same code base that is available to self-hosted environments.

zrok is also designed to scale down to support extremely small deployments. Run zrok and OpenZiti on a Raspberry Pi!

The single zrok binary contains everything you need to operate zrok environments and also host your own service instances. Just add an OpenZiti network and you're up and running.

See the Self-Hosting Guide for details on getting your own zrok service instance running.

zrok Office Hours

We maintain a growing playlist of videos focusing on various aspects of zrok. This includes the "office hours" series, which are longer-format videos digging into the implementation of zrok and showcasing some of the latest features and capabilities:

zrok Office Hours

Building

If you are interested in building zrok for yourself instead of using a released package, please refer to BUILD.md

Contributing

If you'd like to contribute back to zrok, that'd be great. Please see our CONTRIBUTING.md page and abide by the CODE_OF_CONDUCT.md.