I have implemented slack -Jenkins Integration;
Triggering Jenkins build with parameters job by using PHP application hosted in a server.
Slash command to call PHP application ;
PHP application will take the input by REQUEST method and then call the Jenkins job .
If any one knows the file name(www.myserver.com/filename.php) and cracked the run time arguments(paramters), then they can do the deployments . By calling the it in the URL.
Slack doesn't have static IP . So IP restriction is not possible .
Tried :
RewriteCond %{REQUEST_METHOD} !^POST$
RewriteRule ^/check.php$ - [NC,R=404,L]
in the .htaccess.
But Fails the testcase.
Simply , need to allow the PHP application only from slack