• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

kitplummer / lowendinsight / 92f45dbfccf8457eca3cc7a357abb71855b198c2-PR-25 / 5
89%
develop: 89%

Build:
Build:
LAST BUILD BRANCH: feat/request-id-correlation
DEFAULT BRANCH: develop
Ran 07 Mar 2026 02:02PM UTC
Files 66
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

07 Mar 2026 01:34PM UTC coverage: 88.113% (-1.9%) from 90.035%
92f45dbfccf8457eca3cc7a357abb71855b198c2-PR-25.5

Pull #25

github

kitplummer
feat(auth): add API key foundation for multi-tenancy

Add dual auth (JWT + API key) with lei_ prefix keys, SHA-256 hashed
storage, and Ecto-backed org/key models. This is the foundation for
multi-tenant API access — scopes are tracked but not enforced yet.

- Add Ecto, Postgrex, Joken deps and Lei.Repo
- Create orgs and api_keys tables with migrations
- Add Lei.Org and Lei.ApiKey schemas with slug auto-generation
- Add Lei.ApiKeys context (find_or_create_org, create/auth/revoke)
- Add Lei.Auth plug with API key match before JWT fallback
- Wire auth into Lei.Web.Router, update router tests with JWT headers
- Add mix lei.gen_api_key CLI task for key provisioning
- Add Postgres service to CI workflow
- Fix helpers config serialization for Ecto config keys
- Add Ecto Sandbox to test_helper.exs
- 31 new tests covering schemas, context, and dual auth

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Pull Request #25: feat(auth): API key foundation for multi-tenancy

1564 of 1775 relevant lines covered (88.11%)

1235.94 hits per line

Source Files on job 92f45dbfccf8457eca3cc7a357abb71855b198c2-PR-25.5
  • Tree
  • List 66
  • Changed 7
  • Source Changed 0
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 92
  • 92f45dbf on github
  • Prev Job for on feat/api-key-foundation-v2 (#173de904fbad321f1ce9e4cf223c1eb97192811a.1)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc