Liam C.
Member
Hi there, I am currently creating an addon and I'm looking to try and ensure it's as secure as possible and would like to know either thoughts or suggestions on how to improve it.
I'm currently defining each route's controller with hasPermission at the start before anything else, and returning no permission. Is this a one size fits all solution? Is there any concern?

Second, we're handling form creation. I'm aware to use <xf:form> as it has more security with it but is there anything else I should be doing?
Third, we're soon going to be handling a very sensitive API route for a particular route accessible only to a few. I plan to assign the credentials of this API route in the config and making a class to fetch this data. Is there any concerning implications in how users could potentially abuse this?
I'm currently defining each route's controller with hasPermission at the start before anything else, and returning no permission. Is this a one size fits all solution? Is there any concern?

Second, we're handling form creation. I'm aware to use <xf:form> as it has more security with it but is there anything else I should be doing?
Third, we're soon going to be handling a very sensitive API route for a particular route accessible only to a few. I plan to assign the credentials of this API route in the config and making a class to fetch this data. Is there any concerning implications in how users could potentially abuse this?