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

source-academy / backend / d652c84f3b039e0f70c67551f3e333edf04c042f-PR-1370
88%
master: 87%

Build:
Build:
LAST BUILD BRANCH: renovate/aws-6.x
DEFAULT BRANCH: master
Ran 30 Jul 2026 03:47PM UTC
Jobs 1
Files 169
Run time 1min
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

30 Jul 2026 03:39PM UTC coverage: 87.568%. First build
d652c84f3b039e0f70c67551f3e333edf04c042f-PR-1370

Pull #1370

github

RichDom2185
Add hardened mode restricting course creation to super admins

Under hardened mode (config :cadet, hardened_mode: true, default off),
POST /v2/config/create is limited to users with super_admin. Non-super
admins receive an opaque 401 "Unauthorised" -- identical to the auth
error handler -- so the restriction is not disclosed; the real reason
is logged server-side only. No frontend changes required.

- config/config.exs: declare hardened_mode flag (default false)
- lib/cadet/env.ex: add Cadet.Env.hardened_mode?/0 helper
- lib/cadet_web/controllers/courses_controller.ex: enforce in create/2
- config/cadet.exs.example: document the prod runtime option
- test: cover super-admin success and non-super-admin opaque 401
Pull Request #1370: Add hardened mode restricting course creation to super admins

16 of 16 new or added lines in 2 files covered. (100.0%)

4015 of 4585 relevant lines covered (87.57%)

6986.23 hits per line

Jobs
ID Job ID Ran Files Coverage
1 d652c84f3b039e0f70c67551f3e333edf04c042f-PR-1370.1 30 Jul 2026 03:47PM UTC 169
87.57
GitHub Action Run
Source Files on build d652c84f3b039e0f70c67551f3e333edf04c042f-PR-1370
  • Tree
  • List 169
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #1370
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc