desktop-lite feature: The desktop-lite feature is not enabling VNC password authentication
Maintainer thường phản hồi trong vòng 5 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 45/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- docker, docker-compose, shell
- Lĩnh vực
- desktop, devops, infrastructure
Hướng nghiên cứu
Tái hiện vấn đề với devcontainer.json và compose.yaml được cung cấp, sau đó kiểm tra install.sh và /usr/local/share/desktop-init.sh đã tạo. So sánh điều kiện VNC_PASSWORD với sự tồn tại của /usr/local/etc/vscode-dev-containers/vnc-passwd; công việc được xem là hoàn tất khi mật khẩu đã cấu hình được áp dụng lúc mở cổng 6080 mà không yêu cầu thêm biến môi trường.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Shell
- Star
- 1.5k
- Fork
- 624
- Merge trung bình
- 4 ngày 8 giờ
- Pull request đã merge (30 ngày)
- 7
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của devcontainers/features
-
use mise for java feature installation or make sdkman configuable to download JDK from mirrosĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
devcontainers/features#1730 ·
Maintainer thường phản hồi trong vòng 5 ngày
-
Version resolution over unauthenticated git makes feature installs fail hard, with no fallbackCó thể đã có người làm @v-Kaniska244 đã nhận 35 ngày trước. Đang mở
devcontainers/features#1726 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 5 ngày
-
[docker-in-docker] v4 with iptablesSwitchAtRuntime:true default on Ubuntu 26.04 host/devcontainer image activates iptables-legacy instead of iptables-nftCó thể làm lại được @v-Kaniska244 đã nhận 53 ngày trước và không có pull request nào đang mở. Đang mở
devcontainers/features#1709 · 1 reaction · 1 người được giao ·
Maintainer thường phản hồi trong vòng 5 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
devcontainers/features#1707 ·
Maintainer thường phản hồi trong vòng 5 ngày
-
Parser failure on "localEnv:" in devcontainer-feature.jsonCó thể làm lại được @v-Kaniska244 đã nhận 68 ngày trước và không có pull request nào đang mở. Đang mở
devcontainers/features#1704 · 1 reaction · 1 người được giao ·
Maintainer thường phản hồi trong vòng 5 ngày
Tất cả issue của devcontainers/features
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
-
Set wallpaperĐang mởnew-addition
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 60/100
-
needs-triage Platform(Default)
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
winapps-org/winapps#984 ·
-
Bluetooth can't be turned back on from the bar on ThinkPads: rfkill block removes the adapterĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày