desktop-lite feature: The desktop-lite feature is not enabling VNC password authentication
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 45/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- docker, docker-compose, shell
- Bereich
- desktop, devops, infrastructure
Rechercherichtung
Reproduziere das Problem mit der gezeigten devcontainer.json und compose.yaml und untersuche anschließend install.sh sowie das generierte /usr/local/share/desktop-init.sh. Vergleiche die Bedingung für VNC_PASSWORD mit dem Vorhandensein von /usr/local/etc/vscode-dev-containers/vnc-passwd; als erledigt gilt die Aufgabe, wenn das konfigurierte Passwort beim Öffnen von Port 6080 durchgesetzt wird, ohne eine zusätzliche Umgebungsvariable zu erfordern.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
I've found that VNC password authentication is not being enforced in the desktop-lite feature. Here's a reproducible scenario:
Directory Structure
dvc-desktop-lite/
├── .devcontainer
│ └── devcontainer.json
└── compose.yaml
devcontainer.json
{
"name": "dvc-desktop-lite",
"dockerComposeFile": "../compose.yaml",
"features": {
"ghcr.io/devcontainers/features/desktop-lite:1.2.5": {
"version": "latest",
"password": "vscode11"
}
},
"service": "dvc-desktop-lite",
"runServices": [
"dvc-desktop-lite"
],
"remoteUser": "node",
"shutdownAction": "stopCompose",
"workspaceFolder": "/home/node",
"forwardPorts": [
6080,
5901
],
"portsAttributes": {
"6080": {
"label": "novnc"
},
"5901": {
"label": "tigervnc"
}
}
}
compose.yaml
name: dvc-desktop-lite
services:
dvc-desktop-lite:
image: mcr.microsoft.com/devcontainers/typescript-node:22-bookworm
init: true
tty: true
user: node
working_dir: /home/node
With the above files prepared, start the development container by Dev Containers: open Folder in Container
Then, open http://localhost:6080 in a web browser. The VNC screen will be displayed without authentication.
To enable VNC password authentication, modify the compose.yaml file as follows:
name: dvc-desktop-lite
services:
dvc-desktop-lite:
image: mcr.microsoft.com/devcontainers/typescript-node:22-bookworm
init: true
tty: true
user: node
working_dir: /home/node
environment:
VNC_PASSWORD: enable
This is caused by the following process in /usr/local/share/desktop-init.sh, which is generated by install.sh.
if [ -n "${VNC_PASSWORD+x}" ]; then
startInBackgroundIfNotRunning "Xtigervnc" sudoUserIf "${common_options} -passwd /usr/local/etc/vscode-dev-containers/vnc-passwd"
# (snip)
fi
By modifying the configuration as shown below, I was able to achieve the desired behavior and enable VNC password authentication. The password used for authentication in this case was "vscode11", which was specified in the devcontainer.json file.
if [ -e "/usr/local/etc/vscode-dev-containers/vnc-passwd" ]; then
startInBackgroundIfNotRunning "Xtigervnc" sudoUserIf "${common_options} -passwd /usr/local/etc/vscode-dev-containers/vnc-passwd"
# (snip)
fi
Previously, VNC password authentication was enabled without specifying any environment variables, but now it requires the VNC_PASSWORD environment variable to be set.
If this is the intended behavior, I would appreciate it if you could document this change.
- Vorherrschende Sprache
- Shell
- Sterne
- 1.5k
- Forks
- 627
- Ø Merge
- 1 T. 6 Std.
- Gemergte PRs (30 T.)
- 6
Entwicklungsumgebung
Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus devcontainers/features
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
devcontainers/features#1757 ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 38/100
devcontainers/features#1754 ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
devcontainers/features#1730 ·
-
Version resolution over unauthenticated git makes feature installs fail hard, with no fallbackEvtl. vergeben @v-Kaniska244 hat das vor 51 Tagen übernommen. Offen
devcontainers/features#1726 · 2 Kommentare · 1 zugewiesene Person ·
-
[docker-in-docker] v4 with iptablesSwitchAtRuntime:true default on Ubuntu 26.04 host/devcontainer image activates iptables-legacy instead of iptables-nftEvtl. wieder frei @v-Kaniska244 hat das vor 69 Tagen übernommen, und es ist kein Pull Request offen. Offen
devcontainers/features#1709 · 1 Reaktion · 1 zugewiesene Person ·
Alle Issues in devcontainers/features
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
ophub/amlogic-s9xxx-armbian#3752 ·
Maintainer antworten meist innerhalb von 1 Tag
-
prio:low type:chore
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 82/100
davidsneighbour/dotfiles#602 ·
Maintainer antworten meist innerhalb von 3 Tagen
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 79/100
Maintainer antworten meist innerhalb von 1 Tag
-
[cmocka] update to 2.0.2Offenupdate-request
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
msys2/MINGW-packages#33004 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug small tooling
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag