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

Netflix / lemur / 1831
75%
main: 61%

Build:
Build:
LAST BUILD BRANCH: enable-autorotate-filter
DEFAULT BRANCH: main
Ran 04 Dec 2017 04:54PM UTC
Jobs 1
Files 180
Run time 9s
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

pending completion
1831

push

travis-ci

kevgliss
add per user api keys to the backend (#995)

Adds in per user api keys to the backend of lemur.
the basics are:
  - API Keys are really just JWTs with custom second length TTLs.
  - API Keys are provided in the exact same ways JWTs are now.
  - API Keys can be revoked/unrevoked at any time by their creator
    as well as have their TTL Change at anytime.
  - Users can create/view/list their own API Keys at will, and
    an admin role has permission to modify all api keys in the
    instance.

Adds in support for lemur api keys to the frontend of lemur.
doing this required a few changes to the backend as well, but it is
now all working (maybe not the best way though, review will determine
that).

  - fixes inconsistency in moduleauthor name I inputted during the
    first commit.
  - Allows the revoke schema to optionally allow a full api_key object.
  - Adds `/users/:user_id/api_keys/:api_key` and `/users/:user_id/api_keys`
    endpoints.
  - normalizes use of `userId` vs `userId`
  - makes `put` call respond with a JWT so the frontend can show
    the token on updating.
  - adds in the API Key views for clicking "API Keys" on the main nav.
  - adds in the API Key views for clicking into a users edit page.
  - adds tests for the API Key backend views I added.

246 of 246 new or added lines in 8 files covered. (100.0%)

4002 of 6607 relevant lines covered (60.57%)

0.61 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
6
100.0
lemur/auth/service.py
9
100.0
lemur/api_keys/service.py
17
100.0
lemur/api_keys/cli.py
57
100.0
lemur/api_keys/views.py
Jobs
ID Job ID Ran Files Coverage
1 1831.1 (TOXENV=py35) 04 Dec 2017 04:54PM UTC 0
60.57
Travis Job 1831.1
Source Files on build 1831
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1831
  • c402f1ff on github
  • Prev Build on master (#1826)
  • Next Build on master (#1834)
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