0
Fork 0
mirror of https://github.com/project-zot/zot.git synced 2024-12-16 21:56:37 -05:00
zot/.github/workflows
Andrei Aaron 77149aa85c
refactor(extensions)!: refactor the extensions URLs and errors (#1636)
BREAKING CHANGE: The functionality provided by the mgmt endpoint has beed redesigned - see details below
BREAKING CHANGE: The API keys endpoint has been moved -  see details below
BREAKING CHANGE: The mgmt extension config has been removed - endpoint is now enabled by having both the search and the ui extensions enabled
BREAKING CHANGE: The API keys configuration has been moved from extensions to http>auth>apikey

mgmt and imagetrust extensions:
- separate the _zot/ext/mgmt into 3 separate endpoints: _zot/ext/auth, _zot/ext/notation, _zot/ext/cosign
- signature verification logic is in a separate `imagetrust` extension
- better hanling or errors in case of signature uploads: logging and error codes (more 400 and less 500 errors)
- add authz on signature uploads (and add a new middleware in common for this purpose)
- remove the mgmt extension configuration - it is now enabled if the UI and the search extensions are enabled

userprefs estension:
- userprefs are enabled if both search and ui extensions are enabled (as opposed to just search)

apikey extension is removed and logic moved into the api folder
- Move apikeys code out of pkg/extensions and into pkg/api
- Remove apikey configuration options from the extensions configuration and move it inside the http auth section
- remove the build label apikeys

other changes:
- move most of the logic adding handlers to the extensions endpoints out of routes.go and into the extensions files.
- add warnings in case the users are still using configurations with the obsolete settings for mgmt and api keys
- add a new function in the extension package which could be a single point of starting backgroud tasks for all extensions
- more clear methods for verifying specific extensions are enabled
- fix http methods paired with the UI handlers
- rebuild swagger docs

Signed-off-by: Andrei Aaron <aaaron@luxoft.com>
2023-08-02 21:58:34 +03:00
..
benchmark.yaml chore: fix dependabot alerts (#1613) 2023-07-13 10:14:03 +03:00
branch-cov.yml chore: update golang (to 1.20.x) and golangci-linter (#1388) 2023-04-27 00:09:46 -07:00
ci-cd.yml ci: add freebsd target for releases (#1660) 2023-07-31 13:51:03 -07:00
cloc.yml chore: update golang (to 1.20.x) and golangci-linter (#1388) 2023-04-27 00:09:46 -07:00
cluster.yaml chore: fix dependabot alerts (#1613) 2023-07-13 10:14:03 +03:00
codeql-analysis.yml refactor(extensions)!: refactor the extensions URLs and errors (#1636) 2023-08-02 21:58:34 +03:00
commit-msg.yaml chore: fix security alerts (#1493) 2023-06-01 16:53:50 -07:00
dco.yml dco: enable DCO checks only on PRs (#812) 2022-09-22 20:13:53 +03:00
ecosystem-tools.yaml feat: integrate openID auth logic and user profile management (#1381) 2023-07-07 09:27:10 -07:00
golangci-lint.yaml refactor(extensions)!: refactor the extensions URLs and errors (#1636) 2023-08-02 21:58:34 +03:00
gqlgen.yaml chore: update golang (to 1.20.x) and golangci-linter (#1388) 2023-04-27 00:09:46 -07:00
license.yaml chore: update golang (to 1.20.x) and golangci-linter (#1388) 2023-04-27 00:09:46 -07:00
nightly.yaml fix(nightly): fix nightly builds (#1584) 2023-07-06 16:50:12 +03:00
oci-conformance-action.yml fix(conformance): OCI-Filters-Applied should return a literal (#1640) 2023-07-22 16:25:02 -07:00
scorecards.yml chore: fix dependabot alerts (#1649) 2023-07-25 08:14:37 +03:00
stale.yaml chore: fix dependabot alerts (#1312) 2023-03-27 12:16:29 -07:00
sync-3rdparty-images.yaml chore: fix security alerts (#1493) 2023-06-01 16:53:50 -07:00
tls.yaml chore: update golang (to 1.20.x) and golangci-linter (#1388) 2023-04-27 00:09:46 -07:00
web-scan.yml chore: fix dependabot alerts (#1581) 2023-07-05 11:42:24 +03:00