Appearance
Cookie protection
These commands configure cookie protection: how cookies get their attributes, which cookies are sealed or signed, the keys that seal them, and the inventory of cookies the application sets. They also cover script change tracking on watched pages.
waap cookies get
Prints the cookie protection settings.
sh
waap cookies get -app NAME [-json]waap cookies set
Changes the cookie protection settings as a new version. KEY= goes back to the default. The first set turns cookie protection on.
sh
waap cookies set -app NAME [-m WHY] [-dry-run] KEY=VALUE...Keys:
enabled,modeattributes.secure,attributes.http_onlyattributes.same_site:lax,strict,noneoroffattributes.except: cookie names, with a*suffix for a prefixgrace_until: an RFC 3339 time, or a duration from now such as72hon_tamper:remove,blockorlogkeys.rotation: 1h to 8760hkeys.keep: 1 to 12
waap cookies list get
Prints the protected cookies as YAML.
sh
waap cookies list get -app NAME -list protectwaap cookies list set
Replaces the protected cookies with the records in FILE (YAML or JSON). Each record has names and method (encrypt or sign). An empty list ([]) removes them.
When cookies become protected and grace_until is not set, it is set 7 days ahead.
sh
waap cookies list set -app NAME -list protect -f FILE [-m WHY] [-dry-run]waap scripts
Script change tracking (admin guide section 33.12). -app NAME is required on every subcommand.
sh
waap scripts list -app NAME
waap scripts history -app NAME -url URL
waap scripts settings get -app NAME
waap scripts settings set -app NAME [-m WHY] [-dry-run] KEY=VALUE...
waap scripts check -app NAME
waap scripts confirm -app NAME -hash sha256:HEX [-url URL] [-m WHY] [-dry-run]list: the scripts found on the watched pages: kind, hash, size, first seen, last changed, and the origins browsers reported under a report-only CSP.history -url URL: the hashes one script had, newest first.settings get: the watch settings.settings set: changes the watch settings. Keys:watch.enabled,watch.pages(up to 20 paths),watch.interval,watch.alert_new,watch.alert_changed,known_good. An empty value removes one. The first set turns the watch on.check: fetches the watched pages now and compares. One check runs at a time per application.confirm -hash sha256:HEX [-url URL]: marks a content as known good.
waap cookies inventory
Lists each cookie name the application sets or uses, with:
- Set-Cookie headers seen from the upstream
- requests carrying it
- the share with Secure and HttpOnly
- SameSite, longest lifetime and largest size
- the policy: encrypt or sign, attributes added, or "outlives its keys"
Cookies never set by the upstream are marked "set by scripts or another site". Counted on every node, flushed about every minute.
sh
waap cookies inventory -app NAME [-window 7d] [-json]waap cookies keys list
Lists the cookie keys: ID, created, by, and which key seals new cookies. The keys themselves are never shown.
sh
waap cookies keys list -app NAME [-json]waap cookies keys rotate
Makes a new cookie key now, on the active node. Keys beyond keys.keep are deleted, and cookies sealed with them count as expired.
sh
waap cookies keys rotate -app NAME [-json]