Mark Waite Hi, as mentioned by you earlier, there is a need to discuss the security threats related to the doCheck methods where on-the-fly validation needs an external connection. I hope we can discuss that issue here.
That documentation also describes the permission check which is needed before accessing an external URL from the doCheck() method. The assumption is that if the user has permission to configure the job definition, then the external URL can be checked.
[~rishabhbudhouliya], I had a conversation with Daniel Beck and Wadeck Follonier and they reminded me that the [form validation developer documentation on jenkins.io|https://jenkins.io/doc/developer/security/form-validation/] describes the {{@POST}} annotation which is needed.
That documentation also describes the permission check which is needed before accessing an external URL from the doCheck() method. The assumption is that if the user has permission to configure the job definition, then the external URL can be checked.
Mark Waite, thanks. I have read this documentation and have implemented both @RequirePost annotation and the permission check. Last time we had a discussion that the scope of the permission check can be reduced from `Jenkins.getInstance().hasPermission()` to `Item.hasPermission()`.
I have implemented these suggestions, just finishing up the test cases and would raise a PR soon!