devzone 2.0.0 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.devcontainer/agent-errors.sh +6 -6
- package/.devcontainer/agent-pod-manifest.sh +4 -4
- package/.devcontainer/agent-session.sh +2 -2
- package/.devcontainer/agent-state-json.sh +2 -2
- package/.devcontainer/agent-workspace.sh +1 -1
- package/.devcontainer/agent.sh +7 -7
- package/.devcontainer/ai/host-models.sh +2 -2
- package/.devcontainer/ai/plugins/devzone-guard-v2.js +3 -3
- package/.devcontainer/ai/plugins/devzone-guard.js +3 -3
- package/.devcontainer/argocd/argocd.sh +90 -89
- package/.devcontainer/argocd/catalog-argocd.sh +2 -2
- package/.devcontainer/argocd/services-hook.sh +3 -3
- package/.devcontainer/argocd/services.sh +1 -1
- package/.devcontainer/catalog/app.sh +114 -116
- package/.devcontainer/catalog/catalog-watcher.sh +62 -62
- package/.devcontainer/catalog/mysql/app.conf +1 -1
- package/.devcontainer/catalog/mysql/install.sh +40 -40
- package/.devcontainer/catalog/mysql/mysql.sh +141 -141
- package/.devcontainer/catalog/mysql/volume.sh +39 -39
- package/.devcontainer/catalog.sh +112 -112
- package/.devcontainer/chart-direct.sh +1 -1
- package/.devcontainer/cluster.sh +216 -218
- package/.devcontainer/clusters.sh +41 -41
- package/.devcontainer/command-aliases.sh +17 -8
- package/.devcontainer/devzone +93 -1496
- package/.devcontainer/devzone-ai-guard.sh +76 -0
- package/.devcontainer/devzone-ai.sh +201 -0
- package/.devcontainer/devzone-cluster.sh +210 -0
- package/.devcontainer/devzone-modules.sh +126 -0
- package/.devcontainer/devzone-platform.sh +189 -0
- package/.devcontainer/devzone-repair.sh +94 -0
- package/.devcontainer/devzone-services.sh +241 -0
- package/.devcontainer/devzone-skill.sh +97 -0
- package/.devcontainer/devzone-status.sh +140 -0
- package/.devcontainer/devzone-version.sh +78 -0
- package/.devcontainer/git-identity.sh +28 -0
- package/.devcontainer/gitlab/chart.sh +2 -2
- package/.devcontainer/gitlab/gitlab.sh +81 -82
- package/.devcontainer/gitlab/installation.sh +109 -109
- package/.devcontainer/gitlab/secrets.sh +47 -47
- package/.devcontainer/gitlab/seed.sh +77 -77
- package/.devcontainer/gitlab/test-gitlab.sh +242 -243
- package/.devcontainer/help.sh +1 -1
- package/.devcontainer/isolation.sh +30 -30
- package/.devcontainer/kind-wrapper.sh +17 -17
- package/.devcontainer/kube-account.sh +112 -113
- package/.devcontainer/kube-config.sh +45 -46
- package/.devcontainer/{invite-kube.sh → kube-prompt.sh} +6 -6
- package/.devcontainer/kube-reachable.sh +40 -40
- package/.devcontainer/memory.sh +1 -1
- package/.devcontainer/metrics-server.sh +2 -2
- package/.devcontainer/opencode.jsonc +2 -2
- package/.devcontainer/packages.sh +136 -135
- package/.devcontainer/password.sh +1 -1
- package/.devcontainer/ports-auto.sh +152 -153
- package/.devcontainer/ports-json.sh +16 -15
- package/.devcontainer/ports.sh +126 -122
- package/.devcontainer/post-create.sh +52 -52
- package/.devcontainer/postgres/postgres.sh +174 -174
- package/.devcontainer/rename-legacy-files.sh +103 -0
- package/.devcontainer/services-admin.sh +3 -3
- package/.devcontainer/skills/devzone/SKILL.md +40 -41
- package/.devcontainer/startup.sh +48 -49
- package/.devcontainer/state-gitops.sh +1 -1
- package/.devcontainer/state-json.sh +36 -62
- package/.devcontainer/state.sh +2 -2
- package/.devcontainer/workspace-init.sh +16 -2
- package/Makefile +1 -1
- package/README.md +191 -195
- package/charts/devzone-workspace/templates/statefulset.yaml +1 -1
- package/manage/devzone +7 -11
- package/manage/scripts/argocd-workspace.sh +1 -1
- package/manage/scripts/{check-charts.sh → ci/check-charts.sh} +1 -1
- package/manage/scripts/{check-english.sh → ci/check-english.sh} +1 -1
- package/manage/scripts/{check-go-layout.sh → ci/check-go-layout.sh} +1 -1
- package/manage/scripts/{check-names.sh → ci/check-names.sh} +7 -6
- package/manage/scripts/{check-utf8-vars.sh → ci/check-utf8-vars.sh} +1 -1
- package/manage/scripts/{versions.sh → ci/versions.sh} +8 -8
- package/manage/scripts/create-cluster.sh +1 -1
- package/manage/scripts/create-mode.sh +11 -18
- package/manage/scripts/devzone-create.sh +7 -35
- package/manage/scripts/devzone-manifest.sh +1 -1
- package/manage/scripts/devzone-update.sh +12 -8
- package/manage/scripts/launch.sh +7 -48
- package/manage/scripts/ports-apps.sh +1 -1
- package/manage/scripts/ports-workspace.sh +7 -7
- package/manage/scripts/poste.sh +6 -7
- package/manage/scripts/uninstall.sh +8 -8
- package/manage/scripts/workspace-egress.sh +2 -2
- package/manage/scripts/workspace-update.sh +5 -2
- package/manage/scripts/workspace-wait.sh +2 -2
- package/manage/workspace.sh +2 -12
- package/package.json +1 -1
- package/.devcontainer/docker-relay.sh +0 -149
- package/.devcontainer/docker-without-host.sh +0 -12
- package/.devcontainer/git-identite.sh +0 -28
- package/manage/scripts/docker-workstation.sh +0 -73
- package/manage/scripts/migrate-revert.sh +0 -60
- package/manage/scripts/migrate.sh +0 -243
- /package/manage/scripts/{ci-dns.sh → ci/ci-dns.sh} +0 -0
package/README.md
CHANGED
|
@@ -1,73 +1,69 @@
|
|
|
1
1
|
# devzone
|
|
2
2
|
|
|
3
|
-
[](https://www.npmjs.com/package/devzone) [](https://www.npmjs.com/package/devzone) [](https://github.com/SimBienvenueHoulBoumi/devzone/blob/main/LICENSE)
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Your Linux development workstation, ready in one command, identical on Mac, Windows and Linux.
|
|
6
6
|
|
|
7
|
-
-
|
|
8
|
-
-
|
|
9
|
-
-
|
|
10
|
-
- Local
|
|
11
|
-
-
|
|
7
|
+
- An identical Ubuntu for the whole team.
|
|
8
|
+
- Tools and services ready: Java, Node, Python, Docker, Kubernetes, PostgreSQL, GitLab when needed.
|
|
9
|
+
- AI agents supervised by repowarden.
|
|
10
|
+
- Local and free: nothing is hosted.
|
|
11
|
+
- An update with `devzone update`, and added tools that survive the rebuild (devzone packages).
|
|
12
12
|
|
|
13
|
-
##
|
|
13
|
+
## Why devzone?
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
Each alternative has its limits:
|
|
16
16
|
|
|
17
|
-
- **WSL
|
|
18
|
-
- **
|
|
19
|
-
- **
|
|
17
|
+
- **WSL**: Windows only, and specific to each workstation.
|
|
18
|
+
- **Virtual machine**: heavy, slow to start.
|
|
19
|
+
- **Hosted environments** (Codespaces, Gitpod…): cloud, quotas, network.
|
|
20
20
|
|
|
21
|
-
devzone
|
|
21
|
+
devzone avoids them: the same environment on every workstation, on your machine.
|
|
22
22
|
|
|
23
|
-
##
|
|
23
|
+
## Limits
|
|
24
24
|
|
|
25
|
-
-
|
|
26
|
-
-
|
|
27
|
-
-
|
|
28
|
-
- Le terminal garde l'administrateur du cluster ; les agents n'ont que le compte limité aux namespaces `devzone-*` (rôle `edit`, jeton renouvelé toutes les 24 h). Les installeurs seuls agissent en administrateur ([#430](https://github.com/SimBienvenueHoulBoumi/devzone/issues/430)).
|
|
25
|
+
- No systemd: the services provided by devzone start with devzone, not with `systemctl`.
|
|
26
|
+
- No graphical desktop: everything happens in a terminal or in VS Code.
|
|
27
|
+
- The terminal keeps the cluster administrator; agents only have the account limited to the `devzone-*` namespaces (`edit` role, token renewed every 24 h). Only the installers act as administrator ([#430](https://github.com/SimBienvenueHoulBoumi/devzone/issues/430)).
|
|
29
28
|
|
|
30
|
-
##
|
|
29
|
+
## How it works
|
|
31
30
|
|
|
32
|
-
devzone
|
|
31
|
+
devzone prepares an Ubuntu environment with pinned tool versions, and runs it in one of these two places:
|
|
33
32
|
|
|
34
|
-
- **
|
|
35
|
-
|
|
33
|
+
- **inside the Kubernetes cluster** of your machine, by default, as soon as a cluster answers at creation: the workstation is a pod `devzone-workspace-0` (namespace `devzone-workspace`);
|
|
34
|
+
Nothing is hosted: everything runs on your machine. `workspace/` is kept across rebuilds, and the projects of the workstation stay in the pod's volume. The mode of each workstation is written in `.devzone.modules` (`workspace=kubernetes`); the details are in the [reference](manage/docs/reference.md#kubernetes-workspace).
|
|
36
35
|
|
|
37
|
-
|
|
36
|
+
## Quick start
|
|
38
37
|
|
|
39
|
-
|
|
38
|
+
### Prerequisites
|
|
40
39
|
|
|
41
|
-
|
|
40
|
+
- **Kubernetes (default mode)**: a Kubernetes 1.30 or newer cluster that answers, with `kubectl` and `helm` on the machine. On Mac and Windows, the simplest is the Docker Desktop cluster: *Settings → Kubernetes → Enable Kubernetes*. devzone itself does not need Docker in this mode, but the Docker Desktop cluster stops with Docker Desktop (if the cluster does not answer, see [Frequently asked questions](#frequently-asked-questions)). Details in the [Kubernetes workspace](manage/docs/reference.md#kubernetes-workspace).
|
|
41
|
+
- Node and npm (for `npx` or the global installation).
|
|
42
|
+
- `make` (needed for `make shell`; on Windows without `make`, see the table “Day to day”).
|
|
42
43
|
|
|
43
|
-
|
|
44
|
-
- **Docker (déprécié)** : Docker Desktop (ou Docker Engine sous Linux). Il sert au poste Docker, qui n'est plus un repli automatique : sans cluster, la création s'arrête. Il reste nécessaire pour lire les volumes à migrer (`devzone workspace migrate`, `devzone workspace revert` pour y retourner).
|
|
45
|
-
- Node et npm (pour `npx` ou l'installation globale).
|
|
46
|
-
- `make` (nécessaire pour `make shell` ; sous Windows sans `make`, voir le tableau « Au quotidien »).
|
|
44
|
+
On Windows: it is recommended to clone with Git for Windows (the scripts keep LF line endings thanks to `.gitattributes`, and the npm command finds the `bash` it requires).
|
|
47
45
|
|
|
48
|
-
|
|
46
|
+
#### Minimum memory per module
|
|
49
47
|
|
|
50
|
-
|
|
48
|
+
Measurements from 16/11/2026.
|
|
51
49
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
| Module | Consommation mesurée | Mémoire allouable exigée par devzone |
|
|
50
|
+
| Module | Measured consumption | Allocatable memory required by devzone |
|
|
55
51
|
|---|---|---|
|
|
56
|
-
|
|
|
57
|
-
| GitLab | ~3
|
|
58
|
-
| MySQL | ~0
|
|
59
|
-
| Argo CD | ~0
|
|
52
|
+
| Base cluster | ~4 GB | none |
|
|
53
|
+
| GitLab | ~3.6 GB | 8 GB |
|
|
54
|
+
| MySQL | ~0.5 GB | none |
|
|
55
|
+
| Argo CD | ~0.6 GB | 1 GB |
|
|
60
56
|
|
|
61
|
-
|
|
57
|
+
On Docker Desktop (kind), the check compares the minimum with the memory of a single node, so with the VM; on a cluster of real machines, with the sum of the nodes.
|
|
62
58
|
|
|
63
|
-
- **
|
|
64
|
-
- **Mac** (Docker Desktop)
|
|
65
|
-
- **Windows
|
|
66
|
-
- **Linux
|
|
59
|
+
- **Adjusting the RAM**:
|
|
60
|
+
- **Mac** (Docker Desktop): *Settings → Resources > Memory*. Other method: change `MemoryMiB` in Docker Desktop's `settings-store.json` file (Docker fully quit otherwise, it rewrites the value).
|
|
61
|
+
- **Windows**: file `%UserProfile%\.wslconfig` with `[wsl2]` and `memory=<N>GB`, then `wsl --shutdown`. WSL2 takes 50 % of the RAM by default.
|
|
62
|
+
- **Linux**: nothing to adjust: there is no VM, the host's RAM is used.
|
|
67
63
|
|
|
68
|
-
###
|
|
64
|
+
### Launch in one command
|
|
69
65
|
|
|
70
|
-
|
|
66
|
+
Two ways via npm. Without installation, on each use:
|
|
71
67
|
|
|
72
68
|
```bash
|
|
73
69
|
npx devzone mon-devzone
|
|
@@ -75,7 +71,7 @@ cd mon-devzone
|
|
|
75
71
|
make shell
|
|
76
72
|
```
|
|
77
73
|
|
|
78
|
-
|
|
74
|
+
You can also install it once and for all:
|
|
79
75
|
|
|
80
76
|
```bash
|
|
81
77
|
npm install -g devzone
|
|
@@ -86,13 +82,13 @@ cd mon-devzone
|
|
|
86
82
|
make shell
|
|
87
83
|
```
|
|
88
84
|
|
|
89
|
-
|
|
85
|
+
With a GitHub account, the option `--gitops <github|none|<url>>` sets up the GitOps repository as soon as the folder is created:
|
|
90
86
|
|
|
91
87
|
```bash
|
|
92
88
|
npx devzone mon-devzone --gitops github
|
|
93
89
|
```
|
|
94
90
|
|
|
95
|
-
|
|
91
|
+
Or fetch the code directly:
|
|
96
92
|
|
|
97
93
|
```bash
|
|
98
94
|
git clone https://github.com/SimBienvenueHoulBoumi/devzone.git
|
|
@@ -100,9 +96,9 @@ cd devzone
|
|
|
100
96
|
make shell
|
|
101
97
|
```
|
|
102
98
|
|
|
103
|
-
|
|
99
|
+
You can also use VS Code: open the `mon-devzone` (or `devzone`) folder, then *Dev Containers: Reopen in Container*.
|
|
104
100
|
|
|
105
|
-
|
|
101
|
+
At each startup, a summary tells you what is ready or what remains to be done. Its labels are in English, and `devzone` shows it again on request. Extract, without a git identity configured:
|
|
106
102
|
|
|
107
103
|
```text
|
|
108
104
|
devzone: state (devzone to show it again)
|
|
@@ -115,27 +111,27 @@ devzone: state (devzone to show it again)
|
|
|
115
111
|
○ module gitlab optional, GitLab de test dans le cluster des services: devzone enable gitlab
|
|
116
112
|
```
|
|
117
113
|
|
|
118
|
-
|
|
114
|
+
A line `○ GitHub … optional` replaces `✔ GitHub connecté` as long as `gh` is not connected. The full list of commands is in `devzone --help`.
|
|
119
115
|
|
|
120
|
-
|
|
116
|
+
The first launch takes 4 to 5 min as measured, plus the download of the base images on a new machine.
|
|
121
117
|
|
|
122
|
-
###
|
|
118
|
+
### A cluster at creation
|
|
123
119
|
|
|
124
|
-
|
|
120
|
+
At creation, devzone needs a Kubernetes cluster that answers.
|
|
125
121
|
|
|
126
122
|
```text
|
|
127
123
|
devzone mon-devzone
|
|
128
124
|
│
|
|
129
|
-
├─ cluster
|
|
130
|
-
│ make shell
|
|
125
|
+
├─ cluster answers ─────▶ workspace in the cluster (Kubernetes)
|
|
126
|
+
│ make shell opens the pod
|
|
131
127
|
│
|
|
132
|
-
└─
|
|
133
|
-
|
|
128
|
+
└─ otherwise ───────────▶ nothing is created: devzone lists the ways
|
|
129
|
+
to get a cluster, then you rerun
|
|
134
130
|
```
|
|
135
131
|
|
|
136
|
-
|
|
132
|
+
Without a cluster, in a terminal, devzone offers to choose a remote cluster (a context of your kubeconfig, whose name you retype to confirm) or to create a minikube; without a terminal, it stops and shows commands to copy (it never runs them, and no cloud credential passes through it): a remote cluster (`aws eks update-kubeconfig`, `gcloud container clusters get-credentials`, `az aks get-credentials`, which declare it in your kubeconfig; make it the current kubectl context), or a local cluster (Docker Desktop: *Settings → Kubernetes → Enable Kubernetes*, or `minikube start -p devzone`). Details in [manage/docs/reference.md](manage/docs/reference.md#direct-creation-in-the-cluster).
|
|
137
133
|
|
|
138
|
-
###
|
|
134
|
+
### Check that everything works
|
|
139
135
|
|
|
140
136
|
```bash
|
|
141
137
|
java -version
|
|
@@ -144,36 +140,36 @@ python3 --version
|
|
|
144
140
|
repowarden --version
|
|
145
141
|
```
|
|
146
142
|
|
|
147
|
-
|
|
143
|
+
With an active Kubernetes cluster: `kubectl get nodes`.
|
|
148
144
|
|
|
149
|
-
|
|
145
|
+
**Optional step**: `gh auth login -s workflow` to enable GitHub (push, PR and repowarden tickets).
|
|
150
146
|
|
|
151
|
-
##
|
|
147
|
+
## Your first project
|
|
152
148
|
|
|
153
|
-
|
|
149
|
+
Your projects go into `workspace/` (kept on your machine, even after `make down` or `make rebuild`).
|
|
154
150
|
|
|
155
|
-
|
|
151
|
+
Example:
|
|
156
152
|
```bash
|
|
157
153
|
cd workspace
|
|
158
154
|
git clone https://github.com/ton-compte/ton-projet.git
|
|
159
|
-
#
|
|
155
|
+
# or
|
|
160
156
|
mkdir mon-projet && cd mon-projet && git init -b main
|
|
161
157
|
```
|
|
162
158
|
|
|
163
|
-
|
|
159
|
+
To learn more: [Starting a project](https://github.com/SimBienvenueHoulBoumi/devzone/blob/main/manage/docs/reference.md#starting-a-project).
|
|
164
160
|
|
|
165
|
-
##
|
|
161
|
+
## What devzone contains
|
|
166
162
|
|
|
167
|
-
|
|
|
163
|
+
| Area | Tools |
|
|
168
164
|
|---|---|
|
|
169
|
-
|
|
|
170
|
-
|
|
|
171
|
-
| GitHub (
|
|
172
|
-
|
|
|
165
|
+
| Languages | Java 21 + Maven + Gradle, Node LTS + pnpm, Python 3.12 (apt) + uv |
|
|
166
|
+
| Containers, Kubernetes | Host Docker (shared socket), kubectl, helm, k9s, kind; connection to the host cluster (`kubernetes` module); Testcontainers (`TESTCONTAINERS_HOST_OVERRIDE`); mounts (`$LOCAL_WORKSPACE_FOLDER`) |
|
|
167
|
+
| GitHub (or GitLab), quality | gh, or glab connected to a GitLab instance (`devzone platform gitlab` in the container, [manage/docs/reference.md](manage/docs/reference.md#platform-github-or-gitlab)); repowarden (global git hooks), shellcheck, bats, actionlint, gitleaks, ruff, vulture, pytest |
|
|
168
|
+
| AI assistants | Claude Code, opencode (`ia` module, disabled by default) |
|
|
173
169
|
|
|
174
|
-
##
|
|
170
|
+
## Installing a tool that stays
|
|
175
171
|
|
|
176
|
-
|
|
172
|
+
A tool installed by hand (`sudo apt install tree`) does not survive a `make rebuild`: the image is rebuilt from scratch. For a tool that must stay, `devzone packages` keeps the list of packages to reinstall:
|
|
177
173
|
|
|
178
174
|
```sh
|
|
179
175
|
devzone packages
|
|
@@ -182,28 +178,28 @@ devzone packages remove tree
|
|
|
182
178
|
devzone packages apply
|
|
183
179
|
```
|
|
184
180
|
|
|
185
|
-
- `devzone packages`
|
|
186
|
-
- `devzone packages add <nom>…`
|
|
187
|
-
- `devzone packages remove <nom>`
|
|
188
|
-
- `devzone packages apply`
|
|
181
|
+
- `devzone packages` shows the list: ✔ installed packages, ○ packages to install;
|
|
182
|
+
- `devzone packages add <nom>…` validates each package (apt-cache), installs it, then adds it to the list;
|
|
183
|
+
- `devzone packages remove <nom>` removes it from the list and uninstalls it;
|
|
184
|
+
- `devzone packages apply` installs the missing packages after a rebuild.
|
|
189
185
|
|
|
190
|
-
|
|
186
|
+
The list lives in `.devzone.packages` at the root of the devzone folder, outside the repository. A package that fails is reported in the summary (⚠ packages: …); `devzone packages apply` can then be run again.
|
|
191
187
|
|
|
192
|
-
##
|
|
188
|
+
## Day to day
|
|
193
189
|
|
|
194
|
-
| Action | VS Code (`Cmd+Shift+P`) | `make` |
|
|
190
|
+
| Action | VS Code (`Cmd+Shift+P`) | `make` | Without `make` (Windows) |
|
|
195
191
|
|---|---|---|---|
|
|
196
|
-
|
|
|
197
|
-
|
|
|
198
|
-
|
|
|
199
|
-
|
|
|
200
|
-
|
|
|
201
|
-
|
|
|
202
|
-
| **
|
|
192
|
+
| Launch | *Dev Containers: Reopen in Container* | `make up` | `npx @devcontainers/cli up --workspace-folder .` |
|
|
193
|
+
| Open a shell | VS Code terminal | `make shell` | `npx @devcontainers/cli exec --workspace-folder . bash` |
|
|
194
|
+
| Stop | *Remote: Close Remote Connection* (the container stops with the window) | `make stop` | — |
|
|
195
|
+
| Remove the container | — | `make down` | — |
|
|
196
|
+
| Rebuild (after a change to `.devcontainer/`) | *Dev Containers: Rebuild Container* | `make rebuild` | `npx @devcontainers/cli up --workspace-folder . --remove-existing-container` |
|
|
197
|
+
| Status | — | `make status` | — |
|
|
198
|
+
| **Uninstall** (everything devzone created, after confirmation) | — | `make uninstall` | `npx devzone uninstall` |
|
|
203
199
|
|
|
204
|
-
|
|
200
|
+
In Kubernetes mode (workstation created while the cluster was answering), the same table applies to the pod `devzone-workspace-0`: `make up`, `make shell` and `make stop` control it, and `make rebuild` is refused, because nothing needs rebuilding on the machine. The GitLab, PostgreSQL and Argo CD services are installed from the workstation: `devzone workspace services enable postgres` (see [the reference](manage/docs/reference.md#devzone-services-in-the-kubernetes-workspace)). You can also develop there: `devzone workspace clone <url>` makes a working clone in the pod, `devzone ticket <n>` creates the worktree of a ticket there and `devzone agent` launches opencode there without a copy ([developing in the pod](manage/docs/reference.md#developing-devzone-and-repowarden-in-the-pod)). Argo CD is installed by default there and keeps the deployments: interface at https://localhost:8443 (password `admin` in `.password`), GitOps repository `<login>/devzone-argocd` created on your GitHub, projects declared in `.argocd.conf` (`devzone workspace argocd app add <repo>`); see [Argo CD in the Kubernetes workspace](manage/docs/reference.md#argo-cd-in-the-kubernetes-workspace).
|
|
205
201
|
|
|
206
|
-
|
|
202
|
+
In the container, `devzone --version` shows the version of the workspace image, and `devzone --help` lists all the commands. Extract:
|
|
207
203
|
|
|
208
204
|
```text
|
|
209
205
|
devzone enable <module> enable and apply at once
|
|
@@ -211,57 +207,57 @@ Dans le conteneur, `devzone --version` affiche la version de l'image du workspac
|
|
|
211
207
|
devzone port [<n>|--close <n>] relay of a container port to the workstation
|
|
212
208
|
```
|
|
213
209
|
|
|
214
|
-
###
|
|
210
|
+
### Updating devzone
|
|
215
211
|
|
|
216
|
-
|
|
212
|
+
At creation, the folder keeps its version in `.devzone.version`: the version, then the sha256 fingerprint of each file copied from the package. To bring an existing folder to the package version:
|
|
217
213
|
|
|
218
214
|
```bash
|
|
219
215
|
cd mon-devzone
|
|
220
216
|
devzone update
|
|
221
217
|
```
|
|
222
218
|
|
|
223
|
-
|
|
219
|
+
For the latest published version, without a global installation:
|
|
224
220
|
|
|
225
221
|
```bash
|
|
226
222
|
cd mon-devzone
|
|
227
223
|
npx devzone@latest update
|
|
228
224
|
```
|
|
229
225
|
|
|
230
|
-
|
|
226
|
+
The command shows the folder's version and the package's, and does nothing if they are equal. Otherwise, it backs up the replaced or deleted files to `.devzone.backup/<date>/`, lists the locally modified files and asks for confirmation (`--yes` for a script; without a terminal, `--yes` is required), replaces the package files, removes the old trees (`core/`, `scripts/`), completes `.gitignore` without overwriting it, then proposes `make rebuild`. `--sans-reconstruire` skips this proposal; without a terminal, the rebuild is never launched.
|
|
231
227
|
|
|
232
|
-
`workspace/`, `.devzone.modules`, `.devzone.
|
|
228
|
+
`workspace/`, `.devzone.modules`, `.devzone.packages`, `.password`, `.app`, `.devzone.log` and the Docker volumes are never touched.
|
|
233
229
|
|
|
234
|
-
|
|
230
|
+
The old names of files and folders (`.devzone.paquets`, `.devzone.sauvegarde`, `.devzone.ports-workspace`, `.devzone.etat`, `.devzone.catalogue-veilleur`) are renamed once only, with their contents, by `.devcontainer/rename-legacy-files.sh`: at container startup and at update. A new name already present is never overwritten.
|
|
235
231
|
|
|
236
|
-
|
|
232
|
+
The Kubernetes workspace is updated separately: `devzone workspace update` moves it to the latest stable release (or `--version X.Y.Z`), image, charts and Argo CD at the same tag. **The pod `devzone-workspace-0` is recreated**: the VS Code windows attached to the pod are disconnected. The image is checked on ghcr.io before any write, and nothing changes if it does not exist yet. Details in the [reference](manage/docs/reference.md#updating-the-workspace).
|
|
237
233
|
|
|
238
|
-
|
|
234
|
+
In the container, the `devzone` summary reports a more recent published version (npm check at most once a day, without blocking offline): `○ devzone X.Y.Z disponible : sur le poste, devzone update`.
|
|
239
235
|
|
|
240
236
|
## Options
|
|
241
237
|
|
|
242
|
-
**Mode
|
|
238
|
+
**Mode at creation**: `--kubernetes` (workspace in the cluster, refused without a cluster). Without an option, the cluster must answer, otherwise nothing is created (see [A cluster at creation](#a-cluster-at-creation)).
|
|
243
239
|
|
|
244
|
-
|
|
240
|
+
**`ia` module**: enables Claude Code and opencode (pinned versions), with the repowarden guard that stops them before they modify `main` or `develop` or commit without `repowarden cc` (see [manage/docs/reference.md](manage/docs/reference.md#ai-assistants-guard)). To enable it: `devzone enable ia`. They are uninstalled when the module is disabled, but your logins stay in their volumes. The module also sets up a guard that stops the `docker` commands of agents: devzone is Kubernetes first, only pods are containers (`kubectl`, or a disposable pod, instead).
|
|
245
241
|
|
|
246
|
-
**
|
|
242
|
+
**Models on your computer**: devzone hosts no model. If Ollama runs on your machine, `devzone enable ia` detects its models and connects them to opencode (nothing is installed or downloaded). `devzone ai` lists them with the default model, `devzone ai check` says whether each one is up to date without downloading anything, and `devzone ai rapport` details the selected model and why (the `DEVZONE_HOST_MODEL` variable, a measurement, or the rule “a code model first, then the smallest”). Details in [manage/docs/reference.md](manage/docs/reference.md#opencode-configuration). The `llm` module (model hosted in the cluster) has been removed: devzone hosts no model.
|
|
247
243
|
|
|
248
|
-
|
|
244
|
+
**`kubernetes` module**: enables, at each startup, the connection to the host cluster and the installation of metrics-server on local clusters (to see CPU and RAM in k9s). To enable it: `devzone enable kubernetes`. Without this module, kubectl, helm, k9s and kind remain installed.
|
|
249
245
|
|
|
250
|
-
**
|
|
246
|
+
**GitHub or GitLab platform**: GitHub by default (new architecture). To serve a team on GitLab: `devzone platform gitlab --url URL` (or without `--url` when the `gitlab` module is enabled, for the test instance): glab is installed (pinned version, checksum verified) and connected to the instance, and `devzone` shows it instead of the `gh` checks. `devzone platform github` goes back (glab removed). GitLab is reachable directly from the workstation without a temporary relay. Details in [manage/docs/reference.md](manage/docs/reference.md#platform-github-or-gitlab).
|
|
251
247
|
|
|
252
|
-
|
|
248
|
+
**`postgres` module**: a shared PostgreSQL, one database per project (see [Connecting to PostgreSQL](#connecting-to-postgresql)). To enable it: `devzone enable postgres`.
|
|
253
249
|
|
|
254
|
-
|
|
250
|
+
**`argocd` module**: Argo CD on the devzone cluster, interface at https://127.0.0.1:8443 in the container (see [Argo CD](manage/docs/reference.md#argo-cd)). To enable it: `devzone enable argocd`.
|
|
255
251
|
|
|
256
|
-
|
|
252
|
+
**`devzone agent --pod` option**: launches an agent session in an isolated disposable pod (ticket #222). The pod is created with limited resources (2 CPU, 4 Gi memory), restricted mounts of the workspace and the state, and a mandatory affinity to the workspace pod. It isolates: the ticket's worktree at the same path as in the workspace, the repository's `.git`, and state subfolders (.config/opencode, .local/share/opencode, .local/state/oc-lancer, .local/npm read-only). It does NOT isolate: the network (unfiltered, that is #220), the host kubeconfig, `~/.config/gh`, `~/.claude`, the other worktrees, and, since the repository's `.git` is mounted, the git references of the other branches remain readable and writable there. Without `--pod`, the current `devzone agent` behavior is strictly unchanged.
|
|
257
253
|
|
|
258
|
-
|
|
254
|
+
These modules are disabled by default, can be enabled on demand from the container (without a rebuild), and their choice is kept from one startup to the next.
|
|
259
255
|
|
|
260
|
-
|
|
256
|
+
The `devzone` command is written in English, subcommands and options included (`enable`, `disable`, `platform`, `packages`, `update`, `uninstall`, `status`, `use`; `postgres create`, `packages add`, `gitlab new-password`, `port --close`, `cluster --yes`). The old French names are refused with the new name; the full table is in [Removed names](manage/docs/reference.md#removed-names).
|
|
261
257
|
|
|
262
|
-
##
|
|
258
|
+
## Where are my credentials?
|
|
263
259
|
|
|
264
|
-
|
|
260
|
+
The accounts created by devzone are grouped in `.password`, at the root of devzone (next to `.devzone.modules`). One line per account, columns separated by tabs:
|
|
265
261
|
|
|
266
262
|
```text
|
|
267
263
|
# service address user password
|
|
@@ -271,29 +267,29 @@ postgres:monprojet 127.0.0.1:5432/monprojet monprojet …
|
|
|
271
267
|
argocd https://127.0.0.1:8443 admin …
|
|
272
268
|
```
|
|
273
269
|
|
|
274
|
-
|
|
270
|
+
The file is readable by you only (600) and ignored by git: never copy it or commit it. It is regenerated at each creation, deletion or change of account (`gitlab`, `postgres` and `argocd` modules, GitLab seed, startup):
|
|
275
271
|
|
|
276
272
|
```sh
|
|
277
|
-
devzone passwords #
|
|
278
|
-
devzone postgres create <projet> #
|
|
279
|
-
devzone postgres delete <projet> #
|
|
280
|
-
devzone gitlab new-password [root|dev] #
|
|
273
|
+
devzone passwords # regenerates the file and only shows its path
|
|
274
|
+
devzone postgres create <projet> # creation, or new password with --new-password
|
|
275
|
+
devzone postgres delete <projet> # deletion of the account and its line
|
|
276
|
+
devzone gitlab new-password [root|dev] # random password (root or dev) regenerated
|
|
281
277
|
```
|
|
282
278
|
|
|
283
|
-
|
|
279
|
+
The module files remain the source: `workspace/.postgres/<projet>.env`, `workspace/.postgres/admin-password`, `workspace/.gitlab/root-password`, `workspace/.gitlab/dev-password` and `workspace/.argocd/admin.env`.
|
|
284
280
|
|
|
285
|
-
|
|
281
|
+
The GitLab Rails secret is kept in `workspace/.gitlab/rails-secret.yaml` (600) and reapplied on a reinstallation; failing that, if the secret was lost, the summary warns: “GitLab reinstalled: if the browser shows 422, delete the site data of gitlab.localhost”.
|
|
286
282
|
|
|
287
|
-
##
|
|
283
|
+
## Connecting to PostgreSQL
|
|
288
284
|
|
|
289
|
-
|
|
285
|
+
The `postgres` module installs a shared PostgreSQL 16 on the devzone cluster: one database and one user per project. All commands are run in the container (`make shell`).
|
|
290
286
|
|
|
291
287
|
```sh
|
|
292
|
-
devzone enable postgres #
|
|
293
|
-
devzone postgres create monprojet #
|
|
288
|
+
devzone enable postgres # the first time: choice of the cluster (dedicated kind or host cluster)
|
|
289
|
+
devzone postgres create monprojet # database and user "monprojet"
|
|
294
290
|
```
|
|
295
291
|
|
|
296
|
-
|
|
292
|
+
The credentials are written to `workspace/.postgres/monprojet.env` (readable by you only, never committed):
|
|
297
293
|
|
|
298
294
|
```text
|
|
299
295
|
DB_HOST=127.0.0.1
|
|
@@ -304,7 +300,7 @@ DB_PASSWORD=…
|
|
|
304
300
|
DB_URL=jdbc:postgresql://127.0.0.1:5432/monprojet
|
|
305
301
|
```
|
|
306
302
|
|
|
307
|
-
PostgreSQL
|
|
303
|
+
PostgreSQL is reachable on `127.0.0.1:5432` from the container. Spring Boot example (`application.yaml` of a project stored in `workspace/<dossier>/<projet>/`):
|
|
308
304
|
|
|
309
305
|
```yaml
|
|
310
306
|
spring:
|
|
@@ -316,150 +312,150 @@ spring:
|
|
|
316
312
|
password: ${DB_PASSWORD}
|
|
317
313
|
```
|
|
318
314
|
|
|
319
|
-
|
|
315
|
+
Other commands: `devzone postgres list`, `devzone postgres psql monprojet` (console), `devzone postgres delete monprojet`, `devzone cluster [CTX]` (to see or change the cluster). Details in [manage/docs/reference.md](manage/docs/reference.md#postgresql).
|
|
320
316
|
|
|
321
|
-
###
|
|
317
|
+
### Viewing the database contents
|
|
322
318
|
|
|
323
|
-
|
|
319
|
+
In the container:
|
|
324
320
|
|
|
325
321
|
```sh
|
|
326
|
-
devzone postgres list #
|
|
327
|
-
devzone postgres psql monprojet #
|
|
322
|
+
devzone postgres list # the databases and their owner
|
|
323
|
+
devzone postgres psql monprojet # SQL console connected to the database "monprojet", with its user
|
|
328
324
|
```
|
|
329
325
|
|
|
330
|
-
|
|
326
|
+
In the console (`\q` to exit):
|
|
331
327
|
|
|
332
|
-
|
|
|
328
|
+
| Command | Shows |
|
|
333
329
|
|---|---|
|
|
334
|
-
| `\conninfo` |
|
|
335
|
-
| `\dt` |
|
|
336
|
-
| `\d task` |
|
|
337
|
-
| `\dn` |
|
|
338
|
-
| `SELECT * FROM task LIMIT 10;` |
|
|
339
|
-
| `SELECT * FROM flyway_schema_history;` |
|
|
330
|
+
| `\conninfo` | the database and user of the connection |
|
|
331
|
+
| `\dt` | the tables of the database |
|
|
332
|
+
| `\d task` | the structure of a table: columns, types, indexes, keys |
|
|
333
|
+
| `\dn` | the schemas |
|
|
334
|
+
| `SELECT * FROM task LIMIT 10;` | the first rows of a table |
|
|
335
|
+
| `SELECT * FROM flyway_schema_history;` | the Flyway migrations applied (if the project uses Flyway) |
|
|
340
336
|
|
|
341
|
-
`devzone postgres psql`,
|
|
337
|
+
`devzone postgres psql`, without a project name, opens the console as the `postgres` superuser: all databases (`\l`), all users (`\du`). Reserve it for administration: a mistake there touches the databases of all projects.
|
|
342
338
|
|
|
343
|
-
###
|
|
339
|
+
### Connecting from the workstation (IntelliJ, DBeaver, psql)
|
|
344
340
|
|
|
345
|
-
|
|
341
|
+
devzone's relay makes PostgreSQL reachable **inside the container** only (pending [#292](https://github.com/SimBienvenueHoulBoumi/devzone/issues/292)). For a client installed on the workstation, open a tunnel in a **workstation** terminal (the Mac Terminal, not the container's one), and leave it open:
|
|
346
342
|
|
|
347
343
|
```sh
|
|
348
344
|
kubectl --context docker-desktop -n devzone-postgres port-forward svc/postgres 5432:5432
|
|
349
345
|
```
|
|
350
346
|
|
|
351
|
-
(`docker-desktop
|
|
347
|
+
(`docker-desktop`: the host's Kubernetes, devzone's by default; `15432:5432` if a local PostgreSQL already occupies port 5432 of the workstation.)
|
|
352
348
|
|
|
353
|
-
|
|
349
|
+
Then, in the client, a PostgreSQL connection: host `localhost`, port `5432`, database, user and password read in `workspace/.postgres/monprojet.env` (`DB_NAME`, `DB_USER`, `DB_PASSWORD`). In IntelliJ: *View → Tool Windows → Database → + → Data Source → PostgreSQL*, then *Test Connection* (Database window: IntelliJ Ultimate; *Database Navigator* plugin otherwise).
|
|
354
350
|
|
|
355
|
-
|
|
351
|
+
“Connection refused”: the tunnel is not running, or it was started in the container. A database recreated (`devzone postgres delete` then `create`, or `create --new-password`) has a new password: update it in the client.
|
|
356
352
|
|
|
357
|
-
###
|
|
353
|
+
### Rights: one user per database
|
|
358
354
|
|
|
359
|
-
|
|
355
|
+
A project's user owns **its** database (it creates tables, indexes, data in it) and nothing else: it cannot create a database, nor connect to another project's. Hence, in a client, `[42501] ERROR: permission denied to create database`. This is intended (projects do not see each other). For a new database: `devzone postgres create <projet>`, which gives it its own user and its `.env` file.
|
|
360
356
|
|
|
361
|
-
>
|
|
357
|
+
> The `gitlab` module also has its own PostgreSQL (`gitlab-postgresql`): it belongs to GitLab, do not put your databases in it.
|
|
362
358
|
|
|
363
|
-
##
|
|
359
|
+
## See my application in the browser
|
|
364
360
|
|
|
365
|
-
|
|
361
|
+
On the Kubernetes workstation, `devzone workspace start` starts a port watcher: each TCP port ≥ 1024 that listens in the pod is relayed to `127.0.0.1` of the workstation, at the same number, by `kubectl port-forward`. A server started in the pod (`npm run dev`, port 5173) therefore answers at `http://localhost:5173`, without a command. The enabled services (PostgreSQL, MySQL, Argo CD) are relayed too, on their usual port. The Services of applications deployed in the cluster are relayed the same way, each on a local port (80 → 8080; a port already taken elsewhere becomes another port): `devzone workspace ports status` shows their URL `http://127.0.0.1:<port>`. A Service can be excluded with the annotation `devzone.io/relay: "false"`. The watcher is driven with `devzone workspace ports start|stop|status`; details in the [reference](manage/docs/reference.md#applications-and-services-on-the-workstations-localhost).
|
|
366
362
|
|
|
367
|
-
|
|
363
|
+
On the Docker workstation, an application launched **inside** the container (for example a Spring Boot with `./gradlew bootRun` on port 8080) is not reachable from the workstation: the devzone container publishes no port. As soon as it listens in the container, the **automatic port watcher** (`.devcontainer/ports-auto.sh`) sets up an `alpine/socat` relay (pinned version) on the host's Docker, from `127.0.0.1:<port>` of the workstation to the container's port: `http://localhost:<port>` **without a command**. The relay disappears when the application stops.
|
|
368
364
|
|
|
369
365
|
```sh
|
|
370
|
-
devzone port #
|
|
371
|
-
devzone port auto off #
|
|
372
|
-
devzone port --close <n> #
|
|
366
|
+
devzone port # list: manual and automatic relays, ● active or ○ stopped
|
|
367
|
+
devzone port auto off # stops the watcher: no more automatic relay
|
|
368
|
+
devzone port --close <n> # removes a manual relay and its port from the state
|
|
373
369
|
```
|
|
374
370
|
|
|
375
|
-
`devzone port <n>`
|
|
371
|
+
`devzone port <n>` also opens a manual relay: same mechanism on the workstation side, `alpine/socat` container, name `devzone-<instance>-port-<n>`.
|
|
376
372
|
|
|
377
|
-
|
|
373
|
+
From the workstation: `http://localhost:8080`. The manual relay is recreated automatically at container startup, toward the container's current address; it is removed by `make uninstall` (label `devzone.instance`). The automatic relay disappears with the application.
|
|
378
374
|
|
|
379
|
-
Spring Boot
|
|
375
|
+
Spring Boot listens on `0.0.0.0` by default: do not set `server.address` to `127.0.0.1`, otherwise the relay cannot reach the application. A port already taken on the workstation, an invalid port or an unreachable host Docker are refused with a non-zero exit code. Details in [manage/docs/reference.md](manage/docs/reference.md#ports-to-the-workstation).
|
|
380
376
|
|
|
381
|
-
##
|
|
377
|
+
## Frequently asked questions
|
|
382
378
|
|
|
383
|
-
- **Docker absent
|
|
384
|
-
- **
|
|
385
|
-
- **
|
|
386
|
-
- **`make`
|
|
387
|
-
- **
|
|
379
|
+
- **Docker absent or stopped**: `npx devzone`, `make up`, `make rebuild` and `make uninstall` check Docker first and tell you what to do: install it (Docker Desktop, or Docker Engine on Linux), start Docker Desktop, or, on Linux, add your account to the `docker` group (`sudo usermod -aG docker $USER`, then a new session). With `npx devzone mon-devzone`, the folder is created anyway: once Docker is started, `cd mon-devzone && make shell`.
|
|
380
|
+
- **Access to the host's Docker socket**: the host machine's Docker socket is mounted in the container. This grants administrator access to the host's Docker, including for AI agents. It is a deliberate security trade-off documented in the Limits section. To restrict access, use the mechanisms specific to Docker Desktop/Linux.
|
|
381
|
+
- **The first launch is long**: this is normal (building the image, downloading the base images). It takes 4 to 5 min as measured, plus the download of the base images on a new machine.
|
|
382
|
+
- **`make` is missing on Windows**: you can use `npx @devcontainers/cli` (see the table “Day to day”) or Git Bash. The scripts are compatible (LF line endings).
|
|
383
|
+
- **The Kubernetes cluster does not answer**: devzone never creates a cluster. At creation, without a cluster that answers (within 5 s), nothing is created: the command fails (code 1), says why and lists the ways to get a cluster (see [A cluster at creation](#a-cluster-at-creation)):
|
|
388
384
|
|
|
389
385
|
```text
|
|
390
386
|
✖ Kubernetes not reachable: cluster <contexte> unreachable (<serveur>). Nothing created.
|
|
391
387
|
```
|
|
392
388
|
|
|
393
|
-
|
|
389
|
+
`devzone workspace start` (so `make up` and `make shell`) checks the cluster first and stops without changing anything. The message gives the cause:
|
|
394
390
|
|
|
395
|
-
- **Docker Desktop
|
|
396
|
-
- **Docker
|
|
397
|
-
- **
|
|
391
|
+
- **Docker Desktop stopped**: `✖ Docker Desktop is stopped: the Kubernetes cluster of this machine runs inside it. Start Docker Desktop, then: make shell`. Start Docker Desktop, then `make shell`. To have it start at each login: *Settings → General → Start Docker Desktop when you sign in*.
|
|
392
|
+
- **Docker answers, not the cluster**: `✖ Kubernetes cluster <contexte> unreachable (<serveur>): enable Kubernetes in Docker Desktop (Settings → Kubernetes) or check kubectl config get-contexts`. Enable Kubernetes in Docker Desktop (*Settings → Kubernetes → Enable Kubernetes*).
|
|
393
|
+
- **Other cluster**: `✖ Kubernetes cluster <contexte> unreachable (<serveur>)`, followed by `Check the contexts: kubectl config get-contexts`. Check the chosen context, or change it with `devzone use CTX`.
|
|
398
394
|
|
|
399
|
-
|
|
400
|
-
- **
|
|
401
|
-
- **`make up`
|
|
395
|
+
Details in the [reference](manage/docs/reference.md#the-cluster-does-not-answer).
|
|
396
|
+
- **Git identity problem when committing**: set it once. With GitHub: `gh auth login -s workflow` (the identity is deduced automatically). Without GitHub: `git config --file ~/.config/git/config user.name "<nom>"` and `git config --file ~/.config/git/config user.email "<email>"`.
|
|
397
|
+
- **`make up` seems stuck**: it shows its steps and a sign of life at least every 30 s; the full log is in `.devzone.log`.
|
|
402
398
|
|
|
403
|
-
##
|
|
399
|
+
## Changing cluster
|
|
404
400
|
|
|
405
401
|
```sh
|
|
406
|
-
devzone clusters #
|
|
407
|
-
devzone use CTX [-n NS] #
|
|
408
|
-
devzone use -n NS #
|
|
402
|
+
devzone clusters # view: contexts, type, state, namespace
|
|
403
|
+
devzone use CTX [-n NS] # switches the kubectl working cluster
|
|
404
|
+
devzone use -n NS # changes only the namespace of the current cluster
|
|
409
405
|
```
|
|
410
406
|
|
|
411
|
-
|
|
407
|
+
The shell prompt shows `⎈ ctx/ns` (cyan if local, bold red if remote otherwise). A rebuild restarts on the host's cluster: the kubectl choice is written to `~/.kube/config`, which is not in a volume.
|
|
412
408
|
|
|
413
|
-
##
|
|
409
|
+
## Uninstalling
|
|
414
410
|
|
|
415
411
|
```bash
|
|
416
412
|
make uninstall
|
|
417
413
|
```
|
|
418
414
|
|
|
419
|
-
|
|
415
|
+
This command removes the container, the image `vsc-devzone-…`, the `devzone-*` volumes, the events of the host's Docker and the kind clusters created on the host, the `devzone-postgres` namespaces and the `app.kubernetes.io/managed-by=devzone` labels on the host's clusters, as well as any metrics-server installed by devzone. Resources are filtered by the `devzone.instance` label to target only the current instance. It **never touches** `workspace/` (your projects). To keep your logins (GitHub, git, Claude Code, opencode and modules): `make uninstall KEEP=logins` (old `GARDER=connexions` still accepted).
|
|
420
416
|
|
|
421
|
-
|
|
417
|
+
With the command installed globally (`npm install -g devzone`), you can also run, in the devzone folder:
|
|
422
418
|
|
|
423
419
|
```bash
|
|
424
420
|
devzone uninstall
|
|
425
421
|
```
|
|
426
422
|
|
|
427
|
-
|
|
423
|
+
Same effect as `make uninstall`. Then only, to remove the command from your machine:
|
|
428
424
|
|
|
429
425
|
```bash
|
|
430
426
|
npm uninstall -g devzone
|
|
431
427
|
```
|
|
432
428
|
|
|
433
|
-
|
|
429
|
+
This command only removes the `devzone` command from your machine; it deletes neither the container, nor the volumes, nor the folder.
|
|
434
430
|
|
|
435
|
-
##
|
|
431
|
+
## Removed names
|
|
436
432
|
|
|
437
|
-
|
|
433
|
+
Commands, subcommands and options are written in English. The old French names are removed: devzone refuses them, shows the new name and does nothing.
|
|
438
434
|
|
|
439
435
|
```
|
|
440
436
|
✖ « activer » a été renommé : devzone enable
|
|
441
437
|
```
|
|
442
438
|
|
|
443
|
-
|
|
439
|
+
The full table (commands, subcommands, options) is in [the reference](manage/docs/reference.md#removed-names).
|
|
444
440
|
|
|
445
|
-
##
|
|
441
|
+
## Going further
|
|
446
442
|
|
|
447
|
-
- [
|
|
448
|
-
- [
|
|
443
|
+
- [Detailed reference](https://github.com/SimBienvenueHoulBoumi/devzone/blob/main/manage/docs/reference.md)
|
|
444
|
+
- [Contributing](https://github.com/SimBienvenueHoulBoumi/devzone/blob/main/manage/docs/contributing.md): tests, delivery process and organization
|
|
449
445
|
|
|
450
|
-
##
|
|
446
|
+
## License
|
|
451
447
|
|
|
452
|
-
devzone
|
|
448
|
+
devzone is free software, distributed under the [GNU General Public License version 3](https://github.com/SimBienvenueHoulBoumi/devzone/blob/main/LICENSE).
|
|
453
449
|
|
|
454
450
|
|
|
455
|
-
###
|
|
451
|
+
### Egress proxy for agent sessions (disabled by default)
|
|
456
452
|
|
|
457
|
-
|
|
453
|
+
Limits the outbound network of sessions launched with `devzone agent --pod` through an HTTP(S) proxy (Squid) in the workspace namespace. Everything is disabled by default: without activation, the chart rendering and the manifest of the session pods remain identical.
|
|
458
454
|
|
|
459
|
-
- **Modes
|
|
460
|
-
- **
|
|
461
|
-
- **
|
|
462
|
-
- **
|
|
463
|
-
- **
|
|
464
|
-
- **
|
|
465
|
-
- **
|
|
455
|
+
- **Modes**: `observation` (the proxy accepts everything and logs, no cut-off, to build the list); `strict` (only the domain list is allowed, and a NetworkPolicy limits the output of the session pods to the proxy and DNS).
|
|
456
|
+
- **Enable** (Helm): `egressProxy.enabled=true` and `egressProxy.mode=observation` or `strict` (list: `egressProxy.allowedDomains`, default `.opencode.ai`, `.npmjs.org`, `.github.com`).
|
|
457
|
+
- **Reading the contacts**: `kubectl logs deploy/devzone-workspace-egress-proxy -c access-log -n <namespace>`.
|
|
458
|
+
- **Guard (strict)**: a window of 1 to 2 s exists at startup before the restriction is scheduled; an init container waits for direct access to be closed (20 tries, 1 s) and refuses the session if the restriction never becomes effective.
|
|
459
|
+
- **Limits**: the workspace itself remains open; only `devzone agent --pod` sessions are filtered; tools that ignore `HTTPS_PROXY` are blocked in strict mode.
|
|
460
|
+
- **Commands** (#633): `devzone workspace egress observation|strict|off`, `egress status` (domains contacted and their state), `egress allow|deny <domaine>`. The setting is kept in `.devzone.modules` and replayed at each `workspace start` and `workspace update`; the pod is not recreated.
|
|
461
|
+
- **Path**: `devzone workspace egress observation`, then `egress status` to see the domains contacted, `egress allow <domaine>` for those missing, and finally `devzone workspace egress strict`.
|