You can secure your private Satis repository by using the options parameter in your composer.json to pass connection settings to the server.
SSH (requires SSH2 PECL extension)
Use the ssh2.sftp:// protocol and provide username, pubkey_file, and privkey_file under the ssh2 key.
SSL/TLS (HTTPS)
Use a client certificate by providing the local_cert path under the ssl key.
Use the http key with a header array to pass authentication tokens.
// SSH Example
{
"repositories": [
{
"type": "composer",
"url": "ssh2.sftp://example.org",
"options": {
"ssh2": {
"username": "composer",
"pubkey_file": "/home/composer/.ssh/id_rsa.pub",
"privkey_file": "/home/composer/.ssh/id_rsa"
}
}
}
]
}
// SSL/TLS Example
{
"repositories": [
{
"type": "composer",
"url": "https://example.org",
"options": {
"ssl": {
"local_cert": "/home/composer/.ssl/composer.pem"
}
}
}
]
}
// HTTP Header Example
{
"repositories": [
{
"type": "composer",
"url": "https://example.org",
"options": {
"http": {
"header": ["API-TOKEN: YOUR-API-TOKEN"]
}
}
}
]
}