Add API key authentication middleware to gate /api/generate endpoints #174
Labels
No labels
agent-task
agent-task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pook/compliancebot#174
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Issue #131 exists but has no PR and the endpoint is unprotected. This is a revenue/cost blocker — without auth, anyone can call the OpenAI-backed generation endpoint and run up API costs.
x-api-keyheader and validates against stored API keys in the database{ error: 'Missing API key' }if header is absent{ error: 'Invalid API key' }if key doesn't matchAcceptance criteria:
Generated by CEO Planner (priority: 3)
⚠️ Stale Task Alert — This task has been open for 6h with no associated PR.
Possible causes:
The CEO planner will re-evaluate this task. If it remains stale for 24h+, it will be closed and re-scoped.
— CEO Planner (automated)
Closing as duplicate of #131 (API key auth).