[{"data":1,"prerenderedAt":1699},["ShallowReactive",2],{"navigation_docs":3,"-developers-trust":613,"-developers-trust-surround":1696},[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":393,"body":615,"description":654,"extension":1690,"links":1691,"meta":1692,"navigation":1693,"path":394,"seo":1694,"stem":395,"__hash__":1695},"docs\u002F4.developers\u002F11.trust.md",{"type":616,"value":617,"toc":1683},"minimark",[618,632,637,648,754,757,837,861,872,876,955,959,974,1444,1448,1583,1593,1597,1679],[619,620,621,622,626,627,631],"p",{},"A module is trusted or untrusted, and SHADE decides which; a module never does. A trusted module runs\ninside the API's process and can do anything it can. An untrusted module runs in the sandbox (",[623,624,625],"code",{},"workerd",") with only what\nits ",[628,629,630],"a",{"href":390},"capabilities"," give it. What each kind may declare is in the capabilities; this page is how\nthe kind is decided and shown.",[633,634,636],"h2",{"id":635},"how-trust-is-decided","How trust is decided",[619,638,639,640,643,644,647],{},"One pure function decides, ",[623,641,642],{},"trustOf"," in ",[623,645,646],{},"shade\u002Fkernel\u002Fmodules\u002Ftrust.ts",". Its only inputs are the package and the\ninstance's state:",[649,650,655],"pre",{"className":651,"code":652,"language":653,"meta":654,"style":654},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","trustOf({\n  format,      \u002F\u002F 1: a sandbox package, 2: a server package\n  file,        \u002F\u002F the whole package file, as installed\n  trustedKeys, \u002F\u002F SHADE_TRUSTED_MODULE_KEYS, parsed\n  approvals,   \u002F\u002F rows of module_approvals, revoked ones included\n  approvalsOn, \u002F\u002F SHADE_PACKAGE_APPROVAL\n  devFolder    \u002F\u002F the module's folder from SHADE_DEV_MODULES, or null\n}): ModuleTrust | null\n","ts","",[623,656,657,673,686,697,708,719,730,739],{"__ignoreMap":654},[658,659,662,665,669],"span",{"class":660,"line":661},"line",1,[658,663,642],{"class":664},"s2Zo4",[658,666,668],{"class":667},"sTEyZ","(",[658,670,672],{"class":671},"sMK4o","{\n",[658,674,676,679,682],{"class":660,"line":675},2,[658,677,678],{"class":667},"  format",[658,680,681],{"class":671},",",[658,683,685],{"class":684},"sHwdD","      \u002F\u002F 1: a sandbox package, 2: a server package\n",[658,687,689,692,694],{"class":660,"line":688},3,[658,690,691],{"class":667},"  file",[658,693,681],{"class":671},[658,695,696],{"class":684},"        \u002F\u002F the whole package file, as installed\n",[658,698,700,703,705],{"class":660,"line":699},4,[658,701,702],{"class":667},"  trustedKeys",[658,704,681],{"class":671},[658,706,707],{"class":684}," \u002F\u002F SHADE_TRUSTED_MODULE_KEYS, parsed\n",[658,709,711,714,716],{"class":660,"line":710},5,[658,712,713],{"class":667},"  approvals",[658,715,681],{"class":671},[658,717,718],{"class":684},"   \u002F\u002F rows of module_approvals, revoked ones included\n",[658,720,722,725,727],{"class":660,"line":721},6,[658,723,724],{"class":667},"  approvalsOn",[658,726,681],{"class":671},[658,728,729],{"class":684}," \u002F\u002F SHADE_PACKAGE_APPROVAL\n",[658,731,733,736],{"class":660,"line":732},7,[658,734,735],{"class":667},"  devFolder    ",[658,737,738],{"class":684},"\u002F\u002F the module's folder from SHADE_DEV_MODULES, or null\n",[658,740,742,745,748,751],{"class":660,"line":741},8,[658,743,744],{"class":671},"}",[658,746,747],{"class":667},"): ModuleTrust ",[658,749,750],{"class":671},"|",[658,752,753],{"class":671}," null\n",[619,755,756],{},"The rules, in order:",[758,759,760,776,794,807,821],"ol",{},[761,762,763,767,768,771,772,775],"li",{},[764,765,766],"strong",{},"A sandbox package is untrusted",", whoever signed it: ",[623,769,770],{},"{ level: 'untrusted', by: 'sandbox', signedBy }",". A\nsignature by a trusted key only names who made it (",[623,773,774],{},"signedBy",").",[761,777,778,781,782,785,786,789,790,793],{},[764,779,780],{},"A development folder is trusted"," (",[623,783,784],{},"by: 'development'","). ",[623,787,788],{},"SHADE_DEV_MODULES"," is refused in production\n(",[623,791,792],{},"devModulesRefusal","), so no folder is ever passed there.",[761,795,796,781,799,802,803,806],{},[764,797,798],{},"A server package signed by a trusted key is trusted",[623,800,801],{},"by: 'signature'",", with the key's name). The signature is\nEd25519 over the canonical JSON of the file without its ",[623,804,805],{},"signature","; a file changed after signing, a key the\ninstance doesn't list, or a signature under a listed name made with another key, is no signature.",[761,808,809,781,812,815,816,820],{},[764,810,811],{},"A server package an admin approved is trusted",[623,813,814],{},"by: 'approval'",") while approvals are on and an approval that\nisn't revoked is for exactly this package: SHA-256 of the canonical JSON of the whole file, so one changed byte is\nanother hash (the ",[628,817,819],{"href":818},"#the-approval-flow","approval flow"," below).",[761,822,823,781,826,829,830,832,833,836],{},[764,824,825],{},"Otherwise a server package doesn't run",[623,827,828],{},"null","): it can't be installed, and at start it is left out with the\nreason ",[623,831,805],{},", or ",[623,834,835],{},"approval"," for a package installed by an approval that no longer holds (approvals switched\noff, the approval revoked, or the stored file not the approved one), saying which.",[619,838,839,841,842,845,846,849,850,853,854,857,858,775],{},[623,840,642],{}," runs at install and at every start (",[623,843,844],{},"checkedPackage"," and ",[623,847,848],{},"modulePackagesForStart"," in\n",[623,851,852],{},"shade\u002Ffeatures\u002Fpackages\u002Fserver\u002Fpackages.ts","; the API for development folders in\n",[623,855,856],{},"apps\u002Fapi\u002Fsrc\u002Fbootstrap\u002Fruntime.ts","). The answer is never stored in the manifest, never given to the module and never\nread from a service context. A module learns only whether it may use a capability (",[623,859,860],{},"hasCapability",[619,862,863,864,867,868,871],{},"The canonical JSON, the signature check, the hash and the key fingerprint are ",[623,865,866],{},"shade\u002Fkernel\u002Fmodules\u002Fsigning.ts","\n(Node's own crypto); ",[623,869,870],{},"shade\u002Ffeatures\u002Fpackages\u002Fserver\u002Fsignatures.ts"," builds on it (key pairs, signing, and the\nerrors an install shows).",[633,873,875],{"id":874},"nothing-a-module-writes-claims-trust","Nothing a module writes claims trust",[877,878,879,901,919,933,936],"ul",{},[761,880,881,882,885,886,889,890,892,893,896,897,900],{},"A manifest with a ",[623,883,884],{},"trust",", ",[623,887,888],{},"trusted"," or ",[623,891,835],{}," key is refused by the loader (",[623,894,895],{},"validateModule","), whatever the\nmodule's kind and even if a feature registered such a part: ",[623,898,899],{},"\"trust\" is not allowed: SHADE decides whether a module is trusted, never the module",".",[761,902,903,904,907,908,911,912,915,916,918],{},"A trusted module may not set ",[623,905,906],{},"sandbox"," either. Only the code that builds a sandbox package's module sets it, and the\nModules screen reads it to show a module as untrusted; a server package setting it still runs in the API's process,\nso the loader refuses it at start and ",[623,909,910],{},"shade-module build"," refuses to build it: ",[623,913,914],{},"\"sandbox\" is not allowed: SHADE sets it for sandbox packages only, never the module",". ",[623,917,895],{}," takes the module's trust from its caller, never\nfrom the manifest.",[761,920,921,922,925,926,885,929,932],{},"A server package with one of those keys is refused at install (VALIDATION, the key as the issue's path) and left out\nat start (reason ",[623,923,924],{},"invalid","), signed or not. The package schema strips unknown keys, so the check\n(",[623,927,928],{},"trustClaimProblems",[623,930,931],{},"TRUST_CLAIM_KEYS",") runs on the file as uploaded.",[761,934,935],{},"A sandbox package's schema is strict, so the keys are unknown and refused.",[761,937,938,845,940,943,944,947,948,951,952,900],{},[623,939,884],{},[623,941,942],{},"approvals"," are reserved module names (",[623,945,946],{},"reservedNames()","): the management areas ",[623,949,950],{},"\u002Fapi\u002Fpackages\u002Ftrust"," and\n",[623,953,954],{},"\u002Fapi\u002Fpackages\u002Fapprovals",[633,956,958],{"id":957},"the-approval-flow","The approval flow",[619,960,961,962,965,966,969,970,973],{},"A server package no trusted key signed becomes trusted when an admin approves exactly its hash,\nafter signing in again with the password and two-factor or a passkey. It exists only where the operator set\n",[623,963,964],{},"SHADE_PACKAGE_APPROVAL=true",", read by ",[623,967,968],{},"apps\u002Fapi\u002Fsrc\u002Fconfig.ts"," into ",[623,971,972],{},"config.moduleApprovals"," and nowhere else (no\ndatabase row, no admin switch).",[877,975,976,1009,1257,1298,1316,1401,1420],{},[761,977,978,981,982,985,986,988,989,991,992,995,996,998,999,1002,1003,845,1005,900],{},[764,979,980],{},"Off"," (the default): ",[623,983,984],{},"apiRoutes"," mounts none of ",[623,987,954],{}," (404; ",[623,990,942],{}," being reserved, the\nmodules' dispatcher finds nothing there either); every service in\n",[623,993,994],{},"shade\u002Ffeatures\u002Fpackages\u002Fserver\u002Fapprovals.ts"," answers NOT_FOUND whoever asks; ",[623,997,848],{}," gets\n",[623,1000,1001],{},"approvalsOn: false",", so an approved package is left out at start with reason ",[623,1004,835],{},[1006,1007,1008],"em",{},"Approvals are switched\noff on this instance",[761,1010,1011,1014,1015,1018,1019,1022,1023,1026,1027,1030,1031],{},[764,1012,1013],{},"On",": the services, each ",[623,1016,1017],{},"packages.manage"," plus ",[623,1020,1021],{},"assertSignedIn"," (so never a module's own actor: ",[623,1024,1025],{},"plugins.*"," is never\ngrantable), under the ",[623,1028,1029],{},"shade:module-packages"," advisory lock where they write, in one transaction, audited:",[1032,1033,1034,1050],"table",{},[1035,1036,1037],"thead",{},[1038,1039,1040,1044,1047],"tr",{},[1041,1042,1043],"th",{},"Route",[1041,1045,1046],{},"Service",[1041,1048,1049],{},"What it does",[1051,1052,1053,1084,1099,1125,1140,1170,1210,1227],"tbody",{},[1038,1054,1055,1061,1066],{},[1056,1057,1058],"td",{},[623,1059,1060],{},"POST \u002Fapi\u002Fpackages\u002Fapprovals",[1056,1062,1063],{},[623,1064,1065],{},"submitForApproval",[1056,1067,1068,1069,1072,1073,1076,1077,1080,1081],{},"Checks the file as installing does besides the signature (",[623,1070,1071],{},"packageProblems",": schema, trust claims, ",[623,1074,1075],{},"shade"," range, shared modules); refuses a sandbox package, a package a trusted key signed and an untrusted module's name; stores it in ",[623,1078,1079],{},"module_package_pending"," (one per name, replaced by a new upload). ",[623,1082,1083],{},"packages.approval-requested",[1038,1085,1086,1091,1096],{},[1056,1087,1088],{},[623,1089,1090],{},"GET \u002Fapi\u002Fpackages\u002Fapprovals",[1056,1092,1093],{},[623,1094,1095],{},"listPendingApprovals",[1056,1097,1098],{},"The waiting packages with their checks",[1038,1100,1101,1106,1111],{},[1056,1102,1103],{},[623,1104,1105],{},"GET \u002Fapi\u002Fpackages\u002Fapprovals\u002F:name",[1056,1107,1108],{},[623,1109,1110],{},"approvalReview",[1056,1112,1113,1114,1117,1118,1121,1122],{},"The checks, the advisory list's date, the consent (",[623,1115,1116],{},"summaryOf"," with ",[623,1119,1120],{},"signedBy: null",") or why it can't be approved now, and the admin's ",[623,1123,1124],{},"SecondFactors",[1038,1126,1127,1132,1137],{},[1056,1128,1129],{},[623,1130,1131],{},"POST \u002Fapi\u002Fpackages\u002Fapprovals\u002Freauthenticate\u002Foptions",[1056,1133,1134],{},[623,1135,1136],{},"approvalPasskeyOptions",[1056,1138,1139],{},"A passkey challenge for the admin's own passkeys, with its cookie",[1038,1141,1142,1147,1152],{},[1056,1143,1144],{},[623,1145,1146],{},"POST \u002Fapi\u002Fpackages\u002Fapprovals\u002Freauthenticate",[1056,1148,1149],{},[623,1150,1151],{},"reauthenticateForApproval",[1056,1153,1154,1155,1158,1159,1162,1163,1166,1167],{},"Signing in again: FORBIDDEN (",[623,1156,1157],{},"NEEDS_SECOND_FACTOR",") without a second factor; five attempts a quarter hour per team member (",[623,1160,1161],{},"hitRateLimit",", RATE_LIMITED); a wrong password or factor is VALIDATION and ",[623,1164,1165],{},"packages.approve-failed","; else a ticket and ",[623,1168,1169],{},"packages.approve-reauthenticated",[1038,1171,1172,1177,1182],{},[1056,1173,1174],{},[623,1175,1176],{},"POST \u002Fapi\u002Fpackages\u002Fapprovals\u002F:name\u002Fapprove",[1056,1178,1179],{},[623,1180,1181],{},"approveModulePackage",[1056,1183,1184,1187,1188,1191,1192,1194,1195,1198,1199,1202,1203,1206,1207],{},[623,1185,1186],{},"{ hash, ticket, typedName, accepted, acknowledged }",": the typed name, every finding acknowledged, the consent and what the package builds on (",[623,1189,1190],{},"checkConsent",", read only, so a VALIDATION leaves the ticket for the corrected call), the ticket taken from the cache (FORBIDDEN and ",[623,1193,1165],{}," unless it is this team member's, this session's and this hash's), then ",[623,1196,1197],{},"module_approvals"," (hash, version, checks, approver, time), the package stored with ",[623,1200,1201],{},"approval_id"," and no signature (",[623,1204,1205],{},"storePackage",", as installing: the consent checked again under the lock, capability states), the pending row deleted. ",[623,1208,1209],{},"packages.approve",[1038,1211,1212,1217,1222],{},[1056,1213,1214],{},[623,1215,1216],{},"POST \u002Fapi\u002Fpackages\u002Fapprovals\u002F:name\u002Fdiscard",[1056,1218,1219],{},[623,1220,1221],{},"discardPendingApproval",[1056,1223,1224],{},[623,1225,1226],{},"packages.approval-discarded",[1038,1228,1229,1234,1239],{},[1056,1230,1231],{},[623,1232,1233],{},"DELETE \u002Fapi\u002Fpackages\u002Fapprovals\u002F:id",[1056,1235,1236],{},[623,1237,1238],{},"revokeModuleApproval",[1056,1240,1241,1242,1245,1246,1249,1250,1253,1254],{},"Sets ",[623,1243,1244],{},"revoked_at",", switches the module off (also under the ",[623,1247,1248],{},"shade:plugins"," lock) and announces it, so every container switches it off and the workers stop its processes and skip its schedules; ",[623,1251,1252],{},"switchInstalledModule"," refuses to switch it on again. ",[623,1255,1256],{},"packages.revoke",[761,1258,1259,1262,1263,781,1266,1269,1270,1273,1274,1277,1278,1281,1282,1285,1286,1289,1290,1293,1294,1297],{},[764,1260,1261],{},"Signing in again"," is the team part's ",[623,1264,1265],{},"confirmIdentity",[623,1267,1268],{},"shade\u002Ffeatures\u002Fteam\u002Fserver\u002Fconfirm-identity.ts","): the\npassword through Better Auth's ",[623,1271,1272],{},"verifyPassword",", then a TOTP (six digits) through ",[623,1275,1276],{},"verifyTOTP"," or a backup\ncode through ",[623,1279,1280],{},"verifyBackupCode"," on the current session, or a passkey assertion through Better Auth's own\nverification, stopped before it makes a session by the passkey module's ",[623,1283,1284],{},"authentication.afterVerification"," hook\n(",[623,1287,1288],{},"confirmWithPasskey","), which also checks the passkey is this team member's. It answers the session's id or null,\nnever which part was wrong; the password is checked first, so a wrong one spends no backup code. ",[623,1291,1292],{},"teamIdentity(auth, ctx, headers)"," wraps it as the ",[623,1295,1296],{},"ApprovalIdentity"," the services take.",[761,1299,1300,1303,1304,1307,1308,1311,1312,1315],{},[764,1301,1302],{},"The ticket",": 32 random bytes (base64url), kept in the cache port (",[623,1305,1306],{},"ctx.cache",", Redis) only under its SHA-256 for\nfive minutes (",[623,1309,1310],{},"APPROVAL_TICKET_TTL_MS","), bound to the team member, the session, the module's name and the hash, and\ntaken with ",[623,1313,1314],{},"take"," (GETDEL), so it is used once whatever happens next.",[761,1317,1318,781,1321,643,1324,1327,1328,885,1331,1334,1335,885,1338,1341,1342,1345,1346,781,1349,1352,1353,1356,1357,1359,1360,1362,1363,1366,1367,1370,1371,1374,1375,1378,1379,1382,1383,781,1386,1389,1390,1393,1394,1397,1398,900],{},[764,1319,1320],{},"The checks",[623,1322,1323],{},"approvalChecks(pkg, advisories)",[623,1325,1326],{},"server\u002Fapproval-checks.ts",", pure, nothing of the package runs):\nimports (",[623,1329,1330],{},"importedModules",[623,1332,1333],{},"RISKY_NODE_MODULES"," flagged); the declaration (capabilities, uses, admin places), which\nevery start holds the code to (",[623,1336,1337],{},"unlistedCapabilities",[623,1339,1340],{},"unlistedAdminPlaces",": reading what the code does means\nrunning its manifest, so it isn't compared before approval); ",[623,1343,1344],{},"bundled"," against the advisory list shipped in\n",[623,1347,1348],{},"server\u002Fadvisories.ts",[623,1350,1351],{},"SHIPPED_ADVISORIES",": a package, an npm range, a GHSA id, ",[623,1354,1355],{},"asOf","; brought up to date before\neach release; no outside call), ",[623,1358,828],{}," (unknown) without ",[623,1361,1344],{},"; hosts in ",[623,1364,1365],{},"https?:\u002F\u002F"," literals of ",[623,1368,1369],{},"module.mjs"," not\ndeclared by ",[623,1372,1373],{},"network"," (wildcards cover subdomains); imports of the SDK's testing entries; ",[623,1376,1377],{},"process.env"," reads;\n",[623,1380,1381],{},"admin-dist\u002Fstyle.css"," rules outside ",[623,1384,1385],{},"[data-shade-module=\"\u003Cname>\"]",[623,1387,1388],{},"unscopedRules","). Each finding has an id\n(",[623,1391,1392],{},"\u003Ckind>:\u003Csubject>",") that ",[623,1395,1396],{},"acknowledged"," must list. The checks as the admin saw them are kept in\n",[623,1399,1400],{},"module_approvals.checks",[761,1402,1403,1406,1407,1410,1411,1414,1415,845,1417,1419],{},[764,1404,1405],{},"Alerts",": the ",[623,1408,1409],{},"plugins"," rule of ",[623,1412,1413],{},"features\u002Ferrors\u002Fserver\u002Falerts.ts"," reads ",[623,1416,1209],{},[623,1418,1256],{}," too,\nso every admin is emailed.",[761,1421,1422,1425,1426,1429,1430,1432,1433,1436,1437,1439,1440,1443],{},[764,1423,1424],{},"At start",": ",[623,1427,1428],{},"modulePackagesForStart(db, keys, { approvalsOn })"," reads every row of ",[623,1431,1197],{},"\n(",[623,1434,1435],{},"approvalsForTrust",") for ",[623,1438,642],{},"; an approved package runs while its hash matches an approval that isn't revoked.\nA new upload of the same module only waits: only approving replaces the ",[623,1441,1442],{},"module_packages"," row, so the approved\nversion keeps running.",[633,1445,1447],{"id":1446},"where-it-shows","Where it shows",[877,1449,1450,1527],{},[761,1451,1452,1425,1455,781,1458,1461,1462,849,1465,1468,1469,781,1472,1475,1476,1432,1479,1482,1483,1486,1487,1490,1491,1494,1495,1498,1499,1502,1503,1506,1507,1510,1511,1514,1515,1518,1519,1522,1523,1526],{},[764,1453,1454],{},"The instance's trust",[623,1456,1457],{},"GET \u002Fapi\u002Fpackages\u002Ftrust",[623,1459,1460],{},"packages.read",", admins), ",[623,1463,1464],{},"instanceTrust",[623,1466,1467],{},"shade\u002Ffeatures\u002Fpackages\u002Fserver\u002Ftrust-info.ts",", returns ",[623,1470,1471],{},"TrustInfo",[623,1473,1474],{},"shared\u002Ftrust.ts","): each trusted key's\nname and fingerprint (the first 8 hex characters of SHA-256 of the key's 32 bytes, never the key), ",[623,1477,1478],{},"approvalsOn",[623,1480,1481],{},"SHADE_PACKAGE_APPROVAL","), ",[623,1484,1485],{},"approved"," (while it is on: each installed package whose approval holds, with its\napproval's id, version, hash, approver's name and time), ",[623,1488,1489],{},"untrustedAllowed"," (the ",[1006,1492,1493],{},"Allow untrusted modules"," switch),\n",[623,1496,1497],{},"development"," (development folders loaded) and the counts of trusted and untrusted modules running. The Modules page\nshows it in ",[623,1500,1501],{},"InstanceTrustCard.vue",": a plain summary of what trusted and untrusted mean, the counts and the\nuntrusted switch first, and the keys, approvals, development folders and each approved package with its hash in\n",[1006,1504,1505],{},"Technical details",", a ",[623,1508,1509],{},"UCollapsible"," closed by default. While approvals are on, ",[623,1512,1513],{},"ModuleApprovalPanel.vue"," (upload,\nwaiting packages, approved packages with ",[764,1516,1517],{},"Revoke",") and ",[623,1520,1521],{},"ModuleApprovalModal.vue"," (the checks with a box per\nfinding, the consent, signing in again with a code or a passkey through ",[623,1524,1525],{},"usePasskeyAssertion",", the typed name) sit\nbelow the server packages.",[761,1528,1529,1425,1532,1535,1536,1506,1539,1542,1543,1546,1547,1550,1551,1553,1554,1556,1557,1560,1561,1563,1564,1567,1568,1571,1572,889,1575,1578,1579,1582],{},[764,1530,1531],{},"Each module's trust",[623,1533,1534],{},"InstalledModuleInfo.trust"," on ",[623,1537,1538],{},"GET \u002Fapi\u002Fpackages\u002Fcatalog",[623,1540,1541],{},"ModuleTrustView"," made by\n",[623,1544,1545],{},"moduleTrustView"," from what the API worked out at start (",[623,1548,1549],{},"runtime.moduleTrust()","): ",[623,1552,805],{}," with the key's name,\n",[623,1555,835],{}," with the approver's name (",[623,1558,1559],{},"listInstalledModules"," looks it up; null for an account deleted since), the time and the\nhash, ",[623,1562,1497],{}," without its folder's path, or ",[623,1565,1566],{},"untrusted"," from the\nsandbox package with who signed it. ",[623,1569,1570],{},"ModuleTrustBadge.vue"," shows ",[1006,1573,1574],{},"Trusted",[1006,1576,1577],{},"Untrusted"," as a button opening a\n",[623,1580,1581],{},"UPopover"," (click or tap, so touch works) with one sentence on what it means and who signed or approved it (no hash);\nthe button's accessible label carries the same sentence. It is null where the answer isn't known (the\nanswers of switching a module and saving its settings).",[619,1584,1585,1586,643,1589,1592],{},"The texts are under ",[623,1587,1588],{},"plugins.trust.*",[623,1590,1591],{},"shade\u002Ffeatures\u002Fpackages\u002Fadmin\u002Flocales\u002F{en,nl}.json",", with the\nglossary's Dutch words (vertrouwd, niet-vertrouwd, ondertekend, goedgekeurd).",[633,1594,1596],{"id":1595},"tests","Tests",[877,1598,1599,1611,1617,1623,1629,1635,1648],{},[761,1600,1601,1604,1605,1607,1608,1610],{},[623,1602,1603],{},"shade\u002Ftest\u002Fkernel\u002Fmodules\u002Ftrust.test.ts",": trust never read from a manifest (claims refused by the loader, the sandbox\npackage's schema and ",[623,1606,928],{},"; ",[623,1609,906],{}," refused on a trusted module; a package claiming it still doesn't run); a sandbox package untrusted even\nwhen a trusted key signed it (approved or in a folder too); a server package nobody signed or approved not run\n(unknown key, another key under a listed name, changed after signing, a key taken out); an approval only for its\nhash (one changed byte, another version, revoked, another name); approvals ignored while off; a development folder\nonly outside production; the key fingerprint.",[761,1612,1613,1616],{},[623,1614,1615],{},"shade\u002Ftest\u002Ffeatures\u002Fpackages\u002Fserver\u002Fpackages.test.ts",": each package's trust at start, and a package claiming trust\nrefused at install and left out at start, signed or not.",[761,1618,1619,1622],{},[623,1620,1621],{},"shade\u002Ftest\u002Ffeatures\u002Fpackages\u002Fserver\u002Ftrust-info.test.ts",": the instance's trust (keys by fingerprint and never the\nkey, the untrusted switch, development, counts, admins only) and each module's badge (a sandbox package untrusted\nwhatever else is said, a folder's path never shown, no badge where nothing was worked out, an approver by name).",[761,1624,1625,1628],{},[623,1626,1627],{},"shade\u002Ftest\u002Ffeatures\u002Fpackages\u002Fserver\u002Fapprovals.test.ts"," (Postgres, real team sign-in and two-factor codes): every\ncall NOT_FOUND while approvals are off; approving only after signing in again within five minutes, never with the\npassword alone, a backup code once; five attempts a quarter hour; an admin with neither factor refused and told to\nset one up; a ticket used once, for one session, one team member and one hash; the approval recorded, audited and\nalerted; the approved version running until the next is approved; a package changed after approval and one with\napprovals off left out at start, saying why; a module's actor, an editor and nobody refused; a revoked package\nswitched off and left out; a sandbox package, a trust claim or a signed package never approved.",[761,1630,1631,1634],{},[623,1632,1633],{},"shade\u002Ftest\u002Ffeatures\u002Fpackages\u002Fserver\u002Fapproval-checks.test.ts",": risky imports, environment reads, test entries,\nundeclared hosts, unscoped styles and bundled packages on the advisory list, each a finding; a real build's\nstylesheet counts as scoped.",[761,1636,1637,1640,1641,1644,1645,775],{},[623,1638,1639],{},"apps\u002Fapi\u002Ftest\u002Fconfig.test.ts",": \"reads SHADE_PACKAGE_APPROVAL as off by default\"; ",[623,1642,1643],{},"apps\u002Fapi\u002Ftest\u002Fsweep\u002Faccess.test.ts",":\nno approval route while it is off, and every approval route's answer for every kind of actor (",[623,1646,1647],{},"access-table.ts",[761,1649,1650,1653,1654,1656,1657,1660,1661,1425,1664,1666,1667,1670,1671,1674,1675,1678],{},[623,1651,1652],{},"e2e\u002Ftests\u002Fmodules-packages.spec.ts",": the trust card's summary, counts and untrusted switch, the technical details\nclosed until opened (keys by fingerprint, approvals on, no development folders, no approved packages), and the\ninstalled package's ",[1006,1655,1574],{}," with its meaning and ",[1006,1658,1659],{},"Signed by shade-tests-packages.",", and no hash;\n",[623,1662,1663],{},"e2e\u002Ftests\u002Fmodules-untrusted.spec.ts",[1006,1665,1577],{}," with its accessible name, and ",[1006,1668,1669],{},"Signed by shade-tests."," in the\nsigned sandbox package's popover; ",[623,1672,1673],{},"e2e\u002Ftests\u002Fmodules-approvals.spec.ts",": an admin uploads a package nobody signed\n(made in the test from a fixture without its signature), is told to set up a second factor, adds a passkey, ticks\neach finding, signs in again with the password and the passkey, approves it, sees it under ",[1006,1676,1677],{},"Approved packages"," with\nits hash, and revokes it.",[1680,1681,1682],"style",{},"html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":654,"searchDepth":675,"depth":675,"links":1684},[1685,1686,1687,1688,1689],{"id":635,"depth":675,"text":636},{"id":874,"depth":675,"text":875},{"id":957,"depth":675,"text":958},{"id":1446,"depth":675,"text":1447},{"id":1595,"depth":675,"text":1596},"md",null,{},true,{"title":393,"description":654},"YoCCTj27jLM8eaYSD_rX8CcOpUe2IrNfCKArnG0QDe4",[1697,1698],{"title":389,"path":390,"stem":391,"description":654,"children":-1},{"title":397,"path":398,"stem":399,"description":654,"children":-1},1796500154506]