zot icon indicating copy to clipboard operation
zot copied to clipboard

auth: Added API key support,

Open eusebiu-constantin-petu-dbk opened this issue 2 years ago • 2 comments

only one key per user which is visible only at creation time user can generate/revoke/regenerate his api key admin can revoke a user api key or all keys

closes #528

Signed-off-by: Petu Eusebiu [email protected]

What type of PR is this?

Which issue does this PR fix:

What does this PR do / Why do we need it:

If an issue # is not available please add repro steps and logs showing the issue:

Testing done on this change:

Automation added to e2e:

Will this break upgrades or downgrades?

Does this PR introduce any user-facing change?:


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Codecov Report

Merging #570 (71b87c4) into main (66484c8) will increase coverage by 0.21%. The diff coverage is 96.84%.

@@            Coverage Diff             @@
##             main     #570      +/-   ##
==========================================
+ Coverage   87.60%   87.81%   +0.21%     
==========================================
  Files          52       53       +1     
  Lines       11182    11494     +312     
==========================================
+ Hits         9796    10094     +298     
- Misses       1086     1097      +11     
- Partials      300      303       +3     
Impacted Files Coverage Δ
pkg/api/config/config.go 85.41% <ø> (ø)
pkg/api/routes.go 97.31% <93.54%> (-0.59%) :arrow_down:
pkg/api/authn.go 80.78% <100.00%> (+1.06%) :arrow_up:
pkg/api/authz.go 100.00% <100.00%> (ø)
pkg/api/controller.go 93.98% <100.00%> (+0.11%) :arrow_up:
pkg/api/errors.go 100.00% <100.00%> (ø)
pkg/storage/cache.go 61.93% <100.00%> (ø)
pkg/storage/database/database.go 100.00% <100.00%> (ø)
pkg/api/session.go 96.99% <0.00%> (-3.01%) :arrow_down:
... and 1 more

:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

codecov[bot] avatar Jun 06 '22 15:06 codecov[bot]

Let's move the api under extensions.

andaaron avatar Jun 22 '22 16:06 andaaron

Superseded by changes in https://github.com/project-zot/zot/pull/1381

andaaron avatar Jul 05 '23 08:07 andaaron