Skip to content

Security

Generated by scripts/docs/settings.ts. Do not edit.

Settings with a security role

ProcessKeyKindAllowedDefaultlocalstagingDefined in
webHTTP_ALLOWED_HOSTSlistcomma-separated strrequiredfrom env file: WEB_ALLOWED_HOSTSfrom env file: WEB_ALLOWED_HOSTSshared/http/config.ts
webREQUEST_DEADLINE_MSint5000 to 6000030000not setnot setshared/http/config.ts
webTRUSTED_PROXY_MODEoneOfheader, socketrequiredsocketsocketshared/http/config.ts
webHTTP_BODY_LIMIT_BYTESint1024 to 104857665536not setnot setshared/http/config.ts
webRATE_LIMIT_MAX_KEYSint1 to 1000000100000not setnot setshared/http/config.ts
webSESSION_IDLE_Sint300 to 2592000604800not setnot setinterfaces/web/src/lib/server/config.ts
webSESSION_ABSOLUTE_Sint300 to 25920002592000not setnot setinterfaces/web/src/lib/server/config.ts
webEMAIL_RECHECK_Sint60 to 900900not setnot setinterfaces/web/src/lib/server/config.ts
webMIN_AGEint16 to 12016not setnot setinterfaces/web/src/lib/server/config.ts
webTEST_ROUTESbooltrue or falsefalsenot setnot setinterfaces/web/src/lib/server/config.ts
pds-adminSIGNUPS_OPENstrtextrequiredtruetrueinterfaces/pds-admin/config.ts

Edge headers

Fixed in config: deployment/edge/snippets/security-headers.caddy.

SnippetHeaderHowValue
security-headersStrict-Transport-Securitysetmax-age=63072000; includeSubDomains
security-headersX-Content-Type-Optionssetnosniff
security-headersReferrer-Policyset if absentno-referrer
security-headersServerremoved
security-headersViaremoved
strict-cspContent-Security-Policysetdefault-src 'none'; frame-ancestors 'none'; base-uri 'none'; form-action 'none'
noindexX-Robots-Tagsetnoindex, nofollow

Web headers on every response

Fixed in code: STATIC_CSP in interfaces/web/src/lib/server/csp.ts and SECURITY_HEADERS in shared/http/headers.ts. Web sends them on every response (interfaces/web/server.ts); a page replaces the CSP with its group’s, below.

HeaderValue
content-security-policydefault-src 'none'; frame-ancestors 'none'
x-content-type-optionsnosniff
referrer-policysame-origin
cross-origin-opener-policysame-origin
cross-origin-resource-policysame-origin
x-frame-optionsDENY
permissions-policycamera=(), microphone=(), geolocation=(), payment=(), usb=(), serial=(), bluetooth=(), browsing-topics=()
strict-transport-securitymax-age=63072000; includeSubDomains

Page CSP by group

Fixed in code: interfaces/web/src/lib/server/csp.ts.

GroupContent-Security-Policy
publicdefault-src 'none'; img-src <PUBLIC_ORIGIN>/_app/; style-src <PUBLIC_ORIGIN>/_app/; font-src <PUBLIC_ORIGIN>/fonts/; form-action 'self'; base-uri 'none'; frame-ancestors 'none'; object-src 'none'; manifest-src 'self'
staticdefault-src 'none'; frame-ancestors 'none'
appSvelteKit’s own (kit.csp in interfaces/web/vite.config.ts); fallback default-src 'none'; frame-ancestors 'none'