Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Sftp Hardening
fluxfiles/laravel
cursor
s3
upload
laravel
file-manager
r2
fluxfiles

SFTP host-key / cipher hardening (DiskManager::buildSftpProvider(), config keys requirehostkey/strictalgorithms, env SFTPREQUIREHOSTKEY/SFTPSTRICTALGORITHMS): two opt-in (default-off, backward-compatible) tightenings on top of the pre-existing hostfingerprint pinning. requirehostkey fails closed...

Install
php artisan boost:add-skill fluxfiles/laravel

Save this content to: .cursor/rules/sftp-hardening.md

**SFTP host-key / cipher hardening** (`DiskManager::buildSftpProvider()`, config keys `require_host_key`/`strict_algorithms`, env `SFTP_REQUIRE_HOST_KEY`/`SFTP_STRICT_ALGORITHMS`): two opt-in (default-off, backward-compatible) tightenings on top of the pre-existing `host_fingerprint` pinning. `require_host_key` fails closed at disk-build time (`sftp_host_key_required` error) if `host_fingerprint` isn't also set, instead of silently trusting any host key. `strict_algorithms` passes a modern-only `preferredAlgorithms` allowlist (curve25519/ECDH/DH-group16+ KEX, ed25519/ecdsa/rsa-sha2 host keys, AES-GCM/CTR/ChaCha20 ciphers, SHA-2 MACs) to `SftpConnectionProvider`, excluding phpseclib's legacy-compat defaults (SHA-1 KEX, RC4, 3DES, CBC ciphers, ssh-dss, MD5/SHA-1 MACs) — turning it on for a legacy/embedded SFTP server fails the handshake outright rather than downgrading. BYOB SFTP configs get both keys for free since `CredentialEncryptor::validate()` doesn't allowlist config fields.

SFTP host-key / cipher hardening (DiskManager::buildSftpProvider(), config keys require_host_key/strict_algorithms, env SFTP_REQUIRE_HOST_KEY/SFTP_STRICT_ALGORITHMS): two opt-in (default-off, backward-compatible) tightenings on top of the pre-existing host_fingerprint pinning. require_host_key fails closed at disk-build time (sftp_host_key_required error) if host_fingerprint isn't also set, instead of silently trusting any host key. strict_algorithms passes a modern-only preferredAlgorithms allowlist (curve25519/ECDH/DH-group16+ KEX, ed25519/ecdsa/rsa-sha2 host keys, AES-GCM/CTR/ChaCha20 ciphers, SHA-2 MACs) to SftpConnectionProvider, excluding phpseclib's legacy-compat defaults (SHA-1 KEX, RC4, 3DES, CBC ciphers, ssh-dss, MD5/SHA-1 MACs) — turning it on for a legacy/embedded SFTP server fails the handshake outright rather than downgrading. BYOB SFTP configs get both keys for free since CredentialEncryptor::validate() doesn't allowlist config fields.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console