API Protection
WAAS can enforce API security based on specifications provided in the form of Swagger or OpenAPI files.
Alternatively, you can manually define your API (e.g., paths, allowed HTTP methods, parameter names, input types, value ranges, and so on).
Once defined, you can configure the actions WAAS applies to requests that do not comply with the API’s expected behavior.
Users should be careful when enabling Prisma Session Cookies along with API protection.
Prisma Session Cookies mandates client’s support of cookies and javascript in order for them to reach the protected application.
As APIs are often accessed by "primitive" automation clients, avoid enabling Prisma Session Cookies unless you are certain all clients accessing the protected API support BOTH cookies AND Javascript.
Import API definition from Swagger or OpenAPI files
- Click theApp definitontab.
- ClickImport.
- Select a file to load.
- Click theAPI protectiontab.
- Review path and parameter definitions listed underAPI Resources.
- Click theEndpoint setuptab.
- Review protected endpoints listed underProtected Endpointsand verify configured base paths all end with a trailing *.Base path in the endpoint definition should always end with a * e.g. "/*", "/api/v2/*". If not configured that way, API protection will not apply to sub-paths defined in the API protection tab.
- Go back to theAPI protectiontab.
Define an API manually
- Click theApp definitontab.
- Click theEndpoint setuptab.