trypost/tests/Feature/Social
Paulo Castellano 4a08913d70 fix(security): make SSRF private-network block configurable and guard the last user-URL fetches
Add config('trypost.security.allow_private_network') (env TRYPOST_ALLOW_PRIVATE_NETWORK, default off) so self-hosted operators can reach their own internal network; only the private-IP rejection is bypassed, scheme/host checks always apply. Add SafeHttpFetcher::guardedRequest() and route the last unguarded user-supplied-URL fetches through it: the Unsplash/Giphy asset import, the API/MCP attach-media-from-URL download, and the OAuth avatar download. Our-own-storage reads (media crop, Bluesky media) are intentionally left unguarded so internal storage keeps working when self-hosted.
2026-07-17 15:40:15 -03:00
..
BlueskyControllerTest.php refactor(social): use native Inertia for all connect popup flows 2026-06-25 13:54:16 -03:00
DiscordControllerTest.php refactor(social): use native Inertia for all connect popup flows 2026-06-25 13:54:16 -03:00
FacebookControllerTest.php refactor(social): use native Inertia for all connect popup flows 2026-06-25 13:54:16 -03:00
InstagramControllerTest.php refactor(social): use native Inertia for all connect popup flows 2026-06-25 13:54:16 -03:00
InstagramFacebookControllerTest.php refactor(social): use native Inertia for all connect popup flows 2026-06-25 13:54:16 -03:00
LinkedInControllerTest.php fix(security): make SSRF private-network block configurable and guard the last user-URL fetches 2026-07-17 15:40:15 -03:00
MastodonControllerTest.php refactor(social): use native Inertia for all connect popup flows 2026-06-25 13:54:16 -03:00
PinterestControllerTest.php refactor(social): use native Inertia for all connect popup flows 2026-06-25 13:54:16 -03:00
TelegramConnectionTest.php feat(telegram): surface connect failure in the dialog instead of silent expiry 2026-06-22 09:55:12 -03:00
ThreadsControllerTest.php Never leave Instagram/Threads with a null token expiry 2026-07-03 10:33:26 -03:00
TikTokControllerTest.php refactor(social): use native Inertia for all connect popup flows 2026-06-25 13:54:16 -03:00
XControllerTest.php refactor(social): use native Inertia for all connect popup flows 2026-06-25 13:54:16 -03:00
YouTubeControllerTest.php refactor(social): use native Inertia for all connect popup flows 2026-06-25 13:54:16 -03:00