[{"data":1,"prerenderedAt":406,"buildId":407},["ShallowReactive",2],{"docs_security":3,"nav-api":287,"nav-docs":356},{"id":4,"title":5,"body":6,"description":16,"extension":280,"meta":281,"navigation":282,"path":283,"seo":284,"stem":285,"__hash__":286},"docs\u002Fdocs\u002F13.security.md","Security",{"type":7,"value":8,"toc":270},"minimark",[9,13,17,22,50,79,88,95,99,118,121,154,158,174,177,181,188,195,198,202,233,237,240,244,252,256,266],[10,11,5],"h1",{"id":12},"security",[14,15,16],"p",{},"LokalBoards holds a team's plans, so an instance reachable from the internet\ndeserves a few minutes of setup beyond getting it to start. Most of what follows\nis already the default; this page says where it is not, and what each setting\nleaves open.",[18,19,21],"h2",{"id":20},"who-can-get-in","Who can get in",[14,23,24,28,29,33,34,37,38,41,42,45,46,49],{},[25,26,27],"strong",{},"Turn sign-up off on an instance others can reach."," With\n",[30,31,32],"code",{},"NUXT_PUBLIC_SIGNUP=true",", the default, anybody who finds the address can make\nan account — and every signed-in account can read every board set to\n",[25,35,36],{},"public",". With it off, accounts come from three places only: the first\nadministrator, created at start from ",[30,39,40],{},"NUXT_ADMIN_EMAIL"," and\n",[30,43,44],{},"NUXT_ADMIN_PASSWORD"," when the instance has none; an administrator under\n",[25,47,48],{},"Users","; and an invitation to a board, whose link lets the invited address\nregister even with sign-up off.",[51,52,57],"pre",{"className":53,"code":54,"language":55,"meta":56,"style":56},"language-dotenv shiki shiki-themes github-light github-dark","NUXT_PUBLIC_SIGNUP=false\nNUXT_ADMIN_EMAIL=you@example.com\nNUXT_ADMIN_PASSWORD=a-long-password\n","dotenv","",[30,58,59,67,73],{"__ignoreMap":56},[60,61,64],"span",{"class":62,"line":63},"line",1,[60,65,66],{},"NUXT_PUBLIC_SIGNUP=false\n",[60,68,70],{"class":62,"line":69},2,[60,71,72],{},"NUXT_ADMIN_EMAIL=you@example.com\n",[60,74,76],{"class":62,"line":75},3,[60,77,78],{},"NUXT_ADMIN_PASSWORD=a-long-password\n",[14,80,81,82,87],{},"Single sign-on can take the place of passwords entirely — see\n",[83,84,86],"a",{"href":85},"\u002Fdocs\u002Fsingle-sign-on","Single Sign-On",", including how to limit it to your own\ne-mail domain.",[14,89,90,91,94],{},"A sign-in lasts a day unless ",[30,92,93],{},"NUXT_SESSION_MAX_AGE_DAYS"," says otherwise.\nResetting a password through a link ends every session of that account, and\nchanging it ends all but the one it was changed in, unless asked to keep them.",[18,96,98],{"id":97},"https-in-front","HTTPS in front",[14,100,101,102,105,106,109,110,113,114,117],{},"Run LokalBoards behind a reverse proxy that terminates TLS, and set\n",[30,103,104],{},"NUXT_BOARDS_URL"," to the ",[30,107,108],{},"https:\u002F\u002F"," address people use. That address is what\nlinks in e-mails and single sign-on are built from, and it is how the instance\nknows to mark its session cookie ",[30,111,112],{},"Secure",". A proxy that sends\n",[30,115,116],{},"X-Forwarded-Proto: https"," does the same.",[14,119,120],{},"The published port listens on every interface of the host. With the proxy on\nthe same machine, publish it to the loopback interface only, so the plain-HTTP\nport is not reachable from outside:",[51,122,126],{"className":123,"code":124,"language":125,"meta":56,"style":56},"language-bash shiki shiki-themes github-light github-dark","docker run -d -p 127.0.0.1:3000:3000 … florianstrasser\u002Flokalboards:latest\n","bash",[30,127,128],{"__ignoreMap":56},[60,129,130,134,138,142,145,148,151],{"class":62,"line":63},[60,131,133],{"class":132},"sScJk","docker",[60,135,137],{"class":136},"sZZnC"," run",[60,139,141],{"class":140},"sj4cs"," -d",[60,143,144],{"class":140}," -p",[60,146,147],{"class":136}," 127.0.0.1:3000:3000",[60,149,150],{"class":136}," …",[60,152,153],{"class":136}," florianstrasser\u002Flokalboards:latest\n",[18,155,157],{"id":156},"limits-on-guessing","Limits on guessing",[14,159,160,161,164,165,168,169,173],{},"Each client address gets, in a quarter of an hour, ten failed sign-ins, five\nrequests for a password link and ten uses of one, and thirty API keys or OAuth\ntokens that turn out wrong. Past that, the address is turned away until the\nquarter is up. Behind a proxy, the address is read from what the proxy adds to\n",[30,162,163],{},"X-Forwarded-For"," — set ",[30,166,167],{},"NUXT_TRUST_PROXY"," as\n",[83,170,172],{"href":171},"\u002Fdocs#behind-a-reverse-proxy","described for reverse proxies"," when more than\none proxy stands in front, or none.",[14,175,176],{},"The counts are kept in the memory of the process. Several copies of LokalBoards\nbehind a load balancer each count on their own.",[18,178,180],{"id":179},"files","Files",[14,182,183,184,187],{},"A file attached to a card, a picture in a description, an avatar and a board's\ncover are served from ",[30,185,186],{},"\u002Fapi\u002Fuploads\u002F"," under a long random name. Anybody with\nthat address can fetch the file without signing in — the name is the\npermission, as with a shared link — so an address passed outside the team\npasses the file with it. The browser keeps a file it has fetched for up to a\nyear; a CDN or proxy in front is told not to keep it at all.",[14,189,190,191,194],{},"An attached file is deleted from the disk with the last attachment pointing to\nit. A card in the archive keeps its files until the archive is emptied, after\n",[30,192,193],{},"NUXT_ARCHIVE_RETENTION_DAYS"," days — thirty unless set.",[14,196,197],{},"Only pictures and PDFs open in the browser. Every other file, whatever it says\nit is, is sent to be saved, so a file somebody attached can never run as a page\nof the instance.",[18,199,201],{"id":200},"what-leaves-the-instance","What leaves the instance",[203,204,205,220,230],"ul",{},[206,207,208,211,212,215,216,219],"li",{},[25,209,210],{},"Webhooks"," are delivered to public addresses only. The address is checked\nagain at every delivery, against the address actually connected to, and a\nredirect is not followed — so a webhook cannot be pointed at the instance's\nown network. Give one a secret, and each delivery carries an\n",[30,213,214],{},"x-lokalboards-signature"," header (",[30,217,218],{},"sha256="," and an HMAC of the body) for the\nreceiver to check.",[206,221,222,225,226,229],{},[25,223,224],{},"E-mail"," goes only to the server in ",[30,227,228],{},"NUXT_EMAIL_HOST",". Without one, no mail\nis sent at all — invitations still work through their links, but nobody can\nhave a password link sent.",[206,231,232],{},"Fonts, icons and scripts are all served by the instance itself. A browser\nopening LokalBoards asks no other server for anything, unless a picture in a\ncard, an avatar or a board's cover is hosted elsewhere.",[18,234,236],{"id":235},"headers","Headers",[14,238,239],{},"Every response tells the browser not to guess a file's type, keeps the address\nof the page somebody came from to the instance itself, and allows the instance\nto be shown in a frame only by itself. A dashboard that embeds LokalBoards from\nanother address therefore shows an empty frame.",[18,241,243],{"id":242},"agents-and-api-keys","Agents and API keys",[14,245,246,247,251],{},"An agent should have an account of its own, and a read-only key unless it has\nto change things — see ",[83,248,250],{"href":249},"\u002Fdocs\u002Fmcp-server","MCP Server",". Keys and the apps\nconnected over OAuth are listed, and revoked, in each person's settings.",[18,253,255],{"id":254},"reporting-a-problem","Reporting a problem",[14,257,258,259,265],{},"Please report a vulnerability privately, as\n",[83,260,264],{"href":261,"rel":262},"https:\u002F\u002Fgithub.com\u002Fflorian-strasser\u002FLokalBoards\u002Fblob\u002Fmaster\u002FSECURITY.md",[263],"nofollow","SECURITY.md","\ndescribes, rather than in a public issue.",[267,268,269],"style",{},"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);}html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}",{"title":56,"searchDepth":69,"depth":69,"links":271},[272,273,274,275,276,277,278,279],{"id":20,"depth":69,"text":21},{"id":97,"depth":69,"text":98},{"id":156,"depth":69,"text":157},{"id":179,"depth":69,"text":180},{"id":200,"depth":69,"text":201},{"id":235,"depth":69,"text":236},{"id":242,"depth":69,"text":243},{"id":254,"depth":69,"text":255},"md",{},true,"\u002Fdocs\u002Fsecurity",{"title":5,"description":16},"docs\u002F13.security","t7ydTFFa2ewWfyWB4Gfq8DyfHCud0ef2q6HgfddWsOs",[288],{"title":289,"path":290,"stem":291,"children":292},"Api","\u002Fapi","api",[293,296,300,304,308,312,316,320,324,328,332,336,340,344,348,352],{"title":294,"path":290,"stem":295},"Authentication","api\u002Findex",{"title":297,"path":298,"stem":299},"Boards","\u002Fapi\u002Fboards","api\u002F02.boards",{"title":301,"path":302,"stem":303},"Board","\u002Fapi\u002Fboard","api\u002F03.board",{"title":305,"path":306,"stem":307},"Areas","\u002Fapi\u002Fareas","api\u002F04.areas",{"title":309,"path":310,"stem":311},"Area","\u002Fapi\u002Farea","api\u002F05.area",{"title":313,"path":314,"stem":315},"Cards","\u002Fapi\u002Fcards","api\u002F06.cards",{"title":317,"path":318,"stem":319},"Card","\u002Fapi\u002Fcard","api\u002F07.card",{"title":321,"path":322,"stem":323},"Move a card","\u002Fapi\u002Fcard-move","api\u002F08.card-move",{"title":325,"path":326,"stem":327},"Order a card","\u002Fapi\u002Fcard-order","api\u002F09.card-order",{"title":329,"path":330,"stem":331},"Comment","\u002Fapi\u002Fcomment","api\u002F10.comment",{"title":333,"path":334,"stem":335},"Invite","\u002Fapi\u002Finvite","api\u002F11.invite",{"title":337,"path":338,"stem":339},"Notifications","\u002Fapi\u002Fnotifications","api\u002F12.notifications",{"title":341,"path":342,"stem":343},"Labels","\u002Fapi\u002Flabels","api\u002F13.labels",{"title":345,"path":346,"stem":347},"Archive","\u002Fapi\u002Farchive","api\u002F14.archive",{"title":349,"path":350,"stem":351},"Export","\u002Fapi\u002Fexport","api\u002F15.export",{"title":353,"path":354,"stem":355},"My work","\u002Fapi\u002Fmy-work","api\u002F16.my-work",[357],{"title":358,"path":359,"stem":360,"children":361},"Docs","\u002Fdocs","docs",[362,365,368,371,374,378,381,385,387,391,393,397,401,402],{"title":363,"path":359,"stem":364},"Getting started","docs\u002Findex",{"title":297,"path":366,"stem":367},"\u002Fdocs\u002Fboards","docs\u002F02.boards",{"title":305,"path":369,"stem":370},"\u002Fdocs\u002Fareas","docs\u002F03.areas",{"title":313,"path":372,"stem":373},"\u002Fdocs\u002Fcards","docs\u002F04.cards",{"title":375,"path":376,"stem":377},"Comments","\u002Fdocs\u002Fcomments","docs\u002F05.comments",{"title":48,"path":379,"stem":380},"\u002Fdocs\u002Fusers","docs\u002F06.users",{"title":382,"path":383,"stem":384},"Disable Signup","\u002Fdocs\u002Fdisable-signup","docs\u002F07.disable-signup",{"title":86,"path":85,"stem":386},"docs\u002F08.single-sign-on",{"title":388,"path":389,"stem":390},"Adjust Colors","\u002Fdocs\u002Fadjust-colors","docs\u002F09.adjust-colors",{"title":250,"path":249,"stem":392},"docs\u002F10.mcp-server",{"title":394,"path":395,"stem":396},"Migration","\u002Fdocs\u002Fmigration","docs\u002F11.migration",{"title":398,"path":399,"stem":400},"Health Check","\u002Fdocs\u002Fhealth-check","docs\u002F12.health-check",{"title":5,"path":283,"stem":285},{"title":403,"path":404,"stem":405},"Contributing","\u002Fdocs\u002Fcontributing","docs\u002F14.contributing",1795707656825,"afb6fb0d-dce7-4d9a-b3e6-33e2baec9d90"]