0
Fork 0
mirror of https://github.com/project-zot/zot.git synced 2025-01-13 22:50:38 -05:00
zot/pkg/api
Andreea Lupu 41b05c60dd
feat: upload certificates and public keys for verifying signatures (#1485)
In order to verify signatures, users could upload their certificates and public keys using these routes:
	-> for public keys:
		/v2/_zot/ext/mgmt?resource=signatures&tool=cosign
	-> for certificates:
		/v2/_zot/ext/mgmt?resource=signatures&tool=notation&truststoreType=ca&truststoreName=name
Then the public keys will be stored under $rootdir/_cosign and the certificates will be stored under
$rootdir/_notation/truststore/x509/$truststoreType/$truststoreName.
Also, for notation case, the "truststores" field of $rootir/_notation/trustpolicy.json file will be
updated with a new entry "$truststoreType:$truststoreName".
Also based on the uploaded files, the information about the signatures validity will be updated
periodically.

Signed-off-by: Andreea-Lupu <andreealupu1470@yahoo.com>
2023-07-06 14:57:59 +03:00
..
config fix: changing default numWorkers, making it customizable and refactoring scheduler (#1563) 2023-07-04 11:03:29 +03:00
constants feat(routes): move the cors handler from /v2 to only where it's needed (#1457) 2023-05-19 21:22:51 -07:00
errors refactor: move helper functions under common, in usage specific named files (#1540) 2023-06-22 14:29:45 +03:00
authn.go refactor: move helper functions under common, in usage specific named files (#1540) 2023-06-22 14:29:45 +03:00
authz.go refactor: split AuthZ mdw in 2 different parts, each for a specific purpose (#1542) 2023-07-05 09:37:52 -07:00
controller.go feat: upload certificates and public keys for verifying signatures (#1485) 2023-07-06 14:57:59 +03:00
controller_test.go feat(cli): add referrers and search commands to cli (#1497) 2023-06-22 10:43:01 -07:00
ldap.go feat(groups)!: added "groups" mechanism for authZ (#1123) 2023-03-08 11:47:15 -08:00
routes.go refactor: split AuthZ mdw in 2 different parts, each for a specific purpose (#1542) 2023-07-05 09:37:52 -07:00
routes_test.go ci(disk usage): disk related fixes and improvements (#1524) 2023-06-15 15:07:28 -07:00
session.go chore(lint): gci to separate zot from other imports (#870) 2022-10-20 09:39:20 -07:00