teleport/lib/events
Sasha Klizhentas bad1b0498d External events and sessions storage.
Updates #1755

Design
------

This commit adds support for pluggable events and
sessions recordings and adds several plugins.

In case if external sessions recording storage
is used, nodes or proxies depending on configuration
store the session recordings locally and
then upload the recordings in the background.

Non-print session events are always sent to the
remote auth server as usual.

In case if remote events storage is used, auth
servers download recordings from it during playbacks.

DynamoDB event backend
----------------------

Transient DynamoDB backend is added for events
storage. Events are stored with default TTL of 1 year.

External lambda functions should be used
to forward events from DynamoDB.

Parameter audit_table_name in storage section
turns on dynamodb backend.

The table will be auto created.

S3 sessions backend
-------------------

If audit_sessions_uri is specified to s3://bucket-name
node or proxy depending on recording mode
will start uploading the recorded sessions
to the bucket.

If the bucket does not exist, teleport will
attempt to create a bucket with versioning and encryption
turned on by default.

Teleport will turn on bucket-side encryption for the tarballs
using aws:kms key.

File sessions backend
---------------------

If audit_sessions_uri is specified to file:///folder
teleport will start writing tarballs to this folder instead
of sending records to the file server.

This is helpful for plugin writers who can use fuse or NFS
mounted storage to handle the data.

Working dynamic configuration.
2018-03-15 12:42:43 -07:00
..
dynamoevents External events and sessions storage. 2018-03-15 12:42:43 -07:00
filesessions External events and sessions storage. 2018-03-15 12:42:43 -07:00
s3sessions External events and sessions storage. 2018-03-15 12:42:43 -07:00
test External events and sessions storage. 2018-03-15 12:42:43 -07:00
api.go External events and sessions storage. 2018-03-15 12:42:43 -07:00
api_test.go Fixed tests 2016-04-28 23:49:36 -07:00
archive.go External events and sessions storage. 2018-03-15 12:42:43 -07:00
auditlog.go External events and sessions storage. 2018-03-15 12:42:43 -07:00
auditlog_test.go External events and sessions storage. 2018-03-15 12:42:43 -07:00
compatsessionlog.go Use gzip for session recordings, fixes #1579 2018-01-15 13:34:01 -08:00
discard.go External events and sessions storage. 2018-03-15 12:42:43 -07:00
doc.go Add support for NFS-friendly log protocol. 2018-01-04 18:54:37 -08:00
forward.go External events and sessions storage. 2018-03-15 12:42:43 -07:00
mock.go External events and sessions storage. 2018-03-15 12:42:43 -07:00
sessionlog.go External events and sessions storage. 2018-03-15 12:42:43 -07:00
slice.pb.go Add support for NFS-friendly log protocol. 2018-01-04 18:54:37 -08:00
slice.proto Add support for NFS-friendly log protocol. 2018-01-04 18:54:37 -08:00
uploader.go External events and sessions storage. 2018-03-15 12:42:43 -07:00