[{"data":1,"prerenderedAt":1360},["ShallowReactive",2],{"navigation_docs":3,"-guide-people-and-security-protection":613,"-guide-people-and-security-protection-surround":1357},[4,39,101,378,540,562,584,606],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":38},"Start","i-lucide-rocket","\u002Fstart","1.start",[10,14,18,22,26,30,34],{"title":11,"path":12,"stem":13},"Our approach","\u002Fstart\u002Four-approach","1.start\u002F0.our-approach",{"title":15,"path":16,"stem":17},"Introduction","\u002Fstart\u002Fintroduction","1.start\u002F1.introduction",{"title":19,"path":20,"stem":21},"Concepts","\u002Fstart\u002Fconcepts","1.start\u002F2.concepts",{"title":23,"path":24,"stem":25},"Glossary","\u002Fstart\u002Fglossary","1.start\u002F3.glossary",{"title":27,"path":28,"stem":29},"Try it locally","\u002Fstart\u002Ftry-it-locally","1.start\u002F4.try-it-locally",{"title":31,"path":32,"stem":33},"Features","\u002Fstart\u002Ffeatures","1.start\u002F5.features",{"title":35,"path":36,"stem":37},"Questions","\u002Fstart\u002Ffaq","1.start\u002F6.faq",false,{"title":40,"icon":41,"path":42,"stem":43,"children":44,"page":38},"Run SHADE","i-lucide-server","\u002Frun","2.run",[45,49,53,57,61,65,69,73,77,81,85,89,93,97],{"title":46,"path":47,"stem":48},"Setting up an instance (Coolify)","\u002Frun\u002Fcoolify","2.run\u002F1.coolify",{"title":50,"path":51,"stem":52},"Console commands","\u002Frun\u002Fconsole","2.run\u002F10.console",{"title":54,"path":55,"stem":56},"Rotating APP_SECRET","\u002Frun\u002Frotating-app-secret","2.run\u002F11.rotating-app-secret",{"title":58,"path":59,"stem":60},"Checking an instance","\u002Frun\u002Fdoctor","2.run\u002F12.doctor",{"title":62,"path":63,"stem":64},"Self-hosting by hand","\u002Frun\u002Fown-server-by-hand","2.run\u002F13.own-server-by-hand",{"title":66,"path":67,"stem":68},"NixOS (experimental)","\u002Frun\u002Fnixos","2.run\u002F14.nixos",{"title":70,"path":71,"stem":72},"Self-hosting without Coolify","\u002Frun\u002Fown-server","2.run\u002F2.own-server",{"title":74,"path":75,"stem":76},"Hosting the site on a static host","\u002Frun\u002Fstatic-hosts","2.run\u002F3.static-hosts",{"title":78,"path":79,"stem":80},"Licence","\u002Frun\u002Flicence","2.run\u002F4.licence",{"title":82,"path":83,"stem":84},"Updating and backups","\u002Frun\u002Fupdating-and-backups","2.run\u002F5.updating-and-backups",{"title":86,"path":87,"stem":88},"Troubleshooting","\u002Frun\u002Ftroubleshooting","2.run\u002F6.troubleshooting",{"title":90,"path":91,"stem":92},"Logs, request ids, traces and metrics","\u002Frun\u002Flogs","2.run\u002F7.logs",{"title":94,"path":95,"stem":96},"Maintenance mode","\u002Frun\u002Fmaintenance-mode","2.run\u002F8.maintenance-mode",{"title":98,"path":99,"stem":100},"Usage limits","\u002Frun\u002Fusage-limits","2.run\u002F9.usage-limits",{"title":102,"icon":103,"path":104,"stem":105,"children":106},"Guide","i-lucide-book-open","\u002Fguide","3.guide",[107,109,147,192,210,280,310,364],{"title":102,"path":104,"stem":108},"3.guide\u002Findex",{"title":110,"icon":111,"path":112,"stem":113,"children":114,"page":38},"Content","i-lucide-file-text","\u002Fguide\u002Fcontent","3.guide\u002F1.content",[115,119,123,127,131,135,139,143],{"title":116,"path":117,"stem":118},"Collections and entries","\u002Fguide\u002Fcontent\u002Fcollections","3.guide\u002F1.content\u002F1.collections",{"title":120,"path":121,"stem":122},"Field types","\u002Fguide\u002Fcontent\u002Ffields","3.guide\u002F1.content\u002F2.fields",{"title":124,"path":125,"stem":126},"Drafts, publishing and version history","\u002Fguide\u002Fcontent\u002Fversions","3.guide\u002F1.content\u002F3.versions",{"title":128,"path":129,"stem":130},"Languages","\u002Fguide\u002Fcontent\u002Flanguages","3.guide\u002F1.content\u002F4.languages",{"title":132,"path":133,"stem":134},"Data sources","\u002Fguide\u002Fcontent\u002Fdata-sources","3.guide\u002F1.content\u002F5.data-sources",{"title":136,"path":137,"stem":138},"Media","\u002Fguide\u002Fcontent\u002Fmedia","3.guide\u002F1.content\u002F6.media",{"title":140,"path":141,"stem":142},"Search","\u002Fguide\u002Fcontent\u002Fsearch","3.guide\u002F1.content\u002F7.search",{"title":144,"path":145,"stem":146},"Trash","\u002Fguide\u002Fcontent\u002Ftrash","3.guide\u002F1.content\u002F8.trash",{"title":148,"icon":149,"path":150,"stem":151,"children":152,"page":38},"Website","i-lucide-globe","\u002Fguide\u002Fwebsite","3.guide\u002F2.website",[153,156,160,164,168,172,176,180,184,188],{"title":148,"path":154,"stem":155},"\u002Fguide\u002Fwebsite\u002Fwebsite","3.guide\u002F2.website\u002F1.website",{"title":157,"path":158,"stem":159},"Scroll scenes","\u002Fguide\u002Fwebsite\u002Fscroll-scenes","3.guide\u002F2.website\u002F10.scroll-scenes",{"title":161,"path":162,"stem":163},"Pages and posts","\u002Fguide\u002Fwebsite\u002Fpages","3.guide\u002F2.website\u002F2.pages",{"title":165,"path":166,"stem":167},"The visual editor","\u002Fguide\u002Fwebsite\u002Fvisual-editor","3.guide\u002F2.website\u002F3.visual-editor",{"title":169,"path":170,"stem":171},"Roles and locks","\u002Fguide\u002Fwebsite\u002Froles-and-locks","3.guide\u002F2.website\u002F4.roles-and-locks",{"title":173,"path":174,"stem":175},"Header and footer","\u002Fguide\u002Fwebsite\u002Fheader-and-footer","3.guide\u002F2.website\u002F5.header-and-footer",{"title":177,"path":178,"stem":179},"Theme","\u002Fguide\u002Fwebsite\u002Ftheme","3.guide\u002F2.website\u002F6.theme",{"title":181,"path":182,"stem":183},"Redirects","\u002Fguide\u002Fwebsite\u002Fredirects","3.guide\u002F2.website\u002F7.redirects",{"title":185,"path":186,"stem":187},"Site settings","\u002Fguide\u002Fwebsite\u002Fsite-settings","3.guide\u002F2.website\u002F8.site-settings",{"title":189,"path":190,"stem":191},"The site","\u002Fguide\u002Fwebsite\u002Fthe-site","3.guide\u002F2.website\u002F9.the-site",{"title":193,"icon":194,"path":195,"stem":196,"children":197,"page":38},"Publishing","i-lucide-send","\u002Fguide\u002Fpublishing","3.guide\u002F3.publishing",[198,202,206],{"title":199,"path":200,"stem":201},"Publishing and preview","\u002Fguide\u002Fpublishing\u002Fpublishing","3.guide\u002F3.publishing\u002F1.publishing",{"title":203,"path":204,"stem":205},"Builds","\u002Fguide\u002Fpublishing\u002Fbuilds","3.guide\u002F3.publishing\u002F2.builds",{"title":207,"path":208,"stem":209},"CDN caches","\u002Fguide\u002Fpublishing\u002Fcaches","3.guide\u002F3.publishing\u002F3.caches",{"title":211,"icon":212,"path":213,"stem":214,"children":215,"page":38},"People, security and privacy","i-lucide-shield","\u002Fguide\u002Fpeople-and-security","3.guide\u002F4.people-and-security",[216,220,224,228,232,236,240,244,248,252,256,260,264,268,272,276],{"title":217,"path":218,"stem":219},"People in SHADE","\u002Fguide\u002Fpeople-and-security\u002Fpeople-in-shade","3.guide\u002F4.people-and-security\u002F0.people-in-shade",{"title":221,"path":222,"stem":223},"Team and roles","\u002Fguide\u002Fpeople-and-security\u002Fteam","3.guide\u002F4.people-and-security\u002F1.team",{"title":225,"path":226,"stem":227},"Errors and security alerts","\u002Fguide\u002Fpeople-and-security\u002Ferrors","3.guide\u002F4.people-and-security\u002F10.errors",{"title":229,"path":230,"stem":231},"Exporting an instance","\u002Fguide\u002Fpeople-and-security\u002Fexporting","3.guide\u002F4.people-and-security\u002F11.exporting",{"title":233,"path":234,"stem":235},"Organisations","\u002Fguide\u002Fpeople-and-security\u002Forganisations","3.guide\u002F4.people-and-security\u002F12.organisations",{"title":237,"path":238,"stem":239},"Signing in through an identity provider (team)","\u002Fguide\u002Fpeople-and-security\u002Fidentity-providers","3.guide\u002F4.people-and-security\u002F13.identity-providers",{"title":241,"path":242,"stem":243},"System status","\u002Fguide\u002Fpeople-and-security\u002Fsystem-status","3.guide\u002F4.people-and-security\u002F14.system-status",{"title":245,"path":246,"stem":247},"Appearance","\u002Fguide\u002Fpeople-and-security\u002Fappearance","3.guide\u002F4.people-and-security\u002F15.appearance",{"title":249,"path":250,"stem":251},"Accounts and personal pages","\u002Fguide\u002Fpeople-and-security\u002Faccounts","3.guide\u002F4.people-and-security\u002F2.accounts",{"title":253,"path":254,"stem":255},"Signing in (team)","\u002Fguide\u002Fpeople-and-security\u002Fsign-in","3.guide\u002F4.people-and-security\u002F3.sign-in",{"title":257,"path":258,"stem":259},"API tokens","\u002Fguide\u002Fpeople-and-security\u002Fapi-tokens","3.guide\u002F4.people-and-security\u002F4.api-tokens",{"title":261,"path":262,"stem":263},"Audit log","\u002Fguide\u002Fpeople-and-security\u002Faudit","3.guide\u002F4.people-and-security\u002F5.audit",{"title":265,"path":266,"stem":267},"Request protection","\u002Fguide\u002Fpeople-and-security\u002Fprotection","3.guide\u002F4.people-and-security\u002F6.protection",{"title":269,"path":270,"stem":271},"Personal data per person","\u002Fguide\u002Fpeople-and-security\u002Fprivacy","3.guide\u002F4.people-and-security\u002F7.privacy",{"title":273,"path":274,"stem":275},"Data retention","\u002Fguide\u002Fpeople-and-security\u002Fretention","3.guide\u002F4.people-and-security\u002F8.retention",{"title":277,"path":278,"stem":279},"Consent banner","\u002Fguide\u002Fpeople-and-security\u002Fconsent","3.guide\u002F4.people-and-security\u002F9.consent",{"title":281,"icon":282,"path":283,"stem":284,"children":285,"page":38},"Services","i-lucide-plug","\u002Fguide\u002Fservices","3.guide\u002F5.services",[286,290,294,298,302,306],{"title":287,"path":288,"stem":289},"Email","\u002Fguide\u002Fservices\u002Femail","3.guide\u002F5.services\u002F1.email",{"title":291,"path":292,"stem":293},"Opening hours","\u002Fguide\u002Fservices\u002Fopening-hours","3.guide\u002F5.services\u002F4.opening-hours",{"title":295,"path":296,"stem":297},"Webhooks","\u002Fguide\u002Fservices\u002Fwebhooks","3.guide\u002F5.services\u002F5.webhooks",{"title":299,"path":300,"stem":301},"Locations","\u002Fguide\u002Fservices\u002Flocations","3.guide\u002F5.services\u002F6.locations",{"title":303,"path":304,"stem":305},"VAT rates","\u002Fguide\u002Fservices\u002Fvat-rates","3.guide\u002F5.services\u002F7.vat-rates",{"title":307,"path":308,"stem":309},"Channels","\u002Fguide\u002Fservices\u002Fchannels","3.guide\u002F5.services\u002F8.channels",{"title":311,"icon":312,"path":313,"stem":314,"children":315,"page":38},"InstalledModules","i-lucide-puzzle","\u002Fguide\u002Fmodules","3.guide\u002F6.modules",[316,320,324,328,332,336,340,344,348,352,356,360],{"title":317,"path":318,"stem":319},"Modules","\u002Fguide\u002Fmodules\u002Fmanaging","3.guide\u002F6.modules\u002F1.managing",{"title":321,"path":322,"stem":323},"Dutch services (module)","\u002Fguide\u002Fmodules\u002Fnl","3.guide\u002F6.modules\u002F10.nl",{"title":325,"path":326,"stem":327},"Editorial (module)","\u002Fguide\u002Fmodules\u002Feditorial","3.guide\u002F6.modules\u002F11.editorial",{"title":329,"path":330,"stem":331},"Appointments (module)","\u002Fguide\u002Fmodules\u002Fappointments","3.guide\u002F6.modules\u002F2.appointments",{"title":333,"path":334,"stem":335},"Shop (the commerce module)","\u002Fguide\u002Fmodules\u002Fshop","3.guide\u002F6.modules\u002F3.shop",{"title":337,"path":338,"stem":339},"Untrusted modules","\u002Fguide\u002Fmodules\u002Funtrusted","3.guide\u002F6.modules\u002F4.untrusted",{"title":341,"path":342,"stem":343},"Analytics (module)","\u002Fguide\u002Fmodules\u002Fanalytics","3.guide\u002F6.modules\u002F5.analytics",{"title":345,"path":346,"stem":347},"Error forwarding (module)","\u002Fguide\u002Fmodules\u002Ferror-forwarding","3.guide\u002F6.modules\u002F6.error-forwarding",{"title":349,"path":350,"stem":351},"Client programs","\u002Fguide\u002Fmodules\u002Fprograms","3.guide\u002F6.modules\u002F7.programs",{"title":353,"path":354,"stem":355},"Import and export (module)","\u002Fguide\u002Fmodules\u002Fimport","3.guide\u002F6.modules\u002F8.import",{"title":357,"path":358,"stem":359},"Payments (module)","\u002Fguide\u002Fmodules\u002Fpayments","3.guide\u002F6.modules\u002F8.payments",{"title":361,"path":362,"stem":363},"Forms (module)","\u002Fguide\u002Fmodules\u002Fforms","3.guide\u002F6.modules\u002F9.forms",{"title":365,"icon":366,"path":367,"stem":368,"children":369,"page":38},"AI assistants","i-lucide-bot","\u002Fguide\u002Fai","3.guide\u002F7.ai",[370,374],{"title":371,"path":372,"stem":373},"AI assistants (MCP)","\u002Fguide\u002Fai\u002Fassistants","3.guide\u002F7.ai\u002F1.assistants",{"title":375,"path":376,"stem":377},"Connecting an AI assistant","\u002Fguide\u002Fai\u002Fconnecting","3.guide\u002F7.ai\u002F2.connecting",{"title":379,"icon":380,"path":381,"stem":382,"children":383,"page":38},"Developers","i-lucide-code","\u002Fdevelopers","4.developers",[384,388,392,396,400,404,408,412,416,420,424,428,432,435,489,493,497,501,536],{"title":385,"path":386,"stem":387},"Architecture","\u002Fdevelopers\u002Farchitecture","4.developers\u002F1.architecture",{"title":389,"path":390,"stem":391},"Capabilities","\u002Fdevelopers\u002Fcapabilities","4.developers\u002F10.capabilities",{"title":393,"path":394,"stem":395},"Trust","\u002Fdevelopers\u002Ftrust","4.developers\u002F11.trust",{"title":397,"path":398,"stem":399},"Redis and the ports","\u002Fdevelopers\u002Fredis","4.developers\u002F12.redis",{"title":401,"path":402,"stem":403},"The worker container role","\u002Fdevelopers\u002Fworker","4.developers\u002F13.worker",{"title":405,"path":406,"stem":407},"kv: a module's own key-value storage","\u002Fdevelopers\u002Fkv","4.developers\u002F14.kv",{"title":409,"path":410,"stem":411},"Processes: long-running work on the worker","\u002Fdevelopers\u002Fprocesses","4.developers\u002F15.processes",{"title":413,"path":414,"stem":415},"Network: a module's outgoing calls","\u002Fdevelopers\u002Fnetwork","4.developers\u002F16.network",{"title":417,"path":418,"stem":419},"Realtime","\u002Fdevelopers\u002Frealtime","4.developers\u002F17.realtime",{"title":421,"path":422,"stem":423},"Private files","\u002Fdevelopers\u002Ffiles","4.developers\u002F18.files",{"title":425,"path":426,"stem":427},"Notify","\u002Fdevelopers\u002Fnotify","4.developers\u002F19.notify",{"title":429,"path":430,"stem":431},"Collections","\u002Fdevelopers\u002Fcollections","4.developers\u002F2.collections",{"title":337,"path":433,"stem":434},"\u002Fdevelopers\u002Funtrusted","4.developers\u002F20.untrusted",{"title":436,"icon":312,"path":437,"stem":438,"children":439},"Writing a plugin","\u002Fdevelopers\u002Fmodules","4.developers\u002F3.modules\u002Findex",[440,442,446,450,454,458,462,466,470,473,477,481,485],{"title":441,"path":437,"stem":438},"Writing a module",{"title":443,"path":444,"stem":445},"Module SDK and tooling","\u002Fdevelopers\u002Fmodules\u002Fsdk-and-tooling","4.developers\u002F3.modules\u002F1.sdk-and-tooling",{"title":447,"path":448,"stem":449},"Connecting accounts with OAuth2","\u002Fdevelopers\u002Fmodules\u002Foauth","4.developers\u002F3.modules\u002F10.oauth",{"title":451,"path":452,"stem":453},"Calls between modules","\u002Fdevelopers\u002Fmodules\u002Fcalls-between-modules","4.developers\u002F3.modules\u002F11.calls-between-modules",{"title":455,"path":456,"stem":457},"Experimental parts","\u002Fdevelopers\u002Fmodules\u002Fexperimental-parts","4.developers\u002F3.modules\u002F12.experimental-parts",{"title":459,"path":460,"stem":461},"The manifest","\u002Fdevelopers\u002Fmodules\u002Fmanifest","4.developers\u002F3.modules\u002F2.manifest",{"title":463,"path":464,"stem":465},"Routes","\u002Fdevelopers\u002Fmodules\u002Froutes","4.developers\u002F3.modules\u002F3.routes",{"title":467,"path":468,"stem":469},"Admin screens and the site part","\u002Fdevelopers\u002Fmodules\u002Fadmin-and-site","4.developers\u002F3.modules\u002F4.admin-and-site",{"title":110,"path":471,"stem":472},"\u002Fdevelopers\u002Fmodules\u002Fcontent","4.developers\u002F3.modules\u002F5.content",{"title":474,"path":475,"stem":476},"Background work and services","\u002Fdevelopers\u002Fmodules\u002Fbackground-and-services","4.developers\u002F3.modules\u002F6.background-and-services",{"title":478,"path":479,"stem":480},"SDK reference","\u002Fdevelopers\u002Fmodules\u002Fsdk-reference","4.developers\u002F3.modules\u002F7.sdk-reference",{"title":482,"path":483,"stem":484},"The website module's SDK","\u002Fdevelopers\u002Fmodules\u002Fwebsite-sdk","4.developers\u002F3.modules\u002F8.website-sdk",{"title":486,"path":487,"stem":488},"Incoming webhooks","\u002Fdevelopers\u002Fmodules\u002Fincoming-webhooks","4.developers\u002F3.modules\u002F9.incoming-webhooks",{"title":490,"path":491,"stem":492},"Core and the website module","\u002Fdevelopers\u002Fcore-and-website-module","4.developers\u002F4.core-and-website-module",{"title":494,"path":495,"stem":496},"The API","\u002Fdevelopers\u002Fapi","4.developers\u002F6.api",{"title":498,"path":499,"stem":500},"API reference","\u002Fdevelopers\u002Fapi-reference","4.developers\u002F6.api-reference",{"title":502,"icon":503,"path":504,"stem":505,"children":506},"Sites in other frameworks","i-lucide-layout-template","\u002Fdevelopers\u002Fframeworks","4.developers\u002F7.frameworks\u002Findex",[507,508,512,516,520,524,528,532],{"title":502,"path":504,"stem":505},{"title":509,"path":510,"stem":511},"Accounts: sign-in and modules' routes","\u002Fdevelopers\u002Fframeworks\u002Faccounts","4.developers\u002F7.frameworks\u002F1.accounts",{"title":513,"path":514,"stem":515},"`@shadestack\u002Ftree`","\u002Fdevelopers\u002Fframeworks\u002Ftree","4.developers\u002F7.frameworks\u002F2.tree",{"title":517,"path":518,"stem":519},"Expressions and styles","\u002Fdevelopers\u002Fframeworks\u002Fexpressions-and-styles","4.developers\u002F7.frameworks\u002F3.expressions-and-styles",{"title":521,"path":522,"stem":523},"`@shadestack\u002Frender`","\u002Fdevelopers\u002Fframeworks\u002Frender","4.developers\u002F7.frameworks\u002F4.render",{"title":525,"path":526,"stem":527},"`@shadestack\u002Finteractions`","\u002Fdevelopers\u002Fframeworks\u002Finteractions","4.developers\u002F7.frameworks\u002F5.interactions",{"title":529,"path":530,"stem":531},"`@shadestack\u002Fa11y`","\u002Fdevelopers\u002Fframeworks\u002Fa11y","4.developers\u002F7.frameworks\u002F6.a11y",{"title":533,"path":534,"stem":535},"Your own page for SHADE's links","\u002Fdevelopers\u002Fframeworks\u002Flinks","4.developers\u002F7.frameworks\u002F7.links",{"title":537,"path":538,"stem":539},"Build a client module","\u002Fdevelopers\u002Fclient-module","4.developers\u002F9.client-module",{"title":541,"icon":542,"path":543,"stem":544,"children":545,"page":38},"Security","i-lucide-shield-check","\u002Fsecurity","5.security",[546,550,554,558],{"title":547,"path":548,"stem":549},"Reporting a vulnerability","\u002Fsecurity\u002Freporting","5.security\u002F0.reporting",{"title":551,"path":552,"stem":553},"Security testing","\u002Fsecurity\u002Ftesting","5.security\u002F1.testing",{"title":555,"path":556,"stem":557},"Hardening a production instance","\u002Fsecurity\u002Fhardening","5.security\u002F2.hardening",{"title":559,"path":560,"stem":561},"Manual testing with Kali Linux","\u002Fsecurity\u002Fmanual-testing","5.security\u002F3.manual-testing",{"title":563,"icon":564,"path":565,"stem":566,"children":567,"page":38},"Contributing","i-lucide-git-pull-request","\u002Fcontributing","6.contributing",[568,572,576,580],{"title":569,"path":570,"stem":571},"Reading the code","\u002Fcontributing\u002Freading-the-code","6.contributing\u002F1.reading-the-code",{"title":573,"path":574,"stem":575},"Docs site","\u002Fcontributing\u002Fdocs-site","6.contributing\u002F2.docs-site",{"title":577,"path":578,"stem":579},"Releases","\u002Fcontributing\u002Freleases","6.contributing\u002F3.releases",{"title":581,"path":582,"stem":583},"Load tests","\u002Fcontributing\u002Fload-tests","6.contributing\u002F4.load-tests",{"title":585,"icon":586,"path":587,"stem":588,"children":589,"page":38},"Project","i-lucide-map","\u002Fproject","7.project",[590,594,598,602],{"title":591,"path":592,"stem":593},"Roadmap","\u002Fproject\u002Froadmap","7.project\u002F1.roadmap",{"title":595,"path":596,"stem":597},"Known issues","\u002Fproject\u002Fknown-issues","7.project\u002F2.known-issues",{"title":599,"path":600,"stem":601},"Changelog","\u002Fproject\u002Fchangelog","7.project\u002F3.changelog",{"title":603,"path":604,"stem":605},"Decisions","\u002Fproject\u002Fdecisions","7.project\u002F4.decisions",{"title":607,"path":608,"stem":609,"children":610,"icon":612},"Community","\u002Fcommunity","8.community\u002Findex",[611],{"title":607,"path":608,"stem":609},"i-lucide-users",{"id":614,"title":265,"body":615,"description":1330,"extension":1351,"links":1352,"meta":1353,"navigation":1354,"path":266,"seo":1355,"stem":267,"__hash__":1356},"docs\u002F3.guide\u002F4.people-and-security\u002F6.protection.md",{"type":616,"value":617,"toc":1329},"minimark",[618,639,644,647,650,674,677,682,685,709,713,716,761,765,772,776,794,798,852,855,859,863,870,1171,1218,1222,1229,1251,1255,1261,1265,1270,1274,1284,1288,1294,1298,1301,1305,1314,1318],[619,620,621,622,626,627,631,632,635,636,638],"p",{},"SHADE's admin and website talk to a server that anyone on the internet can reach, so SHADE guards itself against\nabuse. It limits how often one visitor may sign in, send a form or check out, makes sure a retried checkout does not\ncreate a second order, checks incoming payment notices, caps the size of what is sent, and only lets the client's own\nwebsite (the ",[623,624,625],"em",{},"Site URL"," under ",[628,629,630],"strong",{},"Settings",") use its visitor features from a browser. This is part of SHADE; nobody\nswitches it on or off.\nHow the people who run an instance set it up is in ",[633,634,555],"a",{"href":556},"\nand ",[633,637,46],{"href":47},".",[640,641,643],"h2",{"id":642},"what-users-can-do","What users can do",[619,645,646],{},"Nobody configures request protection in the admin. What people notice:",[619,648,649],{},"Visitors:",[651,652,653,662,665,668],"ul",{},[654,655,656,657,661],"li",{},"After too many form submissions, bookings, checkouts or sign-in attempts in a short time, they get a \"try again\nlater\" message instead of the normal result (see ",[633,658,660],{"href":659},"#what-visitors-and-the-team-see","What visitors and the team see",").",[654,663,664],{},"Pressing \"pay\" twice, or a network retry during checkout, does not start two orders or payments.",[654,666,667],{},"Bots that fill in the hidden \"Website\" field of a form, or send it within 3 seconds of loading the page, get a\nnormal \"sent\" answer, but nothing is stored or emailed.",[654,669,670,671,638],{},"A form of the forms module also asks the visitor's browser to work out a small proof-of-work puzzle before it\nsends (ALTCHA, run by SHADE itself, no outside service): well under a second for a person, real work for a bot that\nsends thousands. Without the answer, or with one used before, the form gets the same normal answer and nothing is\nkept. See ",[633,672,673],{"href":362},"Forms",[619,675,676],{},"Editors and admins:",[651,678,679],{},[654,680,681],{},"After 10 sign-in attempts (or 10 two-factor codes) from one address within 15 minutes, sign-in is refused for\nthe rest of that quarter hour.",[619,683,684],{},"Admins:",[651,686,687,695,706],{},[654,688,689,690,694],{},"See refused sign-in bursts in the audit log (",[691,692,693],"code",{},"protection.rate-limited","), once per address and window.",[654,696,697,698,701,702,705],{},"See refused calls to a module's webhook in the audit log (",[628,699,700],{},"Webhook refused",", ",[691,703,704],{},"protection.webhook-refused","), with\nwhy, once per route a minute.",[654,707,708],{},"Enter a module's webhook signing secrets on its settings page, and during a rotation the previous one too. They are\nkept sealed and never shown again.",[640,710,712],{"id":711},"who-may-do-it","Who may do it",[619,714,715],{},"Request protection has no permissions of its own: it applies to everyone, signed in or not.",[717,718,719,735],"table",{},[720,721,722],"thead",{},[723,724,725,729,732],"tr",{},[726,727,728],"th",{},"Action",[726,730,731],{},"Permission",[726,733,734],{},"Roles",[736,737,738,750],"tbody",{},[723,739,740,744,747],{},[741,742,743],"td",{},"Change the limits",[741,745,746],{},"none: set by SHADE's code and by whoever runs the instance",[741,748,749],{},"developers \u002F whoever deploys",[723,751,752,755,758],{},[741,753,754],{},"Be rate limited",[741,756,757],{},"none",[741,759,760],{},"everyone, including signed-out visitors and API tokens",[640,762,764],{"id":763},"in-the-admin","In the admin",[619,766,767,768,771],{},"Nothing directly: there is no screen or setting. The only place editors meet it is the ",[628,769,770],{},"Sign in"," page, which shows\n\"Too many requests. Try again later.\" when the sign-in limit is reached.",[640,773,775],{"id":774},"on-the-website","On the website",[651,777,778,788,791],{},[654,779,780,781,784,785,787],{},"Forms (the forms module's forms on pages, and the appointments booking form) carry a hidden \"Website\" field that\npeople never see or reach with Tab, and send how long the page was open. See ",[633,782,783],{"href":190},"The website","\nand, for accounts, ",[633,786,249],{"href":250},". Forms get their own page later.",[654,789,790],{},"When a limit is reached, the site shows its own \"too many\" text, in Dutch or English (below).",[654,792,793],{},"The shop's cart sends a fresh check with each checkout attempt and keeps it for retries of that attempt, so a\nretry never orders twice.",[795,796,660],"h3",{"id":797},"what-visitors-and-the-team-see",[717,799,800,810],{},[720,801,802],{},[723,803,804,807],{},[726,805,806],{},"Situation",[726,808,809],{},"What is shown",[736,811,812,820,828,836,844],{},[723,813,814,817],{},[741,815,816],{},"Over a rate limit",[741,818,819],{},"Form: \"You just sent this a few times. Please try again in a few minutes.\" Booking: \"You just booked a few times. Please try again in a few minutes.\" Cart and account page: \"Too many attempts. Try again in a minute.\" Admin sign-in: \"Too many requests. Try again later.\" (Dutch: \"Te veel verzoeken. Probeer het later opnieuw.\")",[723,821,822,825],{},[741,823,824],{},"A bot filled the hidden field, or sent the form within 3 seconds",[741,826,827],{},"The form's normal success message (nothing is stored)",[723,829,830,833],{},[741,831,832],{},"What was sent is too large",[741,834,835],{},"The form's generic \"did not work\" text",[723,837,838,841],{},[741,839,840],{},"A media upload is too large",[741,842,843],{},"The admin's error message \"Upload too large\"",[723,845,846,849],{},[741,847,848],{},"Limits cannot be counted just now (see below)",[741,850,851],{},"\"Requests cannot be counted just now. Try again shortly.\"",[619,853,854],{},"The Dutch texts on the website exist next to the English ones (e.g. \"Te veel pogingen. Probeer het over een minuut\nopnieuw.\"); the site picks them by the page's language.",[640,856,858],{"id":857},"rules-and-limits","Rules and limits",[795,860,862],{"id":861},"rate-limits","Rate limits",[619,864,865,866,869],{},"A ",[628,867,868],{},"rate limit"," allows one visitor a number of tries per time window. The window slides: someone cannot use the whole\nlimit at the end of one window and again at the start of the next. Refused tries count too, so retrying while refused\nkeeps someone refused.",[717,871,872,888],{},[720,873,874],{},[723,875,876,879,882,885],{},[726,877,878],{},"What",[726,880,881],{},"Limit",[726,883,884],{},"Window",[726,886,887],{},"Counted per",[736,889,890,904,916,928,941,954,967,978,989,1000,1011,1023,1035,1048,1062,1075,1086,1098,1109,1120,1132,1145,1156],{},[723,891,892,895,898,901],{},[741,893,894],{},"Editor sign-in",[741,896,897],{},"10",[741,899,900],{},"15 min",[741,902,903],{},"address",[723,905,906,909,911,913],{},[741,907,908],{},"Editor two-factor code",[741,910,897],{},[741,912,900],{},[741,914,915],{},"address (separate from sign-in)",[723,917,918,921,923,925],{},[741,919,920],{},"Editor passkey sign-in (both steps)",[741,922,897],{},[741,924,900],{},[741,926,927],{},"address (each step its own)",[723,929,930,933,936,938],{},[741,931,932],{},"The account page's password checks: changing the password or the email, turning two-factor on or off, allowing a passkey",[741,934,935],{},"5 together",[741,937,900],{},[741,939,940],{},"team member",[723,942,943,945,948,951],{},[741,944,371],{},[741,946,947],{},"120",[741,949,950],{},"1 min",[741,952,953],{},"API token",[723,955,956,959,962,965],{},[741,957,958],{},"Sending a form",[741,960,961],{},"5",[741,963,964],{},"10 min",[741,966,903],{},[723,968,969,972,974,976],{},[741,970,971],{},"Page views counted by the analytics module",[741,973,947],{},[741,975,950],{},[741,977,903],{},[723,979,980,983,985,987],{},[741,981,982],{},"Looking up free appointment times",[741,984,947],{},[741,986,964],{},[741,988,903],{},[723,990,991,994,996,998],{},[741,992,993],{},"Booking an appointment",[741,995,961],{},[741,997,964],{},[741,999,903],{},[723,1001,1002,1005,1007,1009],{},[741,1003,1004],{},"Checking out in the shop",[741,1006,897],{},[741,1008,950],{},[741,1010,903],{},[723,1012,1013,1016,1019,1021],{},[741,1014,1015],{},"Reading stock, the cart, an order's status",[741,1017,1018],{},"120, 120, 60",[741,1020,950],{},[741,1022,903],{},[723,1024,1025,1028,1030,1032],{},[741,1026,1027],{},"Accounts: signing in, signing up, resetting a password …",[741,1029,897],{},[741,1031,950],{},[741,1033,1034],{},"address, each action its own",[723,1036,1037,1040,1043,1045],{},[741,1038,1039],{},"Accounts: signing in, on top of the above",[741,1041,1042],{},"20",[741,1044,900],{},[741,1046,1047],{},"the account, however many addresses try",[723,1049,1050,1053,1056,1059],{},[741,1051,1052],{},"Accounts: sign-up and confirmation emails, on top of the above",[741,1054,1055],{},"3 together",[741,1057,1058],{},"1 h",[741,1060,1061],{},"the email address they go to",[723,1063,1064,1067,1070,1072],{},[741,1065,1066],{},"Accounts: password reset links, on top of the above",[741,1068,1069],{},"3",[741,1071,1058],{},[741,1073,1074],{},"the account, on their own",[723,1076,1077,1080,1082,1084],{},[741,1078,1079],{},"Confirming a user's address with the password",[741,1081,897],{},[741,1083,950],{},[741,1085,903],{},[723,1087,1088,1091,1093,1095],{},[741,1089,1090],{},"The same, on top of the above",[741,1092,897],{},[741,1094,900],{},[741,1096,1097],{},"the confirmation link, however many addresses try",[723,1099,1100,1103,1105,1107],{},[741,1101,1102],{},"Reading who is signed in on the website",[741,1104,947],{},[741,1106,950],{},[741,1108,903],{},[723,1110,1111,1114,1116,1118],{},[741,1112,1113],{},"Downloading one's own data",[741,1115,897],{},[741,1117,1058],{},[741,1119,903],{},[723,1121,1122,1125,1128,1130],{},[741,1123,1124],{},"Payment notices from Mollie",[741,1126,1127],{},"300",[741,1129,950],{},[741,1131,903],{},[723,1133,1134,1137,1140,1142],{},[741,1135,1136],{},"A module's routes for signed-in users, unless it sets its own",[741,1138,1139],{},"60",[741,1141,950],{},[741,1143,1144],{},"the user",[723,1146,1147,1150,1152,1154],{},[741,1148,1149],{},"Every module route for signed-in users, on top of the above",[741,1151,1127],{},[741,1153,950],{},[741,1155,903],{},[723,1157,1158,1164,1167,1169],{},[741,1159,1160,1161,1163],{},"Browser errors the site reports (",[633,1162,225],{"href":226},")",[741,1165,1166],{},"30",[741,1168,964],{},[741,1170,903],{},[651,1172,1173,1176,1179,1185,1188,1194,1197,1203],{},[654,1174,1175],{},"Each limit has its own budget, so filling one form does not use up another's.",[654,1177,1178],{},"Every route a module opens to visitors has a limit, counted per address: SHADE does not load a module that leaves\none out.",[654,1180,1181,1184],{},[628,1182,1183],{},"Address"," is the visitor's internet address. Someone with a block of addresses from one connection (IPv6) counts\nas one. The address itself is never stored.",[654,1186,1187],{},"The counts are kept only for the length of their window.",[654,1189,1190,1193],{},[628,1191,1192],{},"If limits cannot be counted"," (the instance's counting service is down), signing in, sending forms and every other\nlimited action is refused with \"Requests cannot be counted just now. Try again shortly.\" until it is back: nobody\ngets through uncounted. The error log shows it. Reading content keeps working.",[654,1195,1196],{},"The rest of the admin's work (editing, uploads, the site's build) has no rate limit.",[654,1198,1199,1202],{},[628,1200,1201],{},"Per account, too",". Someone with many networks could guess one account's password from each, so the\nteam's and users' sign-ins are also limited per account (20 a quarter hour), and the emails to one address to 3 an\nhour: the team's resets; users' sign-up and confirmation emails together, and users' reset links on their own, so\nsign-up and resend requests (which anyone can send for any address) never keep the owner from a reset. Anyone can\nuse up one account's budget, so its owner may have to wait a quarter hour to sign in, or up to an hour for a reset\nlink (accepted); an admin can send a user a link to choose a password from the Users screen meanwhile.",[654,1204,1205,1208,1209,1211,1212,1215,1216,661],{},[628,1206,1207],{},"Audited refusals",": team and user sign-ins record the first refused try of an address per window as\n",[691,1210,693],{}," (the limit's name as target, and a scrambled key, never the address), window after window\nwhile the refusals go on. When that entry can't be written, the answer is still 429 and the error log says why. Other limits are not\naudited: a flood of page views is no event. Each failed editor sign-in is audited on its own too, as\n",[691,1213,1214],{},"team.login-failed",", and repeated refusals raise a security alert (",[633,1217,225],{"href":226},[795,1219,1221],{"id":1220},"idempotency-keys","Idempotency keys",[619,1223,1224,1225,1228],{},"An ",[628,1226,1227],{},"idempotency key"," is a random string the browser sends with a request that must not run twice (a checkout).\nIf the same request arrives again with the same key, SHADE answers with the first result instead of running it again.",[651,1230,1231,1234,1241,1244],{},[654,1232,1233],{},"Today only the shop's checkout uses one.",[654,1235,1236,1237,1240],{},"A key is remembered for ",[628,1238,1239],{},"24 hours",". The shop also never makes a second order for the same key, so a retry after\n24 hours still finds the first order.",[654,1242,1243],{},"If the first try failed on SHADE's side, the same retry is run again.",[654,1245,1246,1247,1250],{},"If SHADE stopped in the middle of the first try (a crash or a restart), a retry is told the first one is still\nrunning for up to ",[628,1248,1249],{},"5 minutes",". After that the same retry runs.",[795,1252,1254],{"id":1253},"payment-notices","Payment notices",[619,1256,1257,1258,661],{},"Mollie tells the payments module when a payment changes. Mollie does not sign these notices, so the module trusts only\nthe payment id in them, asks Mollie itself for that payment and believes only Mollie's answer. Unknown payments are\nignored, and a paid amount or currency that differs from what was asked counts as failed. Refused notices are recorded\nand, in a burst, raise a security alert (",[633,1259,1260],{"href":358},"Payments",[795,1262,1264],{"id":1263},"modules-webhooks","Modules' webhooks",[619,1266,1267,1268,638],{},"A module that receives webhooks from a provider (Stripe, or one following Standard Webhooks) has each call checked\nbefore the module sees it: the call must be recent (within five minutes), signed with the module's signing secret (or\nthe previous one while it is being changed), and a call delivered twice is handled once. Anything else is refused\nwithout saying why, and the refusal is audited. For developers: ",[633,1269,486],{"href":487},[795,1271,1273],{"id":1272},"request-size","Request size",[651,1275,1276,1279],{},[654,1277,1278],{},"What is sent to SHADE is capped (1 MiB unless whoever runs the instance sets it otherwise).",[654,1280,1281,1282,638],{},"Media uploads have their own limit: 20 MB per file, 100 MB for a video or audio file. See\n",[633,1283,136],{"href":137},[795,1285,1287],{"id":1286},"security-headers","Security headers",[619,1289,1290,1291,638],{},"SHADE's answers and the site's pages tell browsers to be careful: use only HTTPS for the site's domain and its\nsubdomains once they have seen it (for a year), never let another site show the admin in a frame, and run only the\nscripts the admin and the site ship themselves, plus those from outside hosts a switched-on module declares. Content\nin a page can never widen that list. The exact headers are for whoever runs the instance: ",[633,1292,1293],{"href":556},"Hardening a production\ninstance",[795,1295,1297],{"id":1296},"form-spam","Form spam",[619,1299,1300],{},"The forms module and appointment booking share three measures: the hidden \"Website\" field, a minimum fill time of 3\nseconds (a form sent without its time counts as too fast) and the per-address rate limit. The forms module also\naccepts only published forms and only their own fields, and stores only a scrambled form of the address.",[795,1302,1304],{"id":1303},"cleanup","Cleanup",[619,1306,1307,1308,1310,1311,1313],{},"Stored checkout answers go after a day (the fixed kind ",[623,1309,265],{}," in ",[633,1312,273],{"href":274},").\nRate-limit counts need no cleanup: they expire on their own.",[640,1315,1317],{"id":1316},"for-developers","For developers",[619,1319,1320,1321,1324,1325,1328],{},"The code and its tests: ",[691,1322,1323],{},"shade\u002Fkernel\u002Fprotection\u002FREADME.md"," in the ",[691,1326,1327],{},"shade"," repository.",{"title":1330,"searchDepth":1331,"depth":1331,"links":1332},"",2,[1333,1334,1335,1336,1340,1350],{"id":642,"depth":1331,"text":643},{"id":711,"depth":1331,"text":712},{"id":763,"depth":1331,"text":764},{"id":774,"depth":1331,"text":775,"children":1337},[1338],{"id":797,"depth":1339,"text":660},3,{"id":857,"depth":1331,"text":858,"children":1341},[1342,1343,1344,1345,1346,1347,1348,1349],{"id":861,"depth":1339,"text":862},{"id":1220,"depth":1339,"text":1221},{"id":1253,"depth":1339,"text":1254},{"id":1263,"depth":1339,"text":1264},{"id":1272,"depth":1339,"text":1273},{"id":1286,"depth":1339,"text":1287},{"id":1296,"depth":1339,"text":1297},{"id":1303,"depth":1339,"text":1304},{"id":1316,"depth":1331,"text":1317},"md",null,{},true,{"title":265,"description":1330},"tFDZTIX-ObYqAouc56NH5HseJHMLPxFAxdazsB9vCJE",[1358,1359],{"title":261,"path":262,"stem":263,"description":1330,"children":-1},{"title":269,"path":270,"stem":271,"description":1330,"children":-1},1796500157942]