← Back to issue list

fix(2.7): allow skopeo to use an insecure policy

View original Github issue

Metadata

Project
charmcraft
Number
#1859
Type
pull request
State
merged
Author
lengau
Labels
Created
Updated
Closed

Current evaluation

Merged a one-line fix allowing skopeo to bypass missing trust policy checks, resolving the /etc/containers/policy.json not found error during charmcraft uploads. Approved by two reviewers and passed CI.

Suggested action:

No scores available.

Issue body

Fixes this error: ``` + charmcraft upload-resource gh-ci-charmcraft-charm example-image --image=docker://hello-world@sha256:18a657d0cc1c7d0678a3fbea8b7eb4918bba25968d3e1b0adebfa71caddbc346 Uploading resource from image charm/co44x4qvu12a2ff5a1v04haywbiyhc0uv6erc/example-image @ docker://hello-world@sha256:18a657d0cc1c7d0678a3fbea8b7eb4918bba25968d3e1b0adebfa71caddbc346. Checking if manifest is already uploaded Remote image not found, getting its info from local registry. Image not found locally. Passing path directly to skopeo. Running Skopeo :: time="2024-08-26T18:39:59Z" level=fatal msg="Error loading trust policy: open /etc/containers/policy.json: no such file or directory" Error while running /snap/charmcraft/x1/libexec/charmcraft/skopeo (return code 1) Full execution log: '/root/.local/state/charmcraft/log/charmcraft-20240826-183956.163959.log' ----- ```

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Merged a one-line fix allowing skopeo to bypass missing trust policy checks, resolving the /etc/containers/policy.json not found error during charmcraft uploads. Approved by two reviewers and passed CI.
qwen3.6-35b-a3b-mtp-q6 Merged a fix allowing skopeo to use an insecure policy when the trust policy file is missing, resolving a fatal error during charm resource uploads.
qwen3.6-35b-a3b-mtp-q6 Merged a charmcraft 2.7 fix resolving a skopeo fatal error from a missing trust policy file. The change configures skopeo to use an insecure policy, allowing image uploads to proceed without /etc/containers/policy.json.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#2349 fix: correct the error message with skopeo errors. charmcraft merged Merged fix correcting skopeo error messages, resolving issue #2077. Approved by two reviewers and passed CI checks. Changes modify five files with 76 additions and 23 deletions to improve error reporting.
71%