Make the Ubuntu archive base URLs configurable

Aperta
#328 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
go
Ambito
cli, tooling

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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?

Lingua principale
Go
Stelle
434
Fork
74
Merge medio
1g 30m
PR unite (30g)
1

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di canonical/chisel

Tutte le issue di canonical/chisel

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.