0
Fork 0
mirror of https://github.com/project-zot/zot.git synced 2024-12-16 21:56:37 -05:00
zot/pkg/cli
peusebiu 17d1338af1
feat: integrate openID auth logic and user profile management (#1381)
This change introduces OpenID authn by using providers such as Github,
Gitlab, Google and Dex.
User sessions are now used for web clients to identify
and persist an authenticated users session, thus not requiring every request to
use credentials.
Another change is apikey feature, users can create/revoke their api keys and use them
to authenticate when using cli clients such as skopeo.

eg:
login:
/auth/login?provider=github
/auth/login?provider=gitlab
and so on

logout:
/auth/logout

redirectURL:
/auth/callback/github
/auth/callback/gitlab
and so on

If network policy doesn't allow inbound connections, this callback wont work!

for more info read documentation added in this commit.

Signed-off-by: Alex Stan <alexandrustan96@yahoo.ro>
Signed-off-by: Petu Eusebiu <peusebiu@cisco.com>
Co-authored-by: Alex Stan <alexandrustan96@yahoo.ro>
2023-07-07 09:27:10 -07:00
..
cli.go feat(cli): add referrers and search commands to cli (#1497) 2023-06-22 10:43:01 -07:00
client.go fix: removed duplicate structures from service.go and moved them to pkg/common (#1436) 2023-05-25 11:27:49 -07:00
client_elevated_test.go refactor: Cleanup/simplify testcases in /pkg/cli (#1103) 2023-01-16 21:52:50 -08:00
client_test.go test(refactor): cleanup/simplify testcases (#1124) 2023-01-20 10:01:52 -08:00
client_utils_test.go refactor(artifact): remove oci artifact support (#1359) 2023-05-10 10:15:33 -07:00
config_cmd.go chore(lint): gci to separate zot from other imports (#870) 2022-10-20 09:39:20 -07:00
config_cmd_test.go chore(lint): gci to separate zot from other imports (#870) 2022-10-20 09:39:20 -07:00
config_reloader.go feat: remove usage of zerolog.Logger.Msgf() from zot code (#1382) 2023-04-27 19:44:22 -07:00
config_reloader_test.go fix(test): TestConfigReloader, wait for trivy db download (#1543) 2023-07-06 14:17:49 +03:00
cve_cmd.go fix(CVE): attempt to scan now returns early with an error if trivyDB metadata json is missing (#1548) 2023-07-05 09:08:16 -07:00
cve_cmd_test.go feat(cve): implemented trivy image scan for multiarch images (#1510) 2023-07-06 11:36:26 +03:00
discover.go fix: removed duplicate structures from service.go and moved them to pkg/common (#1436) 2023-05-25 11:27:49 -07:00
extensions_test.go feat: integrate openID auth logic and user profile management (#1381) 2023-07-07 09:27:10 -07:00
image_cmd.go feat(cli): add referrers and search commands to cli (#1497) 2023-06-22 10:43:01 -07:00
image_cmd_test.go feat(cve): implemented trivy image scan for multiarch images (#1510) 2023-07-06 11:36:26 +03:00
minimal.go build(tags): remove redundant build tag ui_base (#857) 2022-10-10 15:05:55 +03:00
repo_cmd.go feat(cli): add referrers and search commands to cli (#1497) 2023-06-22 10:43:01 -07:00
root.go feat: integrate openID auth logic and user profile management (#1381) 2023-07-07 09:27:10 -07:00
root_test.go feat: integrate openID auth logic and user profile management (#1381) 2023-07-07 09:27:10 -07:00
search_cmd.go fix(cli): add help message for searching referrers under search command (#1551) 2023-06-23 17:44:30 +03:00
search_cmd_referrers_test.go feat(cli): add referrers and search commands to cli (#1497) 2023-06-22 10:43:01 -07:00
search_cmd_test.go feat(cli): add referrers and search commands to cli (#1497) 2023-06-22 10:43:01 -07:00
searcher.go feat(cli): add referrers and search commands to cli (#1497) 2023-06-22 10:43:01 -07:00
service.go feat(cve): implemented trivy image scan for multiarch images (#1510) 2023-07-06 11:36:26 +03:00
stress_test.go refactor: Cleanup/simplify testcases in /pkg/cli (#1103) 2023-01-16 21:52:50 -08:00