Bundled presign endpoint for browser-side uploads. Enable with ENABLE_PRESIGN=true and S3 credentials.
The key server bundles a presign endpoint that generates presigned S3 PUT URLs. The Uploader uses this to upload encrypted segments directly from the browser to S3 — without routing bytes through your server.
If authentication is not configured (AUTH_JWT_SECRET or AUTH_JWKS_URL), the presign endpoint is open to anyone who can reach the key server. Always enable authentication when ENABLE_PRESIGN=true in production.
Presign requests require the same JWT authentication as key requests (if auth is enabled)
The key server validates that the S3 key starts with an allowed prefix (default: content/)
Presigned URLs are short-lived (5 minutes) and single-use
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"BlindCast","colors":{"primary":"#6366f1","light":"#818cf8","dark":"#4f46e5"},"logo":{"light":"https://mintcdn.com/stillwaterstudio/gwkQ_H6ySS15AoKG/logo/light.svg?fit=max\u0026auto=format\u0026n=gwkQ_H6ySS15AoKG\u0026q=85\u0026s=8d7ce2337dcfa5512cbd46720cb22051","dark":"https://mintcdn.com/stillwaterstudio/gwkQ_H6ySS15AoKG/logo/dark.svg?fit=max\u0026auto=format\u0026n=gwkQ_H6ySS15AoKG\u0026q=85\u0026s=efdadcec987ceeae77bc75f81d7747e0"},"favicon":"/favicon.svg","styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"stillwaterstudio","hasAudioNarration":false,"actualSubdomain":"stillwaterstudio","customDomains":["docs.blindcast.dev"],"gitSource":{"type":"github","owner":"gunwooterry","repo":"blindcast","deployBranch":"main","contentDirectory":"packages/docs","isPrivate":true,"mountPath":"","label":"","_id":"6b10d65d9ffae5051c40d421"},"entitlements":{},"buildId":"6ae948a94e1e9c8ee81b1dab:success","clientVersion":"0.0.4428","searchFilterCounts":[{"language":"default","tag":"CLI","count":6},{"language":"default","tag":"Server","count":6},{"language":"default","tag":"Key Server","count":5},{"language":"default","tag":"Player","count":5},{"language":"default","tag":"Going to Production","count":4},{"language":"default","tag":"Uploader","count":4},{"language":"default","tag":"Getting Started","count":3},{"language":"default","tag":"Introduction","count":3},{"language":"default","tag":"Reference","count":2},{"language":"default","tag":"Serverless","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"key-server/presign","slug":"/key-server/presign","pageMetadata":{"title":"Presign Endpoint","description":"Bundled presign endpoint for browser-side uploads. Enable with ENABLE_PRESIGN=true and S3 credentials.","href":"/key-server/presign","hidden":false},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Bundled presign endpoint for browser-side uploads. Enable with ENABLE_PRESIGN=true and S3 credentials.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Mermaid,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Mermaid)_missingMdxReference(`Mermaid`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`The key server bundles a presign endpoint that generates presigned S3 PUT URLs. The `,_jsx(_components.a,{href:`/uploader/overview`,children:`Uploader`}),` uses this to upload encrypted segments directly from the browser to S3 — without routing bytes through your server.`]}),`\n`,_jsx(Heading,{level:`2`,id:`enable-presign`,children:`Enable presign`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`11`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`11`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`docker`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` run`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -e`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` MASTER_KEY_HEX=...`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -e`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` SALT_HEX=...`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -e`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` CORS_ORIGINS=https://app.example.com`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -e`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ENABLE_PRESIGN=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -e`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` S3_BUCKET=my-video-bucket`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -e`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` S3_REGION=us-east-1`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -e`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` AWS_ACCESS_KEY_ID=...`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -e`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` AWS_SECRET_ACCESS_KEY=...`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -p`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 4100:4100`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` blindcast/keyserver`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`how-it-works`,children:`How it works`}),`\n`,_jsx(Mermaid,{chart:`sequenceDiagram\n participant Browser as Browser (uploader)\n participant KS as Key Server\n participant S3 as S3\n\n Browser->>KS: POST /presign { key: \"content/vid-001/seg-0.ts\", contentType: \"video/mp2t\" }\n KS->>KS: Validate auth + generate presigned URL\n KS-->>Browser: { url: \"https://s3.../seg-0.ts?X-Amz-...\" }\n Browser->>S3: PUT encrypted bytes to presigned URL`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`The uploader sends `,_jsx(_components.code,{children:`POST /presign`}),` with the S3 key and content type`]}),`\n`,_jsx(_components.li,{children:`The key server validates the JWT (if auth is enabled), then generates a presigned PUT URL`}),`\n`,_jsx(_components.li,{children:`The uploader uploads encrypted bytes directly to S3 using the presigned URL`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`presign-request-format`,children:`Presign request format`}),`\n`,_jsx(CodeBlock,{numberOfLines:`9`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`9`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`POST /presign`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Authorization: Bearer \u003ctoken>`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Content-Type: application/json`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`{`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"key\": \"content/my-video-001/seg-0.ts\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \"contentType\": \"video/mp2t\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`presign-response`,children:`Presign response`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://my-video-bucket.s3.us-east-1.amazonaws.com/content/my-video-001/seg-0.ts?X-Amz-Algorithm=...\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`The presigned URL expires after 300 seconds (5 minutes) by default.`}),`\n`,_jsx(Heading,{level:`2`,id:`configuration`,children:`Configuration`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Variable`}),_jsx(_components.th,{children:`Default`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ENABLE_PRESIGN`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`false`})}),_jsxs(_components.td,{children:[`Set to `,_jsx(_components.code,{children:`true`}),` to enable`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`S3_BUCKET`})}),_jsx(_components.td,{children:`—`}),_jsx(_components.td,{children:`S3 bucket name (required)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`S3_REGION`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`us-east-1`})}),_jsx(_components.td,{children:`AWS region`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`AWS_ACCESS_KEY_ID`})}),_jsx(_components.td,{children:`—`}),_jsx(_components.td,{children:`AWS credentials`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`AWS_SECRET_ACCESS_KEY`})}),_jsx(_components.td,{children:`—`}),_jsx(_components.td,{children:`AWS credentials`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`S3_ENDPOINT`})}),_jsx(_components.td,{children:`—`}),_jsx(_components.td,{children:`Custom S3 endpoint (for MinIO, R2, etc.)`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`s3-compatible-storage`,children:`S3-compatible storage`}),`\n`,_jsxs(_components.p,{children:[`For MinIO, Cloudflare R2, or Backblaze B2, set `,_jsx(_components.code,{children:`S3_ENDPOINT`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`-e`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` S3_ENDPOINT=https://`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`account-i`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`d`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`.r2.cloudflarestorage.com`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`security`,children:`Security`}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`If authentication is not configured (`,_jsx(_components.code,{children:`AUTH_JWT_SECRET`}),` or `,_jsx(_components.code,{children:`AUTH_JWKS_URL`}),`), the presign endpoint is open to anyone who can reach the key server. Always enable authentication when `,_jsx(_components.code,{children:`ENABLE_PRESIGN=true`}),` in production.`]})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Presign requests require the same JWT authentication as key requests (if auth is enabled)`}),`\n`,_jsxs(_components.li,{children:[`The key server validates that the S3 key starts with an allowed prefix (default: `,_jsx(_components.code,{children:`content/`}),`)`]}),`\n`,_jsx(_components.li,{children:`Presigned URLs are short-lived (5 minutes) and single-use`}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Presign Endpoint","description":"Bundled presign endpoint for browser-side uploads. Enable with ENABLE_PRESIGN=true and S3 credentials.","href":"/key-server/presign","hidden":false}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Enable presign","slug":"enable-presign","depth":2,"children":[]},{"title":"How it works","slug":"how-it-works","depth":2,"children":[]},{"title":"Presign request format","slug":"presign-request-format","depth":2,"children":[]},{"title":"Presign response","slug":"presign-response","depth":2,"children":[]},{"title":"Configuration","slug":"configuration","depth":2,"children":[]},{"title":"S3-compatible storage","slug":"s3-compatible-storage","depth":2,"children":[]},{"title":"Security","slug":"security","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"stillwaterstudio","siteName":"BlindCast","title":"Presign Endpoint - BlindCast","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-02-27T03:01:02.250Z","originalFileLocation":"key-server/presign.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Bundled presign endpoint for browser-side uploads. Enable with ENABLE_PRESIGN=true and S3 credentials.\">\u003cmeta data-mint-head name=\"application-name\" content=\"BlindCast\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/stillwaterstudio/865jUXWyg45zLT1s/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/stillwaterstudio/865jUXWyg45zLT1s/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/stillwaterstudio/865jUXWyg45zLT1s/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/stillwaterstudio/865jUXWyg45zLT1s/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/stillwaterstudio/865jUXWyg45zLT1s/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/stillwaterstudio/865jUXWyg45zLT1s/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/stillwaterstudio/865jUXWyg45zLT1s/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/stillwaterstudio/865jUXWyg45zLT1s/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/stillwaterstudio/865jUXWyg45zLT1s/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Presign Endpoint - BlindCast\">\u003cmeta data-mint-head property=\"og:description\" content=\"Bundled presign endpoint for browser-side uploads. Enable with ENABLE_PRESIGN=true and S3 credentials.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"BlindCast\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.blindcast.dev/key-server/presign\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://stillwaterstudio.mintlify.site/_mintlify/api/og/v2?division=Key+Server\u0026amp;title=Presign+Endpoint\u0026amp;description=Bundled+presign+endpoint+for+browser-side+uploads.+Enable+with+ENABLE_PRESIGN%3Dtrue+and+S3+credentials.\u0026amp;theme=16717094e78f745cc65ef082\u0026amp;signature=0cd67df09419808edb2a6d1483be613690fe85ef1f46db8632085c2f232a06f6\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Presign Endpoint - BlindCast\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Bundled presign endpoint for browser-side uploads. Enable with ENABLE_PRESIGN=true and S3 credentials.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://stillwaterstudio.mintlify.site/_mintlify/api/og/v2?division=Key+Server\u0026amp;title=Presign+Endpoint\u0026amp;description=Bundled+presign+endpoint+for+browser-side+uploads.+Enable+with+ENABLE_PRESIGN%3Dtrue+and+S3+credentials.\u0026amp;theme=16717094e78f745cc65ef082\u0026amp;signature=0cd67df09419808edb2a6d1483be613690fe85ef1f46db8632085c2f232a06f6\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/stillwaterstudio/865jUXWyg45zLT1s/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"BlindCast\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6366f1\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.blindcast.dev/key-server/presign\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/key-server/presign.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.blindcast.dev/#organization\",\"name\":\"BlindCast\",\"url\":\"https://docs.blindcast.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/stillwaterstudio/gwkQ_H6ySS15AoKG/logo/light.svg?fit=max\u0026auto=format\u0026n=gwkQ_H6ySS15AoKG\u0026q=85\u0026s=8d7ce2337dcfa5512cbd46720cb22051\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.blindcast.dev#website\",\"name\":\"BlindCast\",\"url\":\"https://docs.blindcast.dev\",\"publisher\":{\"@id\":\"https://docs.blindcast.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.blindcast.dev/key-server/presign#webpage\",\"url\":\"https://docs.blindcast.dev/key-server/presign\",\"name\":\"Presign Endpoint\",\"description\":\"Bundled presign endpoint for browser-side uploads. Enable with ENABLE_PRESIGN=true and S3 credentials.\",\"dateModified\":\"2026-02-27T03:01:02.250Z\",\"isPartOf\":{\"@id\":\"https://docs.blindcast.dev#website\"},\"breadcrumb\":{\"@id\":\"https://docs.blindcast.dev/key-server/presign#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.blindcast.dev/key-server/presign#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Key Server\",\"item\":\"https://docs.blindcast.dev/key-server/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Presign Endpoint\",\"item\":\"https://docs.blindcast.dev/key-server/presign\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.blindcast.dev/key-server/presign#article\",\"headline\":\"Presign Endpoint\",\"name\":\"Presign Endpoint\",\"description\":\"Bundled presign endpoint for browser-side uploads. Enable with ENABLE_PRESIGN=true and S3 credentials.\",\"url\":\"https://docs.blindcast.dev/key-server/presign\",\"mainEntityOfPage\":{\"@id\":\"https://docs.blindcast.dev/key-server/presign#webpage\"},\"dateModified\":\"2026-02-27T03:01:02.250Z\",\"publisher\":{\"@id\":\"https://docs.blindcast.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.blindcast.dev#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"BlindCast\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"BlindCast\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/key-server/presign.md","siteName":"BlindCast","nav":{"global":null,"groups":[{"group":"Introduction","pages":[{"title":"What is BlindCast?","href":"/introduction/what-is-blindcast"},{"title":"Zero-Knowledge Explained","href":"/introduction/zero-knowledge-explained"},{"title":"Architecture Overview","href":"/introduction/architecture-overview"}]},{"group":"Getting Started","pages":[{"title":"Installation","href":"/getting-started/installation"},{"title":"Quick Start","href":"/getting-started/quick-start"},{"title":"Migrating from Package Imports","href":"/getting-started/migration"}]},{"group":"Server","pages":[{"title":"Server Overview","href":"/server/overview"},{"title":"Docker Setup","href":"/server/docker"},{"title":"Reverse Proxy","href":"/server/reverse-proxy"},{"title":"Content API","href":"/server/content-api"},{"title":"API Keys","href":"/server/api-keys"},{"title":"Admin Dashboard","href":"/server/admin-dashboard"}]},{"group":"Player","pages":[{"title":"Player Overview","href":"/player/overview"},{"title":"Basic Usage","href":"/player/basic-usage"},{"title":"Authentication","href":"/player/authentication"},{"title":"Lease-Based Revocation","href":"/player/leases"},{"title":"API Reference","href":"/player/api-reference"}]},{"group":"CLI","pages":[{"title":"CLI Overview","href":"/cli/overview"},{"title":"blindcast init","href":"/cli/init"},{"title":"blindcast keygen","href":"/cli/keygen"},{"title":"blindcast encrypt","href":"/cli/encrypt"},{"title":"blindcast upload","href":"/cli/upload"},{"title":"blindcast serve","href":"/cli/serve"}]},{"group":"Uploader","pages":[{"title":"Uploader Overview","href":"/uploader/overview"},{"title":"Basic Usage","href":"/uploader/basic-usage"},{"title":"Progress \u0026 Abort","href":"/uploader/progress-and-abort"},{"title":"API Reference","href":"/uploader/api-reference"}]},{"group":"Key Server","pages":[{"title":"Key Server Overview","href":"/key-server/overview"},{"title":"Configuration","href":"/key-server/configuration"},{"title":"Database","description":"SQLite by default for development, Postgres for production. The database stores lease state — keys are derived, not stored.","href":"/key-server/database"},{"title":"Presign Endpoint","href":"/key-server/presign"},{"title":"Leases \u0026 Revocation","description":"Time-limited leases let you revoke a viewer's access without re-encrypting content. Configure lease TTL, revoke by viewer or lease ID.","href":"/key-server/leases"}]},{"group":"Serverless","pages":[{"title":"Cloudflare Workers","href":"/serverless/cloudflare-workers"},{"title":"AWS Lambda","href":"/serverless/aws-lambda"}]},{"group":"Going to Production","pages":[{"title":"Production Checklist","href":"/production/checklist"},{"title":"CDN Configuration","href":"/production/cdn"},{"title":"Key Rotation","href":"/production/key-rotation"},{"title":"Monitoring","href":"/production/monitoring"}]},{"group":"Reference","pages":[{"title":"Error Codes","href":"/reference/error-codes"},{"title":"Result Type Pattern","href":"/reference/result-type-pattern"}]}]},"basePath":"","title":"Presign Endpoint - BlindCast","deploymentId":"dpl_4dgnk6TA5fUgboKHTvWWyeqm3idh","buildId":"dpl_4dgnk6TA5fUgboKHTvWWyeqm3idh","dynamics":[],"chunks":[]}