Repository navigation
Tags
Tags
Use optional schema validation for `get_manifest` (#237) * Use dynamic schema validation on `get_manifest` - Map schemas to the default set of supported content types. - Validate artifact retrieved by `get_manifest` based on the content type of the response. * Bump version to 0.2.41 * Switch `get_manifests()` to optional schema validation * Fix `Accept` header delimiter * Update default allowed manifest media types * Accept all supported media types for the `manifests` endpoint by default to match those used in `oras-go` Signed-off-by: Ian H. Pittwood <ian.pittwood@posit.co>
feat: API to `copy` from oci-layout to OCI registry this change provide a new API using ORAS-py to perform copy from oci-layout (on disk) to OCI registry, re-using existing APIs. - document README.md of creation ocilayout testing - provide hints about test data directory ocilayout_data - the test data should be excluded from pre-commit formatting also tested locally with: ```sh podman run -d -p 5000:5000 --name test-registry ghcr.io/oras-project/registry:latest ORAS_HOST=localhost ORAS_PORT=5000 pytest oras/tests/test_layout.py -v ``` also re-tested manually the resulting upload with: ```sh skopeo copy --src-tls-verify=false docker://localhost:5000/dinosaur/layout-single:v1 oci:output:latest diff -r output/ oras/tests/ocilayout_data/ocilayout1 skopeo copy --src-tls-verify=false --multi-arch all docker://localhost:5000/dinosaur/layout-multi:v1 oci:output:latest diff -r output/ oras/tests/ocilayout_data/ocilayout2 ``` resulting in the same blobs. Please notice: the oci-layout test examples use Image Manifest and Index Manifest to ensure compatibility with the expected semantic of copy, therefore the spec use-case of moving from oci-layout on disk to OCI registry; by adhering to the OCI spec, this includes OCI Artifact use-cases. Signed-off-by: tarilabs <matteo.mortari@gmail.com> add memo for the credentials fixture Signed-off-by: tarilabs <matteo.mortari@gmail.com> implement review: rename Dockerfile - just use Dockerfile - adjust podman command - confirmed commands successful Signed-off-by: tarilabs <matteo.mortari@gmail.com> nit: oneliner and make lint Signed-off-by: tarilabs <matteo.mortari@gmail.com> nit: ignore space Signed-off-by: tarilabs <matteo.mortari@gmail.com> impl. review: use defaults.py for const lowercase Signed-off-by: tarilabs <matteo.mortari@gmail.com> impl. review: use read_json() where possible Signed-off-by: tarilabs <matteo.mortari@gmail.com> impl review: use jsonschema for Index Signed-off-by: tarilabs <matteo.mortari@gmail.com> impl review: avoid intro var where possible Signed-off-by: tarilabs <matteo.mortari@gmail.com> impl feedback intro OCILayout class Signed-off-by: tarilabs <matteo.mortari@gmail.com> linting Signed-off-by: tarilabs <matteo.mortari@gmail.com> simplification and linting Signed-off-by: tarilabs <matteo.mortari@gmail.com> impl review feedback, name it Layout Signed-off-by: tarilabs <matteo.mortari@gmail.com> impl feedback, move into oras/layout/layout.py see #228 (comment) Signed-off-by: tarilabs <matteo.mortari@gmail.com> impl feedback, add validation.py and NewLayout fn Signed-off-by: tarilabs <matteo.mortari@gmail.com> linting Signed-off-by: tarilabs <matteo.mortari@gmail.com> fix typo in oras/tests/ocilayout_data Signed-off-by: tarilabs <matteo.mortari@gmail.com> changelog and version bump per usual oras-py workflow Signed-off-by: tarilabs <matteo.mortari@gmail.com>
Fix authentication priority: AWS-native -> docker login -> credHelper… …s -> credsStore (#211) * Fix authentication priority: AWS-native -> docker login -> credHelpers -> credsStore * Continue trying other auth if credHelper or credsStore fails * Formatting * Bump version + add CHANGELOG Signed-off-by: Rasmus Faber-Espensen <rfaber@gmail.com>
fix: auth via ECR to be an extra (#208) * fix: auth via ECR to be an extra as intended in original PR. Signed-off-by: tarilabs <matteo.mortari@gmail.com> * linting Signed-off-by: tarilabs <matteo.mortari@gmail.com> * Update oras/auth/ecr.py Co-authored-by: Vanessasaurus <814322+vsoch@users.noreply.github.com> Signed-off-by: Matteo Mortari <matteo.mortari@gmail.com> * implement code review feedback Signed-off-by: tarilabs <matteo.mortari@gmail.com> Co-authored-by: Vanessasaurus <814322+vsoch@users.noreply.github.com> * implement review feedback by removing code comment and MD in error msg Signed-off-by: tarilabs <matteo.mortari@gmail.com> --------- Signed-off-by: tarilabs <matteo.mortari@gmail.com> Signed-off-by: Matteo Mortari <matteo.mortari@gmail.com> Co-authored-by: Vanessasaurus <814322+vsoch@users.noreply.github.com>
Ecr auth support (#205) * Add ECR auth backend Signed-off-by: Rasmus Faber-Espensen <rfaber@gmail.com> * Add test Signed-off-by: Rasmus Faber-Espensen <rfaber@gmail.com> * Changelog, copyright headers, documentation Signed-off-by: Rasmus Faber-Espensen <rfaber@gmail.com> * Bump version and add version to CHANGELOG.md Signed-off-by: Rasmus Faber-Espensen <rfaber@gmail.com> * indent Signed-off-by: Rasmus Faber-Espensen <rfaber@gmail.com> * Update CHANGELOG.md Co-authored-by: Vanessasaurus <814322+vsoch@users.noreply.github.com> Signed-off-by: rasmusfaber <rfaber@gmail.com> --------- Signed-off-by: Rasmus Faber-Espensen <rfaber@gmail.com> Signed-off-by: rasmusfaber <rfaber@gmail.com> Co-authored-by: Vanessasaurus <814322+vsoch@users.noreply.github.com>
PreviousNext