[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6F8EATST16H9QDVHA3SCE8J":3,"skill-same:01M6F8EATST16H9QDVHA3SCE8J":74},{"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":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":51,"commitSha":52,"skillDirectory":53,"forksCount":54,"repositoryHtmlUrl":55,"repositoryHomepageUrl":56,"ownerHtmlUrl":57,"ownerBlogUrl":6,"ownerDescription":58,"updatedAt":59,"install":60,"resources":73},"01M6F8EATST16H9QDVHA3SCE8J","clay-security-basics",null,"Apply Clay security best practices for API keys, webhook secrets, and data access control.\nUse when securing Clay integrations, rotating API keys, auditing access,\nor implementing webhook authentication.\nTrigger with phrases like \"clay security\", \"clay secrets\", \"secure clay\",\n\"clay API key security\", \"clay webhook security\".","ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fjeremylongshore\u002Fclaude-code-plugins-plus-skills\u002Fclay-security-basics\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"security","clay","clay security basics","basics","io","openclaw","webhook","Access Control","edit","write","read","access","secrets","api","data","audit","security best practices","authentication","code","secure","2026-11-10 10:12:30",false,"---\nname: clay-security-basics\ndescription: |\n  Apply Clay security best practices for API keys, webhook secrets, and data access control.\n  Use when securing Clay integrations, rotating API keys, auditing access,\n  or implementing webhook authentication.\n  Trigger with phrases like \"clay security\", \"clay secrets\", \"secure clay\",\n  \"clay API key security\", \"clay webhook security\".\nallowed-tools: Read, Write, Edit, Grep\nversion: 1.0.0\nlicense: MIT\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\ncompatible-with: claude-code, codex, openclaw\ntags: [saas, clay, api, security, audit]\n\n---\n# Clay Security Basics\n\n## Overview\n\nSecurity best practices for Clay integrations covering API key management, webhook endpoint security, provider credential isolation, and lead data protection. Clay handles sensitive PII (emails, phone numbers, LinkedIn profiles) at scale, making security critical.\n\n## Prerequisites\n\n- Clay account with admin access\n- Understanding of environment variables and secrets management\n- Access to deployment platform's secrets manager\n\n## Instructions\n\n### Step 1: Secure API Key Storage\n\n```bash\n# .env (NEVER commit to git)\nCLAY_API_KEY=clay_ent_your_api_key_here\nCLAY_WEBHOOK_URL=https:\u002F\u002Fapp.clay.com\u002Fapi\u002Fv1\u002Fwebhooks\u002Fyour-id\n\n# .gitignore — add these patterns\n.env\n.env.local\n.env.*.local\n*.key\n```\n\nFor production, use your platform's secrets manager:\n\n```bash\n# GitHub Actions\ngh secret set CLAY_API_KEY --body \"clay_ent_your_key\"\n\n# Google Cloud Secret Manager\necho -n \"clay_ent_your_key\" | gcloud secrets create clay-api-key --data-file=-\n\n# AWS Secrets Manager\naws secretsmanager create-secret \\\n  --name clay\u002Fapi-key \\\n  --secret-string \"clay_ent_your_key\"\n```\n\n### Step 2: Authenticate Incoming Webhook Callbacks\n\nWhen Clay's HTTP API columns call your endpoint, validate the request origin:\n\n```typescript\n\u002F\u002F src\u002Fmiddleware\u002Fclay-auth.ts\nimport crypto from 'crypto';\n\nconst CLAY_WEBHOOK_SECRET = process.env.CLAY_WEBHOOK_SECRET!;\n\nfunction verifyClayCallback(\n  payload: string,\n  signature: string | undefined\n): boolean {\n  if (!signature || !CLAY_WEBHOOK_SECRET) return false;\n\n  const expected = crypto\n    .createHmac('sha256', CLAY_WEBHOOK_SECRET)\n    .update(payload)\n    .digest('hex');\n\n  return crypto.timingSafeEqual(\n    Buffer.from(signature, 'hex'),\n    Buffer.from(expected, 'hex')\n  );\n}\n\n\u002F\u002F Express middleware\nfunction clayAuthMiddleware(req: any, res: any, next: any) {\n  const signature = req.headers['x-clay-signature'] as string;\n  const rawBody = JSON.stringify(req.body);\n\n  if (!verifyClayCallback(rawBody, signature)) {\n    console.warn('Rejected unauthorized Clay callback from', req.ip);\n    return res.status(401).json({ error: 'Invalid signature' });\n  }\n  next();\n}\n```\n\n### Step 3: Isolate Provider API Keys\n\nConnect provider keys directly in Clay (Settings > Connections) rather than passing them through your application. This keeps provider credentials out of your codebase:\n\n| Provider | Where to Store Key | Why |\n|----------|-------------------|-----|\n| Apollo | Clay Settings > Connections | 0 credits when using own key |\n| Clearbit | Clay Settings > Connections | 0 credits when using own key |\n| Hunter.io | Clay Settings > Connections | 0 credits when using own key |\n| HubSpot | Clay Settings > Connections | CRM sync uses Clay's OAuth |\n| Salesforce | Clay Settings > Connections | CRM sync uses Clay's OAuth |\n\n### Step 4: API Key Rotation Procedure\n\n```bash\n# 1. Generate new key in Clay Settings > API\n# 2. Update all integrations with new key\n# 3. Test connectivity\ncurl -s -X POST \"https:\u002F\u002Fapi.clay.com\u002Fv1\u002Fpeople\u002Fenrich\" \\\n  -H \"Authorization: Bearer $NEW_CLAY_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"email\": \"test@example.com\"}' | jq .status\n\n# 4. Once confirmed working, revoke old key in Clay dashboard\n# 5. Update deployment secrets\ngh secret set CLAY_API_KEY --body \"$NEW_CLAY_API_KEY\"\n```\n\n### Step 5: Protect Enriched Lead Data\n\n```typescript\n\u002F\u002F src\u002Fclay\u002Fdata-protection.ts\nconst PII_FIELDS = ['email', 'phone', 'personal_email', 'home_address', 'linkedin_url'];\n\n\u002F** Strip PII from enriched data before logging or analytics *\u002F\nfunction redactPII(row: Record\u003Cstring, unknown>): Record\u003Cstring, unknown> {\n  const redacted = { ...row };\n  for (const field of PII_FIELDS) {\n    if (field in redacted) {\n      redacted[field] = '[REDACTED]';\n    }\n  }\n  return redacted;\n}\n\n\u002F** Hash email for deduplication without storing plaintext *\u002F\nfunction hashEmail(email: string): string {\n  return crypto.createHash('sha256').update(email.toLowerCase().trim()).digest('hex');\n}\n\n\u002F\u002F Usage: log enriched data safely\nconsole.log('Enriched:', redactPII(enrichedRow));\n```\n\n### Step 6: Security Checklist\n\n- [ ] API keys stored in environment variables or secrets manager\n- [ ] `.env` files in `.gitignore`\n- [ ] Webhook callback endpoints validate request signatures\n- [ ] Provider API keys connected in Clay UI (not in application code)\n- [ ] API key rotation procedure documented and tested\n- [ ] Enriched PII data redacted in application logs\n- [ ] Clay workspace uses separate API keys per integration\n- [ ] Least privilege: viewers can't run enrichments or export data\n- [ ] No hardcoded Clay URLs or keys in source code\n- [ ] git-secrets or similar scanning enabled in CI\n\n## Error Handling\n\n| Security Issue | Detection | Mitigation |\n|----------------|-----------|------------|\n| API key in git history | `git log -p --all -S 'clay_ent_'` | Rotate key immediately, use BFG to scrub |\n| Unauthorized webhook calls | Missing signature validation | Add HMAC verification middleware |\n| Over-permissioned users | Viewers running enrichments | Audit roles in Settings > Members |\n| PII in application logs | grep logs for email patterns | Add PII redaction to log pipeline |\n\n## Resources\n\n- [Clay Plans & Billing](https:\u002F\u002Funiversity.clay.com\u002Fdocs\u002Fplans-and-billing)\n- [OWASP API Security Top 10](https:\u002F\u002Fowasp.org\u002Fwww-project-api-security\u002F)\n\n## Next Steps\n\nFor production deployment, see `clay-prod-checklist`.\n\n","# Clay Security Basics\n\n## Overview\n\nSecurity best practices for Clay integrations covering API key management, webhook endpoint security, provider credential isolation, and lead data protection. Clay handles sensitive PII (emails, phone numbers, LinkedIn profiles) at scale, making security critical.\n\n## Prerequisites\n\n- Clay account with admin access\n- Understanding of environment variables and secrets management\n- Access to deployment platform's secrets manager\n\n## Instructions\n\n### Step 1: Secure API Key Storage\n\n```bash\n# .env (NEVER commit to git)\nCLAY_API_KEY=clay_ent_your_api_key_here\nCLAY_WEBHOOK_URL=https:\u002F\u002Fapp.clay.com\u002Fapi\u002Fv1\u002Fwebhooks\u002Fyour-id\n\n# .gitignore — add these patterns\n.env\n.env.local\n.env.*.local\n*.key\n```\n\nFor production, use your platform's secrets manager:\n\n```bash\n# GitHub Actions\ngh secret set CLAY_API_KEY --body \"clay_ent_your_key\"\n\n# Google Cloud Secret Manager\necho -n \"clay_ent_your_key\" | gcloud secrets create clay-api-key --data-file=-\n\n# AWS Secrets Manager\naws secretsmanager create-secret \\\n  --name clay\u002Fapi-key \\\n  --secret-string \"clay_ent_your_key\"\n```\n\n### Step 2: Authenticate Incoming Webhook Callbacks\n\nWhen Clay's HTTP API columns call your endpoint, validate the request origin:\n\n```typescript\n\u002F\u002F src\u002Fmiddleware\u002Fclay-auth.ts\nimport crypto from 'crypto';\n\nconst CLAY_WEBHOOK_SECRET = process.env.CLAY_WEBHOOK_SECRET!;\n\nfunction verifyClayCallback(\n  payload: string,\n  signature: string | undefined\n): boolean {\n  if (!signature || !CLAY_WEBHOOK_SECRET) return false;\n\n  const expected = crypto\n    .createHmac('sha256', CLAY_WEBHOOK_SECRET)\n    .update(payload)\n    .digest('hex');\n\n  return crypto.timingSafeEqual(\n    Buffer.from(signature, 'hex'),\n    Buffer.from(expected, 'hex')\n  );\n}\n\n\u002F\u002F Express middleware\nfunction clayAuthMiddleware(req: any, res: any, next: any) {\n  const signature = req.headers['x-clay-signature'] as string;\n  const rawBody = JSON.stringify(req.body);\n\n  if (!verifyClayCallback(rawBody, signature)) {\n    console.warn('Rejected unauthorized Clay callback from', req.ip);\n    return res.status(401).json({ error: 'Invalid signature' });\n  }\n  next();\n}\n```\n\n### Step 3: Isolate Provider API Keys\n\nConnect provider keys directly in Clay (Settings > Connections) rather than passing them through your application. This keeps provider credentials out of your codebase:\n\n| Provider | Where to Store Key | Why |\n|----------|-------------------|-----|\n| Apollo | Clay Settings > Connections | 0 credits when using own key |\n| Clearbit | Clay Settings > Connections | 0 credits when using own key |\n| Hunter.io | Clay Settings > Connections | 0 credits when using own key |\n| HubSpot | Clay Settings > Connections | CRM sync uses Clay's OAuth |\n| Salesforce | Clay Settings > Connections | CRM sync uses Clay's OAuth |\n\n### Step 4: API Key Rotation Procedure\n\n```bash\n# 1. Generate new key in Clay Settings > API\n# 2. Update all integrations with new key\n# 3. Test connectivity\ncurl -s -X POST \"https:\u002F\u002Fapi.clay.com\u002Fv1\u002Fpeople\u002Fenrich\" \\\n  -H \"Authorization: Bearer $NEW_CLAY_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"email\": \"test@example.com\"}' | jq .status\n\n# 4. Once confirmed working, revoke old key in Clay dashboard\n# 5. Update deployment secrets\ngh secret set CLAY_API_KEY --body \"$NEW_CLAY_API_KEY\"\n```\n\n### Step 5: Protect Enriched Lead Data\n\n```typescript\n\u002F\u002F src\u002Fclay\u002Fdata-protection.ts\nconst PII_FIELDS = ['email', 'phone', 'personal_email', 'home_address', 'linkedin_url'];\n\n\u002F** Strip PII from enriched data before logging or analytics *\u002F\nfunction redactPII(row: Record\u003Cstring, unknown>): Record\u003Cstring, unknown> {\n  const redacted = { ...row };\n  for (const field of PII_FIELDS) {\n    if (field in redacted) {\n      redacted[field] = '[REDACTED]';\n    }\n  }\n  return redacted;\n}\n\n\u002F** Hash email for deduplication without storing plaintext *\u002F\nfunction hashEmail(email: string): string {\n  return crypto.createHash('sha256').update(email.toLowerCase().trim()).digest('hex');\n}\n\n\u002F\u002F Usage: log enriched data safely\nconsole.log('Enriched:', redactPII(enrichedRow));\n```\n\n### Step 6: Security Checklist\n\n- [ ] API keys stored in environment variables or secrets manager\n- [ ] `.env` files in `.gitignore`\n- [ ] Webhook callback endpoints validate request signatures\n- [ ] Provider API keys connected in Clay UI (not in application code)\n- [ ] API key rotation procedure documented and tested\n- [ ] Enriched PII data redacted in application logs\n- [ ] Clay workspace uses separate API keys per integration\n- [ ] Least privilege: viewers can't run enrichments or export data\n- [ ] No hardcoded Clay URLs or keys in source code\n- [ ] git-secrets or similar scanning enabled in CI\n\n## Error Handling\n\n| Security Issue | Detection | Mitigation |\n|----------------|-----------|------------|\n| API key in git history | `git log -p --all -S 'clay_ent_'` | Rotate key immediately, use BFG to scrub |\n| Unauthorized webhook calls | Missing signature validation | Add HMAC verification middleware |\n| Over-permissioned users | Viewers running enrichments | Audit roles in Settings > Members |\n| PII in application logs | grep logs for email patterns | Add PII redaction to log pipeline |\n\n## Resources\n\n- [Clay Plans & Billing](https:\u002F\u002Funiversity.clay.com\u002Fdocs\u002Fplans-and-billing)\n- [OWASP API Security Top 10](https:\u002F\u002Fowasp.org\u002Fwww-project-api-security\u002F)\n\n## Next Steps\n\nFor production deployment, see `clay-prod-checklist`.\n\n",{"name":5,"tags":44,"author":46,"license":15,"version":47,"description":48,"allowed-tools":49,"compatible-with":50},[45,20,32,19,34],"saas","Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Apply Clay security best practices for API keys, webhook secrets, and data access control.\nUse when securing Clay integrations, rotating API keys, auditing access,\nor implementing webhook authentication.\nTrigger with phrases like \"clay security\", \"clay secrets\", \"secure clay\",\n\"clay API key security\", \"clay webhook security\".\n","Read, Write, Edit, Grep","claude-code, codex, openclaw","main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Fjeremylongshore\u002Fclaude-code-plugins-plus-skills\u002Fclay-security-basics",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":8,"skillName":5,"commands":61,"prompt":71,"zipAvailable":72},[62,65,68],{"tool":63,"command":64},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill clay-security-basics",{"tool":66,"command":67},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill clay-security-basics",{"tool":69,"command":70},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill clay-security-basics","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fjeremylongshore\u002Fclaude-code-plugins-plus-skills\u002Fclay-security-basics\u002FSKILL.md",true,[],[75,84,93,102,108,114],{"skillNo":76,"name":77,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":39},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[81,82,83],"model","model hierarchy","model hierarchy skill",{"skillNo":85,"name":86,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":39},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[90,91,92],"MCP","zoom","zoom mcp",{"skillNo":94,"name":95,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":39},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[99,100,101,91],"sdk","zoom apps sdk","apps",{"skillNo":103,"name":104,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":39},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[104],{"skillNo":109,"name":110,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":39},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[110],{"skillNo":115,"name":116,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":39},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[116]]