Traffic Capture and Exposure
To publish traffic captured by the pcap container, you have to enable rclone along pcap and
configure it using environmental variables. Use RCLONE_REMOTE_NAME to use
the correct remote and RCLONE_REMOTE_PATH for the correct destination path.
Rclone is defined generically through the container environment.
To find the name of the environment variable, first, take the long option name,
strip the leading --, change - to _ make upper case and prepend RCLONE_.
All available endpoints are described in the official rclone documentationOpens in a new tab.
An inotifyOpens in a new tab pattern is watching for captures, moving them from the directory /data/finished.
This container example-configuration enables authorisation for SFTP through username and password:
SFTP can also be authorised using private keys. Setting useSSHkeyFile will look for
the secret which name is configured by .Values.rclone.secretName in the appropriate namespace and mount it to /etc/ssh in
the container's filesystem. Rclone will look for the file using RCLONE_CONFIG_SFTP_KEY_FILE -
environment variable.
Note that this secret .Values.rclone.secretName is not created automatically when deploying this helm chart, but needs
to be manually prepared by the user like so:
This container example-configuration enables authorisation for s3 through access-key and secret-access-key:
Note that using rclone_move implies that transferred files will be removed from
the source path data/finished. This keeps the container's memory-footprint manageable
and enables file-cycling. If the process crashes during transfer no garbage data will remain
on the destination address and you will notice a Terminated in the container logs.
When attempting to push duplicate files they will be removed from the source path but
not overwritten/modified on the destination if MD5/SHAOpens in a new tab
checksums and file-name are the same on both ends.
Be aware this can cause data loss, if you were to lose the access to the data at
the destination. Consider testing first using the --dry-run flag.