New Container: sshd container with different variant `ubuntu, fedora, archlinux, ...`, with ability to preset a lot of authetication related value

Offen
#780 0 Kommentare 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
25/100
Issue-Typ
Feature
Klarheit
Muss geklärt werden
Aktivitätsstatus
Veraltet
Tech-Stack
docker, python
Bereich
devops, testing-qa

Rechercherichtung

Der Issue nennt keine Datei und keinen Test-Einstiegspunkt. Beginne damit, die vorhandenen Container-APIs des Repositorys sowie die verknüpften OpenSSH- und sshd-Referenzen zu prüfen, und definiere anschließend unterstützte Distributionsvarianten, Authentifizierungseingaben und Tests, die zeigen, dass der Container für die Verwendung mit dem SSH-Protokoll bereit ist.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

🚀 enhancement

What is the new container you'd like to have?

If possible just OS container like ubuntu, fedora, ...

But with sshd service enabled, and the authentication or users is preset by the provided argument to the Container class.

This class of container can significantly ease the testing process for user who are developing SSH-protocol related application.

Today, too many utility are depending on SSH protocol for secure connection (like git, rsync, sshfs, ...), especially in Unix/Linux world.

Why not just use a generic container for this?

Because sshd setup and configuration is relatively complicated, if all the time, user have to manually configure it, it will waste user a lot of time, and it is buggy especially apply it in a testing scenario.

There is different way of authentication and setting for sshd running in different distro.
If this work is done by the user, the user has to manually copy and do string editing in the configuration file for sshd. If exception arise, user will be very difficult to figure out whether the error is from their testcase or the container itself.

And SSHD is a different protocol to HTTP.

Other references:

Include any other relevant reading material about the enhancement.

Vorherrschende Sprache
Python
Sterne
2.3k
Forks
397
Ø Merge
8 T. 16 Std.
Gemergte PRs (30 T.)
5

Entwicklungsumgebung

In Codespaces öffnen

Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.

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 testcontainers/testcontainers-python

Alle Issues in testcontainers/testcontainers-python

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

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