What Are Security Policies?
A security policy is a set of rules that says which Filestack requests are allowed and for how long. A signature proves that your server created the policy.
Default Behavior
By default, requests that change existing files or account settings need a policy, and uploads and deliveries do not. You can turn on security for an application so that every request needs a policy.
Policy Keys
expiry(required): Unix timestamp when the policy stops workingcall: the allowed request types. Without it, all calls exceptexifare allowed.handle: limits changes to one filecontainerandpath: limit where uploads are storedurl: limits the source URLs allowed for transformationsminSizeandmaxSize: limit upload size in bytes
Calls
pick (upload), read, stat (metadata), write (overwrite), store, convert, remove, exif and runWorkflow.
Signatures
The policy is Base64URL-encoded and signed with HMAC-SHA256 using the app secret. Create and sign policies on your server, keep the app secret out of client code, and give each policy a short expiry and only the calls it needs.
Related terms
Domain Whitelists
Network-level security layer controlling service access by domain.
API Key
Public identifier for a Filestack application, used by SDKs and API requests.
Custom CNAME
Premium feature that serves Filestack URLs from your own domain.
Handles
Unique alphanumeric identifiers assigned to every uploaded file.
More in Security
This page is one of 94 terms in the Filestack glossary.
Browse all terms