0
Fork 0
mirror of https://github.com/project-zot/zot.git synced 2025-01-13 22:50:38 -05:00
zot/pkg/cli/client
Andreea Lupu d5065513f5
feat: add support for oci1.1 cosign signatures(using referrers) (#1963)
- Cosign supports 2 types of signature formats:

	1. Using tag -> each new signature of the same manifest is
	added as a new layer of the signature manifest having that
	specific tag("{alghoritm}-{digest_of_signed_manifest}.sig")

	2. Using referrers -> each new signature of the same manifest is
	added as a new manifest

- For adding these cosign signature to metadb, we reserved index 0 of the
list of cosign signatures for tag-based signatures. When a new tag-based
signature is added for the same manifest, the element on first position
in its list of cosign signatures(in metadb) will be updated/overwritten.
When a new cosign signature(using referrers) will be added for the same
manifest this new signature will be appended to the list of cosign
signatures.

Signed-off-by: Andreea-Lupu <andreealupu1470@yahoo.com>
2023-11-06 14:09:39 -08:00
..
cli.go refactor: Reduce zli binary size (#1805) 2023-09-15 15:17:01 -07:00
client.go feat: add support for oci1.1 cosign signatures(using referrers) (#1963) 2023-11-06 14:09:39 -08:00
client_test.go fix: tests refactoring (#1950) 2023-10-26 11:20:39 +03:00
config_cmd.go refactor: Reduce zli binary size (#1805) 2023-09-15 15:17:01 -07:00
config_cmd_test.go refactor(test): make sure cli tests are not internal unless they need to be (#1878) 2023-10-03 11:15:39 -07:00
cve_cmd_internal_test.go refactor(test): make sure cli tests are not internal unless they need to be (#1878) 2023-10-03 11:15:39 -07:00
cve_cmd_test.go refactor(metadb): improve UX by speeding up metadb serialize/deserialize (#1842) 2023-10-30 13:06:04 -07:00
cves_cmd.go refactor(cli): Move cmdflags package under pkg/cli/client (#1840) 2023-09-22 16:33:18 +03:00
cves_sub_cmd.go refactor(cli): Move cmdflags package under pkg/cli/client (#1840) 2023-09-22 16:33:18 +03:00
discover.go refactor(test): make sure cli tests are not internal unless they need to be (#1878) 2023-10-03 11:15:39 -07:00
elevated_test.go refactor(test): make sure cli tests are not internal unless they need to be (#1878) 2023-10-03 11:15:39 -07:00
flags.go refactor(cli): Move cmdflags package under pkg/cli/client (#1840) 2023-09-22 16:33:18 +03:00
flags_test.go refactor(cli): Move cmdflags package under pkg/cli/client (#1840) 2023-09-22 16:33:18 +03:00
gql_queries.go refactor: Reduce zli binary size (#1805) 2023-09-15 15:17:01 -07:00
gql_queries_test.go refactor(test): make sure cli tests are not internal unless they need to be (#1878) 2023-10-03 11:15:39 -07:00
image_cmd.go refactor(cli): Move cmdflags package under pkg/cli/client (#1840) 2023-09-22 16:33:18 +03:00
image_cmd_internal_test.go refactor(test): make sure cli tests are not internal unless they need to be (#1878) 2023-10-03 11:15:39 -07:00
image_cmd_test.go feat: add support for oci1.1 cosign signatures(using referrers) (#1963) 2023-11-06 14:09:39 -08:00
image_sub_cmd.go refactor(cli): Move cmdflags package under pkg/cli/client (#1840) 2023-09-22 16:33:18 +03:00
repo_cmd.go refactor(cli): Move cmdflags package under pkg/cli/client (#1840) 2023-09-22 16:33:18 +03:00
repo_sub_cmd.go refactor(cli): Move cmdflags package under pkg/cli/client (#1840) 2023-09-22 16:33:18 +03:00
repo_test.go refactor(test): make sure cli tests are not internal unless they need to be (#1878) 2023-10-03 11:15:39 -07:00
root.go refactor(cli): Move cmdflags package under pkg/cli/client (#1840) 2023-09-22 16:33:18 +03:00
root_test.go refactor: Reduce zli binary size (#1805) 2023-09-15 15:17:01 -07:00
search_cmd.go refactor(cli): Move cmdflags package under pkg/cli/client (#1840) 2023-09-22 16:33:18 +03:00
search_cmd_internal_test.go refactor(test): make sure cli tests are not internal unless they need to be (#1878) 2023-10-03 11:15:39 -07:00
search_cmd_test.go refactor(test): make sure cli tests are not internal unless they need to be (#1878) 2023-10-03 11:15:39 -07:00
search_functions.go refactor(test): make sure cli tests are not internal unless they need to be (#1878) 2023-10-03 11:15:39 -07:00
search_functions_internal_test.go ci: update golangci-lint version (#1834) 2023-10-20 17:27:04 +03:00
search_sub_cmd.go refactor(cli): Move cmdflags package under pkg/cli/client (#1840) 2023-09-22 16:33:18 +03:00
service.go refactor(test): make sure cli tests are not internal unless they need to be (#1878) 2023-10-03 11:15:39 -07:00
utils.go fix: running tests locally fails (#1879) 2023-10-05 14:34:50 +03:00
utils_internal_test.go refactor(test): make sure cli tests are not internal unless they need to be (#1878) 2023-10-03 11:15:39 -07:00