Bound images are verified with the old deployment's policy

Abierto
#2,652 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 2 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
45/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
rust

Línea de trabajo

Start in crates/lib/src/boundimage.rs (lines 41-59) to see how bound images are read from the new deployment, then read crates/lib/src/podstorage.rs (lines 459-475) where the pull happens. Trace how the policy path is resolved there and why it still points at the booted system's /etc/containers/policy.json rather than the new deployment's. Done means the pull is given the new deployment's policy (as podman pull --signature-policy allows) and a test exercises an upgrade that adds and permits a bound image.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

If you define a /etc/containers/policy.json in a bootc image, and update this policy in a new image, bootc upgrade will reads the bound images from the new deployment:

https://github.com/bootc-dev/bootc/blob/7cde7bbe233ee45a40cff3d89d4f42b68a258d46/crates/lib/src/boundimage.rs#L41-L59

but pulls them with the booted system's /etc/containers/policy.json:

https://github.com/bootc-dev/bootc/blob/7cde7bbe233ee45a40cff3d89d4f42b68a258d46/crates/lib/src/podstorage.rs#L459-L475

So an image that adds a bound image and allows it in its own policy.json can't be upgraded to:

Source image rejected: Running image docker://ghcr.io/example/app@sha256:… is rejected by policy.

Expected: use the new deployment's policy (podman pull --signature-policy).

bootc 1.17.1, same code in v1.17.4.

Lenguaje dominante
Rust
Estrellas
2.3k
Forks
230
Merge medio
2 d 11 h
PR fusionados (30 d)
42

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de bootc-dev/bootc

Todos los issues de bootc-dev/bootc

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.