bootstrap-api-keys

Official

Add secure API key management to Phoenix apps.

Authoragoodway
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Creating and maintaining API key authentication in a Phoenix 1.8 app is repetitive and error-prone, especially when you need secure token handling, revocation, and a user-facing management UI.

Core Features & Use Cases

  • Discovers existing components first: Audits migrations, schema, context functions, LiveView, auth plug, and router entries to avoid duplicating or overwriting partial implementations.
  • Generates missing backend + UI: Adds the api_keys migration and ApiKey schema, context functions for create/list/revoke/verify/touch, an ApiKeyLive.Index LiveView with modals for create/token/revoke, and the Bearer token auth plug.
  • Ensures key security patterns: Never stores raw tokens (stores prefix + SHA256 hash), shows the raw token only once after creation, supports optional expiration, and uses soft revocation.

Quick Start

Ask your AI assistant to run bootstrap-api-keys in your Phoenix 1.8 app to add end-to-end API key CRUD with Bearer authentication at /api-keys.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: bootstrap-api-keys
Download link: https://github.com/agoodway/GoodSkills/archive/main.zip#bootstrap-api-keys

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.