linear-security-basics

Featured

Secure API key management, OAuth best practices, and webhook verification for Linear integrations. Trigger: "linear security", "linear API key security", "linear OAuth", "secure linear", "linear webhook verification", "linear secrets management", "linear token refresh".

AI & Automation 2,944 stars 440 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Linear Security Basics ## Overview Secure authentication patterns for Linear integrations: API key management, OAuth 2.0 with PKCE, token refresh (mandatory for new apps after Oct 2025), webhook HMAC-SHA256 signature verification, and secret rotation. ## Prerequisites - Linear account with API access - Understanding of environment variables and secret management - Familiarity with OAuth 2.0 and HMAC concepts ## Instructions ### Step 1: Secure API Key Storage ```typescript // NEVER hardcode keys // BAD: // const client = new LinearClient({ apiKey: "lin_api_xxxx" }); // GOOD: environment variable import { LinearClient } from "@linear/sdk"; const client = new LinearClient({ apiKey: process.env.LINEAR_API_KEY!, }); ``` **Environment setup:** ```bash # .env (never commit) LINEAR_API_KEY=lin_api_xxxxxxxxxxxxxxxxxxxxxxxxxxxx LINEAR_WEBHOOK_SECRET=whsec_xxxxxxxxxxxx # .gitignore .env .env.* !.env.example # .env.example (commit for documentation) LINEAR_API_KEY=lin_api_your_key_here LINEAR_WEBHOOK_SECRET=your_webhook_secret_here ``` **Startup validation:** ```typescript function validateConfig(): void { const key = process.env.LINEAR_API_KEY; if (!key) throw new Error("LINEAR_API_KEY is required"); if (!key.startsWith("lin_api_")) throw new Error("LINEAR_API_KEY has invalid format"); if (key.length < 30) throw new Error("LINEAR_API_KEY appears truncated"); } validateConfig(); ``` ### Step 2: OAuth 2.0 with PKCE ```typescript import express from "express"; import...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category