bastion

package
v1.30.7 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Reset   = "\033[0m"
	Bold    = "\033[1m"
	FgGreen = "\033[32m"
	FgRed   = "\033[31m"
	FgMag   = "\033[35m"
)
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, aesKey string) error

func MigrateToGCMCipher

func MigrateToGCMCipher(db *gorm.DB, aesKey string) error

func NewLogChannel

func NewLogChannel(channel ssh.Channel, writer io.WriteCloser) *logChannel

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