Commit Graph

450 Commits

Author SHA1 Message Date
Petu Eusebiu 9c568c0ee2 storage: add s3 backend support (without GC and dedupe)
Signed-off-by: Petu Eusebiu <peusebiu@cisco.com>
2021-11-15 08:09:00 -08:00
Alexei Dodon 8e4d828867 Implement an API for performance monitoring
Signed-off-by: Alexei Dodon <adodon@cisco.com>
v1.3.2
2021-11-12 11:14:10 -08:00
Ramkumar Chinchani 061dfb333b release: add github action to automatically generate changelog
Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
2021-11-12 09:35:10 -08:00
Ramkumar Chinchani 9a51ce475e version: fix commit version in binary
So that "-v" reports the commit-id correctly.

Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
2021-10-28 09:00:31 -07:00
Alexei Dodon f76c76c2e6 Added a timeout option in db cache lock, closes #242
Signed-off-by: Alexei Dodon <adodon@cisco.com>
2021-10-27 12:43:50 -07:00
Alexei Dodon d8aa5b8bf3 Fixing ValidateHardLink, closes #256 (#257)
Signed-off-by: Alexei Dodon <adodon@cisco.com>
2021-10-27 20:03:26 +03:00
Petu Eusebiu f7ae491d22 Fix data race in sync tests
Signed-off-by: Petu Eusebiu <peusebiu@cisco.com>
2021-10-25 10:50:05 -07:00
Ramkumar Chinchani 8f3d7d3719 swagger: rename 'docs/' to 'swagger/'
Use 'docs/' for zot-related documentation.

Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
2021-10-21 13:46:14 -07:00
Ramkumar Chinchani 0d28feef3e workflows: change "master" to "main"
Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
2021-10-21 12:24:04 -07:00
Petu Eusebiu 19003e8a71 Added new extension "sync"
Periodically poll registries and pull images according to sync's config
Added sync on demand, syncing when clients asks for an image which
zot doesn't have.

Signed-off-by: Petu Eusebiu <peusebiu@cisco.com>
2021-10-21 10:32:46 -07:00
Ramkumar Chinchani 1027f872ec ci/cd: update golang to 1.16
Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
2021-10-20 13:51:16 -07:00
Ramkumar Chinchani 50cfcbf34a dco: add workflow for DCO check
Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
2021-10-14 10:36:16 -07:00
Ramkumar Chinchani 2d9c1f52ea docs: improve docs coverage
Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
2021-10-14 09:22:34 -07:00
Shivam Mishra d930adbd49 search: update trivy
trivy updated to v0.20.0
trivy-db updated to bec0c6a
fanal updated to f7efd1b
2021-10-13 16:37:31 -07:00
Petu Eusebiu 7d077eaf5a Added storage interface 2021-10-11 17:38:46 -07:00
Petu Eusebiu 20f4051446 Clean blob uploads when clients interrupts uploading, closes #225 2021-10-08 14:55:57 -07:00
Ramkumar Chinchani d69ee3f562 go.mod: update go.mod to fix dependabot alert
https://github.com/advisories/GHSA-c2h3-6mxw-7mvq

Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
2021-10-04 14:03:37 -07:00
Ramkumar Chinchani 4c16a63c7f Update COMPARISON.md 2021-09-28 16:51:59 -07:00
Shivam Mishra 63fef3e48c search: added graphql api to return repository list with latest tag 2021-09-27 14:36:20 -07:00
Ramkumar Chinchani 0b302d9614 go.mod: update deps to address dependabot alerts
Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
2021-09-23 13:59:26 -07:00
Ramkumar Chinchani 43a3ed12dc Update README.md 2021-09-23 12:35:39 -07:00
Ramkumar Chinchani b8054e2aea Update README.md 2021-09-23 12:35:06 -07:00
Ramkumar Chinchani 2acb22c16a doc: add documentation for comparison with well-known registries
Add COMPARISON.md

Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
2021-09-23 12:33:46 -07:00
Ramkumar Chinchani 6f0a73b2a6 go.mod: update umoci dep
There is a performance regression in umoci [1] which is fixed in [2].

References:
[1] https://github.com/opencontainers/umoci/issues/373
[2] https://github.com/opencontainers/umoci/pull/375

Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
2021-09-23 10:07:33 -07:00
Ramkumar Chinchani 008d382446 authn: serialize ldap authn calls
Some LDAP servers are not MT-safe in that when searches happen with binds
in flight leads to errors such as:
"comment: No other operations may be performed on the connection while a
bind is outstanding"

Add goroutine-id in logs to help debug MT bugs.

Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
v1.3.1
2021-09-20 10:24:07 -07:00
Petu Eusebiu 62e724532a Check if auth config is provided when using access control 2021-09-14 12:55:21 -07:00
Ramkumar Chinchani c8779d9e87 doc: add initial documentation for configuration options
We have built a long list of features and the documentation for users is
only available under examples/

Add a examples/README.md to further explain various configuration
options.

Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
v1.3.0
2021-08-31 17:26:22 -07:00
Petu Eusebiu 609d85d875 Add identity-based access control, closes #51
Add a cli subcommand to verify config files validity
2021-08-30 13:56:27 -07:00
Ramkumar Chinchani 26926ad4c2 go.mod: update modules 2021-08-25 11:51:23 -07:00
Shivam Mishra c6670b1329 api: implement delete by tag v1.2.8 2021-08-23 17:30:41 -07:00
Roxana Nemulescu fed5c09b71 TLS certs in CLI client
resolve #194
2021-08-16 23:42:21 -07:00
Ramkumar Chinchani 63b88d0e57 pkg/storage: fix partially initialized repo storage
Thanks shimish2 for the unit test.

Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
v1.2.7
2021-08-09 23:19:20 -07:00
Shivam Mishra 53b5fa6493 dedupe: stat blob path before creating link v1.2.6 2021-08-09 09:40:35 -07:00
Ramkumar Chinchani f10c174c0e routes: add Content-Type header for HEAD manifest response
With recent docker client-side changes, on 'docker pull' we see:
"Error response from daemon: missing or empty Content-Type header"

Hence, set Content-Type header.

Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
v1.2.5
2021-07-23 10:00:32 -07:00
Ramkumar Chinchani b686a48812 ci/cd: fix github workflow for "minimal" image
Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
v1.2.4
2021-07-01 11:15:44 -07:00
Ramkumar Chinchani 30c562be6b ci/cd: build a "minimal" container image
Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
v1.2.3
2021-07-01 10:07:08 -07:00
Shivam Mishra af30c06aff api: use blob cache path while making hard link
previously mount blob will look for blob that is provided in http request and try to hard link that path
but ideally we should look for path from our cache and do the hard link of that particular path.
this commit does the same.
v1.2.2
2021-06-30 01:42:21 -07:00
Petu Eusebiu 3a59b9f487 Use freeport to get ports for zot servers in tests 2021-06-29 13:58:39 -07:00
Petu Eusebiu 1c1e7358f7 Migrate builds from travis to github actions 2021-06-29 13:58:39 -07:00
Ramkumar Chinchani c3c598f43c Update README.md 2021-06-26 00:48:28 -07:00
Ramkumar Chinchani 4f7803e4be Update README.md 2021-06-26 00:48:16 -07:00
Ramkumar Chinchani 8c3ae7ddc6 Update README.md 2021-06-25 10:21:29 -07:00
Ramkumar Chinchani f29c454052 Create codeql-analysis.yml 2021-06-24 22:07:30 -07:00
Andrei Aaron 792e82cbdf Add an 'enable' flag in the server configuration to enable gql-based searches
"extensions": {
        "search": {
            "enable": true
        }
    }
v1.2.1
2021-06-24 12:15:25 -07:00
Andrei Aaron c1dd7878e4 Add a '--verbose' flag to the 'zot images' output
- Show individual layers with size and digest under each image
- Include config digest for each image

See example below
```
IMAGE NAME                        TAG                       DIGEST    CONFIG    LAYERS    SIZE
test/godev                        0.4.7                     7d38d8ca  05b9f86e            519MB
                                                                                f824a027  65MB
                                                                                a98af0f5  52MB
                                                                                ba5b2bc4  163MB
                                                                                58b1ca8d  228MB
                                                                                67d798ee  12MB
test/cdev                         test                      2292b4ae  cf6f6c77            280MB
                                                                                f824a027  65MB
                                                                                a98af0f5  52MB
                                                                                ba5b2bc4  163MB
test/cdev                         0.4.7                     2292b4ae  cf6f6c77            280MB
                                                                                f824a027  65MB
                                                                                a98af0f5  52MB
                                                                                ba5b2bc4  163MB

Note the new layers and config fields will be visible in the json/yaml format regardless of the value of the verbose flag
```
2021-06-24 12:15:25 -07:00
Andrei Aaron 519ea75d9a Implement a way to search for an image by manifest, config or layer digest
```
Usage:
  zot images [config-name] [flags]

Flags:
  -d, --digest string   List images containing a specific manifest, config, or layer digest
[...]
```
2021-06-24 12:15:25 -07:00
Roxana Nemulescu 97628e69c9 logs: add an audit log for API calls with unit tests
resolves #178
2021-06-24 10:53:27 -07:00
Ramkumar Chinchani ea717649c8 Update README.md 2021-06-09 14:29:15 -07:00
Petu Eusebiu 52a7929411 ci/cd: build and push zot container images
to github's container registry, closes #188
2021-06-07 16:44:15 -07:00
Ramkumar Chinchani db17440899 Update README.md 2021-05-26 20:07:45 -07:00