Make the Ubuntu archive base URLs configurable

Abierto
#328 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
48/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
go
Área
cli, tooling

Línea de trabajo

Start with internal/archive/archive.go and read how ubuntuURL and ubuntuPortsURL are selected for different architectures. Then trace how configuration is represented in chisel.yaml and how flags or environment variables are handled. Done means users can configure both archive base URLs, including for internal mirrors, without changing the binary, while GPG signature verification remains unaffected.

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

Descripción

Summary
The Ubuntu archive base URLs are hardcoded as constants in internal/archive/archive.go (ubuntuURL and ubuntuPortsURL), and there is no flag, environment variable, or chisel.yaml field to override them. The only way to point chisel at a different archive (e.g. an internal apt mirror) is to fork and patch the binary.

Motivation
Organizations commonly mirror the Ubuntu archive internally (for supply-chain integrity, reproducible/cached sources, and to avoid build time egress to the public internet). Today those users must maintain a fork of chisel solely to change two string constants, and re-patch on every upgrade. A supported way to override the archive base URL would remove that maintenance burden. Note there are two URLs depending on architecture —archive.ubuntu.com/ubuntu/ (amd64/i386) and ports.ubuntu.com/ubuntu-ports/ (other arches) — so any solution would need to cover both. GPG signature verification should be unaffected, since a mirror still serves Ubuntu's own signed InRelease and .debs verified against thepublic-keys pinned in chisel.yaml.

Additional context
Would you be open to supporting this?

Lenguaje dominante
Go
Estrellas
434
Forks
74
Merge medio
1 d 30 min
PR fusionados (30 d)
1

Preparar el entorno

  • Sin Dockerfile ni archivo de Docker Compose
  • Tiene una plantilla de pull request
  • Sin guía de contribución

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 canonical/chisel

Todos los issues de canonical/chisel

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.