Docker build issues in environments with SSL/TLS inspection

Aperta
#258 0 commenti 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
38/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
docker, python
Ambito
cli, devops, security

Direzione di ricerca

Inizia dal comando cfn submit e dal percorso build-container che installa le dipendenze Python con pip. Il lavoro è completo quando un flag opt-in passa le impostazioni trusted-host richieste durante l’installazione delle dipendenze, mantenendo il comportamento attuale per impostazione predefinita; nell’issue non sono indicati file o test specifici.

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

Descrizione

Recently when working on a project where I was building a custom hook on behalf of my customer, I ran into issues firstly with not being able to see the error coming from the build container (as referenced in #250). After finally discovering the error, it turned out to be SSL errors being encountered during the attempt to install dependencies with pip:

connection error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:598)

Upon further inspection, the build environment has TLS inspection enabled and a self-signed certificate is inserted in the chain. The only way to make installations work in this environment outside of using an authenticated pull-through proxy, is by using --trusted-host xxxxxxxx flags with pip.

I'd like to open this is a potential feature request where a new flag could be submitted along with the cfn submit that would allow for the following flags to be submitted along with the rest of the requisite defaults:

--trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org

The flag to be submitted could look something like cfn submit --trust-self-signed-certs or cfn sub --dry-run --trust-self-signed-certs

Lingua principale
Python
Stelle
107
Fork
46
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Apri la 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 aws-cloudformation/cloudformation-cli-python-plugin

Tutte le issue di aws-cloudformation/cloudformation-cli-python-plugin

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.