I have GAE application. I have CRON service. It fires www.example.appspot.com/cron/schedule servlet.
PROBLEM: Everyone have access to this servlet. I dont want to have everyone access to this servlet. I need to fire that servlet only cron.
In the other word I need: servlet access permission only for cron
I do something like that:
<security-constraint>
<web-resource-collection>
<web-resource-name>cron</web-resource-name>
<url-pattern>/cron/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>admin</role-name>
</auth-constraint>
</security-constraint>
every servlet in /cron/ cant be fire eccept admin (If I deploy app, app engine is admin). So is this sulution? what do you think? Am I correct?