2019-03-13 13:32:21 +01:00
|
|
|
# Bastion
|
|
|
|
|
|
|
|
SSH bastion that features transparent connection and session recording.
|
|
|
|
|
|
|
|
This project is inspired by https://github.com/moul/sshportal. I wrote this implementation to work around the fact that I couldn't get the go ssh lib
|
|
|
|
to work properly with non interactive sessions, the bug has been open for a long time and I tend to belive it cannot be fixed
|
2019-03-14 16:44:11 +01:00
|
|
|
(https://github.com/moul/sshportal/issues/55).
|
|
|
|
|
|
|
|
This bastion project does work properly with non interactive sessions, which allows transparent ansible usage through the bastion.
|
2019-03-13 13:32:21 +01:00
|
|
|
|
|
|
|
## Contents
|
|
|
|
|
|
|
|
- [Dependencies](#dependencies)
|
|
|
|
- [Installation and usage](#manual-installation)
|
|
|
|
- [Usage](#usage)
|
|
|
|
- [Docker](#docker)
|
|
|
|
- [Monitoring](#monitoring)
|
|
|
|
- [Backup](#backup)
|
|
|
|
- [Scaling](#scaling)
|
|
|
|
|
|
|
|
## Dependencies
|
|
|
|
|
|
|
|
This project has only one hard dependency :
|
|
|
|
- the libssh from https://www.libssh.org/. You should be able to use your distro's packages if they are recent enough.
|
|
|
|
|
|
|
|
The following are optional dependencies :
|
|
|
|
- the libtty from https://github.com/kilobyte/termrec which allows session recording.
|
2019-03-14 17:40:04 +01:00
|
|
|
- compression libraries like libbz2, liblzma, libz allow on the fly compression of session records.
|
2019-03-13 13:32:21 +01:00
|
|
|
- libmysql for now because it hosts the runtime config
|
|
|
|
|
|
|
|
## Manual Installation
|
|
|
|
|
|
|
|
This project is built using cmake :
|
|
|
|
```
|
|
|
|
mkdir build
|
|
|
|
cd build
|
|
|
|
cmake ..
|
|
|
|
make
|
|
|
|
make install
|
|
|
|
```
|
|
|
|
|
|
|
|
You can customise the build with the following cmake flags :
|
|
|
|
|
2019-03-14 19:10:41 +01:00
|
|
|
- `CMAKE_BUILD_TYPE` : Debug|Release|RelWithDebInfo|MinSizeRel, defaults to Release if using a tarball, and Debug if using the git tree
|
2019-03-14 16:44:11 +01:00
|
|
|
- `CMAKE_INSTALL_PREFIX` : path, defaults to `/usr/local`
|
|
|
|
- `SESSION_RECORDING` : ON|OFF, defaults to ON
|
|
|
|
|
2019-03-14 17:40:04 +01:00
|
|
|
For exemple this disables session recording for a debug build and installs the bastion for your current user :
|
2019-03-14 16:44:11 +01:00
|
|
|
|
2019-03-14 17:40:04 +01:00
|
|
|
`cmake .. -DCMAKE_BUILD_TYPE=Debug -D CMAKE_INSTALL_PREFIX=$HOME/.local -DSESSION_RECORDING=OFF`
|
2019-03-13 13:32:21 +01:00
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
## Docker
|
|
|
|
|
|
|
|
## Monitoring
|
|
|
|
|
|
|
|
## Backup
|
|
|
|
|
|
|
|
## Scaling
|