runner

package
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2020 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Package runner implements the main Cookie Server logic, as defined in https://chromium.googlesource.com/apps/libapps/+/HEAD/nassh/doc/relay-protocol.md.

Notes about this implementation: * THE CURRENT IMPLEMENTATION IS ONLY A PROOF OF CONCEPT. It offers no additional security over a regular SSH session yet. * Clients MUST support at least TLS 1.2, older versions are not supported. * Client validation is not implemented, and cookies are not signed/encrypted. * Dynamic SSH Relay selection is not implemented yet.

A typical request looks like http://HOST:8022/cookie?ext=foo&path=html/nassh_google_relay.html&version=2&method=js-redirect

After authnz has completed, the server will send a redirect to chrome-extension://extid/html/nassh_google_relay.html#USER@RELAY_HOST

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runner

type Runner struct {
	// contains filtered or unexported fields
}

Runner is the main runner loop.

func New

func New(cfg *configpb.Config) (*Runner, error)

New instantiates a Runner with a *configpb.Config.

func (*Runner) Run

func (r *Runner) Run() error

Run executes the main runner loop.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL