hardcoded paths, and hardcoded filenames

Offen
#10 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Anfängerfreundlichkeit
20/100
Issue-Typ
Bug
Klarheit
Muss geklärt werden
Aktivitätsstatus
Veraltet
Tech-Stack
shell
Bereich
devops

Rechercherichtung

Beginnen Sie mit der Untersuchung von cron_wrapper, virtual_servers, dem Pfad pythonvenv/python37 sowie den Konfigurationsdateien .f5creds und load-balancer. Verfolgen Sie, wie Pfade, Dateinamen, Zugangsdaten und F5_HTTPS ausgewählt werden, und prüfen Sie anschließend, ob Überschreibungen über die Befehlszeile oder mehrere load balancers unterstützt werden. Als erledigt gilt die Aufgabe, wenn ein definierter Konfigurationsansatz vorhanden ist, der die gemeldeten hartcodierten Annahmen vermeidet und das erforderliche HTTP challenge- und HTTPS deployment-Verhalten beibehält.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

cron_wrapper is not executable in the repo. That should be changed.

paths are hardcoded which won't work for most users. Perhaps something like:

  • cd $HOME/lets-encrypt-python

Also, I don't have a
pythonvenv/python37/bin/activate
what should that contain?

This code breaks our setup. I have multipe file sets.

  • {loadbalancer} - contains all my setting including host, user, pass, http, https
  • {loadbalancer}.cfg - DOMAINS_TXT="${BASEDIR}/{load balancer}.dom"
  • {loadbalancer}.dom - all the san certs each set on one line

Having the authentication in the environment meant that I could talk to different load-balancers, potentially with different credentials all in one directory. the ONE .f5creds that can't seem to be overridden breaks that.

The file "virtual_servers" also breaks this setup, looks hardcoded, and can't be overridden on the command line. This file assumes that the virtual server name for a given hostname is the same on each load balancer, which is often not a valid assumption. It also require adding each domain on a san cert to the lookup table. This might be useful in some situations, but not for me at the moment as I'm only testing on one vs per lb.

Eventually it would be nice to be able to deploy the validation changes on multiple load balancers, test, and then remove from multiple load balancers in the case were a host uses GTM/DNS load balancing or just has multiple IPs in DNS.

This seems to remove the F5_HTTPS handling. The Let's Encrypt challenge is over http, which should be a separate vip from the one where the cert should be installed in the end. We'll want a F5_HTTPS if eventually we want to add the created ssl profile to a vip, as it won't be the same vip.

Vorherrschende Sprache
Shell
Sterne
50
Forks
12
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus f5devcentral/lets-encrypt-python

Alle Issues in f5devcentral/lets-encrypt-python

Ähnliche Issues

Weitere Issues zu Shell/Bash

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.