clerk-observability
Enables comprehensive monitoring and logging for Clerk authentication, aiding in debugging and audit logging for production environments.
Install this skill
Security score
The clerk-observability skill was audited on May 12, 2026 and we found 20 security issues across 4 threat categories. Review the findings below before installing.
Categories Tested
Security Issues
Template literal with variable interpolation in command context
| 92 | console.warn(`[Auth Perf] ${req.nextUrl.pathname} took ${duration}ms`, { |
Template literal with variable interpolation in command context
| 100 | response.headers.set('X-Auth-Duration', `${duration}ms`) |
Webhook reference - potential data exfiltration
| 29 | Implement monitoring, logging, and observability for Clerk authentication. Covers structured auth logging, middleware performance tracking, webhook event monitoring, Sentry integration, and health che |
Webhook reference - potential data exfiltration
| 104 | ### Step 3: Webhook Event Tracking |
Webhook reference - potential data exfiltration
| 106 | // app/api/webhooks/clerk/route.ts |
Webhook reference - potential data exfiltration
| 109 | async function handleWebhookEvent(evt: WebhookEvent) { |
Webhook reference - potential data exfiltration
| 112 | // Track webhook processing metrics |
Webhook reference - potential data exfiltration
| 124 | path: '/webhooks/clerk', |
Webhook reference - potential data exfiltration
| 134 | path: '/webhooks/clerk', |
Webhook reference - potential data exfiltration
| 142 | path: '/webhooks/clerk', |
Webhook reference - potential data exfiltration
| 149 | // Alert on slow webhook processing |
Webhook reference - potential data exfiltration
| 151 | console.error('[Webhook] Slow processing:', metrics) |
Webhook reference - potential data exfiltration
| 268 | webhookEvents24h: await db.webhookEvent.count({ |
Webhook reference - potential data exfiltration
| 280 | - Webhook event monitoring with processing time metrics |
Webhook reference - potential data exfiltration
| 289 | | Webhook failure rate > 1% | Alert on processing errors, check endpoint health | |
Access to .env file
| 44 | level: process.env.LOG_LEVEL || 'info', |
Access to .env file
| 45 | transport: process.env.NODE_ENV === 'development' ? { target: 'pino-pretty' } : undefined, |
Access to .env file
| 197 | dsn: process.env.SENTRY_DSN, |
External URL reference
| 302 | - [Clerk Dashboard Analytics](https://dashboard.clerk.com) |
External URL reference
| 304 | - [Pino Logger](https://getpino.io/) |