bastion

package
v1.19.5 Latest Latest
Warning

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

Go to latest
Published: May 20, 2023 License: Apache-2.0 Imports: 43 Imported by: 0

Documentation

Index

Constants

View Source
const ACLHookTimeout = 2 * time.Second

ACLHookTimeout is timeout for external ACL hook execution

Variables

View Source
var DefaultChannelHandler ssh.ChannelHandler = func(srv *ssh.Server, conn *gossh.ServerConn, newChan gossh.NewChannel, ctx ssh.Context) {}

Functions

func ChannelHandler

func ChannelHandler(srv *ssh.Server, conn *gossh.ServerConn, newChan gossh.NewChannel, ctx ssh.Context)

func DBInit

func DBInit(db *gorm.DB) error

func PasswordAuthHandler

func PasswordAuthHandler(db *gorm.DB, logsLocation, aclCheckCmd, aesKey, dbDriver, dbURL, bindAddr string, demo bool) ssh.PasswordHandler

func PrivateKeyFromDB

func PrivateKeyFromDB(db *gorm.DB, aesKey string) func(*ssh.Server) error

func PublicKeyAuthHandler

func PublicKeyAuthHandler(db *gorm.DB, logsLocation, aclCheckCmd, aesKey, dbDriver, dbURL, bindAddr string, demo bool) ssh.PublicKeyHandler

func ShellHandler

func ShellHandler(s ssh.Session, version, gitSha, gitTag string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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