add ip based and secret key ACL function