[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78ZHVBAHDTFBK871EWRX9BW":3,"skill-same:01M78ZHVBAHDTFBK871EWRX9BW":58},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":35,"commitSha":36,"skillDirectory":37,"forksCount":38,"repositoryHtmlUrl":39,"repositoryHomepageUrl":6,"ownerHtmlUrl":40,"ownerBlogUrl":41,"ownerDescription":42,"updatedAt":43,"install":44,"resources":57},"01M78ZHVBAHDTFBK871EWRX9BW","documenso-security-basics",null,"Implement security best practices for Documenso document signing integrations.\nUse when securing API keys, configuring webhooks securely,\nor implementing document security measures.\nTrigger with phrases like \"documenso security\", \"secure documenso\",\n\"documenso API key security\", \"documenso webhook security\".","jukeyman\u002Fjukeyman-skills","jukeyman","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F142960420?v=4","01M78FR4Y3DHMMCBCC0GXXNB3F","RICK JEFFERSON","01M78FR4Z8RVQRAD31Y5J7V6EB",1,"MIT","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsaas-packs--documenso-pack--documenso-security-basics\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: documenso-security-basics\ndescription: |\n  Implement security best practices for Documenso document signing integrations.\n  Use when securing API keys, configuring webhooks securely,\n  or implementing document security measures.\n  Trigger with phrases like \"documenso security\", \"secure documenso\",\n  \"documenso API key security\", \"documenso webhook security\".\nallowed-tools: Read, Write, Edit\nversion: 1.0.0\nlicense: MIT\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\ncompatible-with: claude-code, codex, openclaw\ntags: [saas, documenso, api, security, webhooks]\n---\n# Documenso Security Basics\n\n## Overview\n\nEssential security practices for Documenso integrations: API key management, webhook verification, document access control, and self-hosted signing certificate configuration.\n\n## Prerequisites\n\n- Documenso account with API access\n- Understanding of environment variables and secret management\n- Completed `documenso-install-auth` setup\n\n## Instructions\n\n### Step 1: API Key Security\n\n```typescript\n\u002F\u002F NEVER hardcode keys\nconst BAD = new Documenso({ apiKey: \"api_abc123...\" }); \u002F\u002F Exposed in source\n\n\u002F\u002F ALWAYS use environment variables\nconst GOOD = new Documenso({ apiKey: process.env.DOCUMENSO_API_KEY! });\n```\n\n**Key management rules:**\n- Store in `.env` (never committed) or a secrets manager (Vault, AWS Secrets Manager)\n- Use team-scoped keys for team resources, personal keys for personal documents\n- Rotate keys on employee offboarding -- revoke in dashboard immediately\n- CI\u002FCD: use masked\u002Fencrypted secrets (GitHub Secrets, GitLab CI variables)\n\n```bash\n# .gitignore — always include\n.env\n.env.*\n!.env.example\n```\n\n### Step 2: Key Rotation with Zero Downtime\n\n```typescript\n\u002F\u002F Support dual keys during rotation\nfunction getApiKey(): string {\n  \u002F\u002F Try primary first, fall back to secondary during rotation\n  return process.env.DOCUMENSO_API_KEY_PRIMARY\n    ?? process.env.DOCUMENSO_API_KEY_SECONDARY\n    ?? (() => { throw new Error(\"No Documenso API key configured\"); })();\n}\n\n\u002F\u002F Rotation procedure:\n\u002F\u002F 1. Generate new key in Documenso dashboard\n\u002F\u002F 2. Set as DOCUMENSO_API_KEY_SECONDARY, deploy\n\u002F\u002F 3. Verify secondary key works\n\u002F\u002F 4. Move secondary to PRIMARY, deploy\n\u002F\u002F 5. Revoke old key in dashboard\n```\n\n### Step 3: Webhook Secret Verification\n\n```typescript\nimport { timingSafeEqual } from \"crypto\";\n\nfunction verifyWebhookSecret(req: Request): boolean {\n  const received = req.headers[\"x-documenso-secret\"] as string;\n  const expected = process.env.DOCUMENSO_WEBHOOK_SECRET!;\n\n  if (!received || !expected) return false;\n\n  \u002F\u002F Use constant-time comparison to prevent timing attacks\n  return timingSafeEqual(\n    Buffer.from(received, \"utf8\"),\n    Buffer.from(expected, \"utf8\")\n  );\n}\n```\n\n```python\n# Python equivalent\nimport hmac, os\nfrom flask import request\n\ndef verify_webhook(req):\n    received = req.headers.get(\"X-Documenso-Secret\", \"\")\n    expected = os.environ[\"DOCUMENSO_WEBHOOK_SECRET\"]\n    return hmac.compare_digest(received, expected)\n```\n\n### Step 4: Document Access Control\n\n```typescript\n\u002F\u002F Principle of least privilege with API keys\n\u002F\u002F Personal keys: only YOUR documents\n\u002F\u002F Team keys: all documents in the team\n\n\u002F\u002F Restrict document access by checking ownership\nasync function getDocumentSecure(documentId: number, userId: string) {\n  const doc = await client.documents.getV0(documentId);\n\n  \u002F\u002F Verify the requesting user is the owner or a recipient\n  const isOwner = doc.userId === parseInt(userId);\n  const isRecipient = doc.recipients?.some(r => r.email === userEmail);\n\n  if (!isOwner && !isRecipient) {\n    throw new Error(\"Access denied: not authorized for this document\");\n  }\n\n  return doc;\n}\n```\n\n### Step 5: Signing Certificate Security (Self-Hosted)\n\nSelf-hosted Documenso requires a `.p12` signing certificate for legally valid digital signatures.\n\n```bash\n# Generate a self-signed certificate (development only)\nopenssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -nodes\nopenssl pkcs12 -export -out signing-cert.p12 -inkey key.pem -in cert.pem\n\n# Mount into Docker container\ndocker run -v $(pwd)\u002Fsigning-cert.p12:\u002Fopt\u002Fdocumenso\u002Fcert.p12 \\\n  -e NEXT_PRIVATE_SIGNING_LOCAL_FILE_PATH=\u002Fopt\u002Fdocumenso\u002Fcert.p12 \\\n  -e NEXT_PRIVATE_SIGNING_PASSPHRASE=your-passphrase \\\n  documenso\u002Fdocumenso:latest\n```\n\nFor production, use a certificate from a trusted CA (e.g., GlobalSign, DigiCert).\n\n### Step 6: Self-Hosted Production Secrets\n\n```bash\n# Generate cryptographically secure secrets\nopenssl rand -hex 32  # NEXTAUTH_SECRET\nopenssl rand -hex 32  # NEXT_PRIVATE_ENCRYPTION_KEY\nopenssl rand -hex 32  # NEXT_PRIVATE_ENCRYPTION_SECONDARY_KEY\n\n# Never reuse secrets across environments\n# Never use default values in production\n```\n\n## Security Checklist\n\n- [ ] API key stored in environment variable, never in source code\n- [ ] `.env` in `.gitignore`\n- [ ] CI secrets use masked\u002Fencrypted storage\n- [ ] Team keys rotated on employee offboarding\n- [ ] Webhook secret uses constant-time comparison\n- [ ] Self-hosted: HTTPS with valid TLS certificates\n- [ ] Self-hosted: signing certificate from trusted CA\n- [ ] Self-hosted: secrets generated with `openssl rand -hex 32`\n- [ ] No API keys or secrets in logs (sanitize before logging)\n- [ ] Key rotation procedure documented and tested\n\n## Error Handling\n\n| Security Issue | Indicator | Response |\n|---------------|-----------|----------|\n| Invalid API key | 401 errors | Rotate key immediately |\n| Webhook spoofing | Invalid secret header | Reject request, alert team |\n| Key exposed in git | GitHub secret scanning alert | Revoke key, rotate, audit access |\n| Brute force | Many 401s from same IP | Rate limit by IP at reverse proxy |\n\n## Resources\n\n- [OWASP API Security](https:\u002F\u002Fowasp.org\u002Fwww-project-api-security\u002F)\n- [Documenso Security](https:\u002F\u002Fdocumenso.com\u002Fsecurity)\n- [Webhook Verification Docs](https:\u002F\u002Fdocs.documenso.com\u002Fdocs\u002Fdevelopers\u002Fwebhooks\u002Fverification)\n- [Self-Hosting: Signing Certificate](https:\u002F\u002Fdocs.documenso.com\u002Fdevelopers\u002Fself-hosting\u002Fsigning-certificate)\n\n## Next Steps\n\nFor production deployment, see `documenso-prod-checklist`.\n","# Documenso Security Basics\n\n## Overview\n\nEssential security practices for Documenso integrations: API key management, webhook verification, document access control, and self-hosted signing certificate configuration.\n\n## Prerequisites\n\n- Documenso account with API access\n- Understanding of environment variables and secret management\n- Completed `documenso-install-auth` setup\n\n## Instructions\n\n### Step 1: API Key Security\n\n```typescript\n\u002F\u002F NEVER hardcode keys\nconst BAD = new Documenso({ apiKey: \"api_abc123...\" }); \u002F\u002F Exposed in source\n\n\u002F\u002F ALWAYS use environment variables\nconst GOOD = new Documenso({ apiKey: process.env.DOCUMENSO_API_KEY! });\n```\n\n**Key management rules:**\n- Store in `.env` (never committed) or a secrets manager (Vault, AWS Secrets Manager)\n- Use team-scoped keys for team resources, personal keys for personal documents\n- Rotate keys on employee offboarding -- revoke in dashboard immediately\n- CI\u002FCD: use masked\u002Fencrypted secrets (GitHub Secrets, GitLab CI variables)\n\n```bash\n# .gitignore — always include\n.env\n.env.*\n!.env.example\n```\n\n### Step 2: Key Rotation with Zero Downtime\n\n```typescript\n\u002F\u002F Support dual keys during rotation\nfunction getApiKey(): string {\n  \u002F\u002F Try primary first, fall back to secondary during rotation\n  return process.env.DOCUMENSO_API_KEY_PRIMARY\n    ?? process.env.DOCUMENSO_API_KEY_SECONDARY\n    ?? (() => { throw new Error(\"No Documenso API key configured\"); })();\n}\n\n\u002F\u002F Rotation procedure:\n\u002F\u002F 1. Generate new key in Documenso dashboard\n\u002F\u002F 2. Set as DOCUMENSO_API_KEY_SECONDARY, deploy\n\u002F\u002F 3. Verify secondary key works\n\u002F\u002F 4. Move secondary to PRIMARY, deploy\n\u002F\u002F 5. Revoke old key in dashboard\n```\n\n### Step 3: Webhook Secret Verification\n\n```typescript\nimport { timingSafeEqual } from \"crypto\";\n\nfunction verifyWebhookSecret(req: Request): boolean {\n  const received = req.headers[\"x-documenso-secret\"] as string;\n  const expected = process.env.DOCUMENSO_WEBHOOK_SECRET!;\n\n  if (!received || !expected) return false;\n\n  \u002F\u002F Use constant-time comparison to prevent timing attacks\n  return timingSafeEqual(\n    Buffer.from(received, \"utf8\"),\n    Buffer.from(expected, \"utf8\")\n  );\n}\n```\n\n```python\n# Python equivalent\nimport hmac, os\nfrom flask import request\n\ndef verify_webhook(req):\n    received = req.headers.get(\"X-Documenso-Secret\", \"\")\n    expected = os.environ[\"DOCUMENSO_WEBHOOK_SECRET\"]\n    return hmac.compare_digest(received, expected)\n```\n\n### Step 4: Document Access Control\n\n```typescript\n\u002F\u002F Principle of least privilege with API keys\n\u002F\u002F Personal keys: only YOUR documents\n\u002F\u002F Team keys: all documents in the team\n\n\u002F\u002F Restrict document access by checking ownership\nasync function getDocumentSecure(documentId: number, userId: string) {\n  const doc = await client.documents.getV0(documentId);\n\n  \u002F\u002F Verify the requesting user is the owner or a recipient\n  const isOwner = doc.userId === parseInt(userId);\n  const isRecipient = doc.recipients?.some(r => r.email === userEmail);\n\n  if (!isOwner && !isRecipient) {\n    throw new Error(\"Access denied: not authorized for this document\");\n  }\n\n  return doc;\n}\n```\n\n### Step 5: Signing Certificate Security (Self-Hosted)\n\nSelf-hosted Documenso requires a `.p12` signing certificate for legally valid digital signatures.\n\n```bash\n# Generate a self-signed certificate (development only)\nopenssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -nodes\nopenssl pkcs12 -export -out signing-cert.p12 -inkey key.pem -in cert.pem\n\n# Mount into Docker container\ndocker run -v $(pwd)\u002Fsigning-cert.p12:\u002Fopt\u002Fdocumenso\u002Fcert.p12 \\\n  -e NEXT_PRIVATE_SIGNING_LOCAL_FILE_PATH=\u002Fopt\u002Fdocumenso\u002Fcert.p12 \\\n  -e NEXT_PRIVATE_SIGNING_PASSPHRASE=your-passphrase \\\n  documenso\u002Fdocumenso:latest\n```\n\nFor production, use a certificate from a trusted CA (e.g., GlobalSign, DigiCert).\n\n### Step 6: Self-Hosted Production Secrets\n\n```bash\n# Generate cryptographically secure secrets\nopenssl rand -hex 32  # NEXTAUTH_SECRET\nopenssl rand -hex 32  # NEXT_PRIVATE_ENCRYPTION_KEY\nopenssl rand -hex 32  # NEXT_PRIVATE_ENCRYPTION_SECONDARY_KEY\n\n# Never reuse secrets across environments\n# Never use default values in production\n```\n\n## Security Checklist\n\n- [ ] API key stored in environment variable, never in source code\n- [ ] `.env` in `.gitignore`\n- [ ] CI secrets use masked\u002Fencrypted storage\n- [ ] Team keys rotated on employee offboarding\n- [ ] Webhook secret uses constant-time comparison\n- [ ] Self-hosted: HTTPS with valid TLS certificates\n- [ ] Self-hosted: signing certificate from trusted CA\n- [ ] Self-hosted: secrets generated with `openssl rand -hex 32`\n- [ ] No API keys or secrets in logs (sanitize before logging)\n- [ ] Key rotation procedure documented and tested\n\n## Error Handling\n\n| Security Issue | Indicator | Response |\n|---------------|-----------|----------|\n| Invalid API key | 401 errors | Rotate key immediately |\n| Webhook spoofing | Invalid secret header | Reject request, alert team |\n| Key exposed in git | GitHub secret scanning alert | Revoke key, rotate, audit access |\n| Brute force | Many 401s from same IP | Rate limit by IP at reverse proxy |\n\n## Resources\n\n- [OWASP API Security](https:\u002F\u002Fowasp.org\u002Fwww-project-api-security\u002F)\n- [Documenso Security](https:\u002F\u002Fdocumenso.com\u002Fsecurity)\n- [Webhook Verification Docs](https:\u002F\u002Fdocs.documenso.com\u002Fdocs\u002Fdevelopers\u002Fwebhooks\u002Fverification)\n- [Self-Hosting: Signing Certificate](https:\u002F\u002Fdocs.documenso.com\u002Fdevelopers\u002Fself-hosting\u002Fsigning-certificate)\n\n## Next Steps\n\nFor production deployment, see `documenso-prod-checklist`.\n",{"name":5,"tags":24,"author":30,"license":15,"version":31,"description":32,"allowed-tools":33,"compatible-with":34},[25,26,27,28,29],"saas","documenso","api","security","webhooks","Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Implement security best practices for Documenso document signing integrations.\nUse when securing API keys, configuring webhooks securely,\nor implementing document security measures.\nTrigger with phrases like \"documenso security\", \"secure documenso\",\n\"documenso API key security\", \"documenso webhook security\".\n","Read, Write, Edit","claude-code, codex, openclaw","main","99825ad3f3bcc6597ddcc7294a14e6e922f2b67b","skills\u002Fsaas-packs--documenso-pack--documenso-security-basics",0,"https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills","https:\u002F\u002Fgithub.com\u002Fjukeyman","https:\u002F\u002FRJBUSINESSSOLUTIONS.ORG","Credit and Finance Expert | Developer\r\n\r\nI'm Rick Jefferson, a seasoned credit and finance expert with over a decade of experience in financial literacy,","2026-07-13 07:03:29",{"source":8,"skillName":5,"commands":45,"prompt":55,"zipAvailable":56},[46,49,52],{"tool":47,"command":48},"npx","npx skills add jukeyman\u002Fjukeyman-skills --skill documenso-security-basics",{"tool":50,"command":51},"bunx","bunx skills add jukeyman\u002Fjukeyman-skills --skill documenso-security-basics",{"tool":53,"command":54},"pnpm","pnpm dlx skills add jukeyman\u002Fjukeyman-skills --skill documenso-security-basics","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsaas-packs--documenso-pack--documenso-security-basics\u002FSKILL.md",true,[],[59,66,73,80,87,95],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M79ANS2SM329NEP5ZCX106RR","zustand-store-creator","Create zustand store creator operations. Auto-activating skill for Frontend Development.\nTriggers on: zustand store creator, zustand store creator\nPart of the Frontend Development skill category. Use when working with zustand store creator functionality. Trigger with phrases like \"zustand store creator\", \"zustand creator\", \"zustand\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzustand-store-creator\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M79AMZKP4YDEZ7EHG1Y7PP74","zero-trust-config-helper","Configure with zero trust config helper operations. Auto-activating skill for Security Advanced.\nTriggers on: zero trust config helper, zero trust config helper\nPart of the Security Advanced skill category. Use when configuring systems or services. Trigger with phrases like \"zero trust config helper\", \"zero helper\", \"zero\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzero-trust-config-helper\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M79AMJSBCEJQNBTYNAHYN5HM","zapier-integration-helper","Assist with zapier integration helper operations. Auto-activating skill for Business Automation.\nTriggers on: zapier integration helper, zapier integration helper\nPart of the Business Automation skill category. Use when working with APIs or building integrations. Trigger with phrases like \"zapier integration helper\", \"zapier helper\", \"zapier\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzapier-integration-helper\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M79AHJZGVMARS13VFQYRR1MP","yaml-config-validator","Validate yaml config validator operations. Auto-activating skill for DevOps Basics.\nTriggers on: yaml config validator, yaml config validator\nPart of the DevOps Basics skill category. Use when configuring systems or services. Trigger with phrases like \"yaml config validator\", \"yaml validator\", \"yaml\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fyaml-config-validator\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":91,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M79AHGDZRN0020RDQSQDPAM8","xvary-stock-research","Thesis-driven equity analysis from public SEC EDGAR and market data; \u002Fanalyze, \u002Fscore, \u002Fcompare workflows with bundled Python tools (Claude Code, Cursor, Codex).","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxvary-stock-research\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxvary-stock-research\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":19},"01M79AHCYJ9FV9RMHQ24HDRN33","xss-vulnerability-scanner","Scan xss vulnerability scanner operations. Auto-activating skill for Security Fundamentals.\nTriggers on: xss vulnerability scanner, xss vulnerability scanner\nPart of the Security Fundamentals skill category. Use when working with xss vulnerability scanner functionality. Trigger with phrases like \"xss vulnerability scanner\", \"xss scanner\", \"xss\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxss-vulnerability-scanner\u002FSKILL.md",[],[]]