← Back to list

security-basics
by matt-riley
Personal URL shortening service - Entirely written by Copilot
⭐ 0🍴 0📅 Jan 25, 2026
SKILL.md
name: security-basics description: Apply project-specific security and privacy guardrails (auth, headers, rate limiting, logging). Use when touching authentication, request handling, metrics exposure, or anything that could leak sensitive data. license: MIT compatibility: Applies to the mjrwtf Go server; requires bash and git for repo work. metadata: repo: mjrwtf runner: github-copilot-cli version: 1.3 allowed-tools: Bash(git:) Bash(go:) Bash(make:*) Read
Tooling assumptions
- Use a terminal runner with bash and git available.
- Prefer
maketargets when available; fall back to direct CLI commands when needed.
Authentication & secrets
- Auth tokens:
AUTH_TOKENS(preferred; comma-separated) orAUTH_TOKEN(legacy; single token). - Never hardcode tokens; use environment variables.
- Avoid logging full URLs, tokens, session cookies, or authorization headers.
Rate limiting & client IP
- The rate limiter keys by client IP and may use
X-Forwarded-For/X-Real-IP. - In production, ensure the reverse proxy strips/overwrites forwarding headers to prevent spoofing.
Metrics exposure
/metricsmay be public by default; enable protection when needed viaMETRICS_AUTH_ENABLED=true.
Practical review checklist
- Inputs validated (especially short codes and URLs).
- Error responses don’t reveal internals/secrets.
- CORS settings (
ALLOWED_ORIGINS) are appropriate for production. - Secure cookies enabled (
SECURE_COOKIES=true) when behind HTTPS.
Score
Total Score
60/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon