Skip to main content

SFTP

SFTP connections enable secure file transfer protocol integration for file operations, backup monitoring, and file-based health checks.

Used By

FieldDescriptionScheme
connection

The connection url to use, mutually exclusive with host and port

Connection

host

SFTP host

string

password

EnvVar

port

SFTP port

integer

username

EnvVar

Authentication Methods

Password Authentication

sftp-password.yaml
apiVersion: mission-control.flanksource.com/v1
kind: Connection
metadata:
name: sftp-backups
spec:
sftp:
host:
value: sftp.example.com
port: 22
username:
valueFrom:
secretKeyRef:
name: sftp-credentials
key: username
password:
valueFrom:
secretKeyRef:
name: sftp-credentials
key: password
path: /backups

SSH Key Authentication

sftp-ssh-key.yaml
apiVersion: mission-control.flanksource.com/v1
kind: Connection
metadata:
name: sftp-ssh
spec:
sftp:
host:
value: sftp.example.com
port: 22
username:
value: backup-user
certificate:
valueFrom:
secretKeyRef:
name: sftp-ssh-key
key: private-key
path: /data