devzone 2.0.0 → 3.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/devzone +92 -1495
- 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 +195 -194
- package/charts/devzone-workspace/templates/statefulset.yaml +1 -1
- package/manage/devzone +5 -7
- package/manage/scripts/argocd-workspace.sh +1 -1
- package/manage/scripts/check-names.sh +6 -5
- package/manage/scripts/create-cluster.sh +1 -1
- package/manage/scripts/create-mode.sh +2 -2
- package/manage/scripts/devzone-create.sh +3 -3
- 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/migrate-revert.sh +3 -3
- package/manage/scripts/migrate.sh +7 -13
- package/manage/scripts/ports-apps.sh +1 -1
- package/manage/scripts/ports-workspace.sh +7 -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/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/README.md
CHANGED
|
@@ -1,73 +1,72 @@
|
|
|
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
|
+
- **inside a Docker container** (“Docker workstation” mode, deprecated, to be removed in an upcoming version): only with `--docker` at creation, or for a workstation already created that way.
|
|
36
35
|
|
|
37
|
-
|
|
36
|
+
In both cases, nothing is hosted: everything runs on your machine. `workspace/` is kept across rebuilds, and the projects of a Kubernetes workstation stay in the pod's volume. The mode of each workstation is written in `.devzone.modules` (`workspace=kubernetes` or `workspace=docker`); the details are in the [reference](manage/docs/reference.md#kubernetes-workspace).
|
|
38
37
|
|
|
39
|
-
##
|
|
38
|
+
## Quick start
|
|
40
39
|
|
|
41
|
-
###
|
|
40
|
+
### Prerequisites
|
|
42
41
|
|
|
43
|
-
- **Kubernetes (mode
|
|
44
|
-
- **Docker (
|
|
45
|
-
- Node
|
|
46
|
-
- `make` (
|
|
42
|
+
- **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).
|
|
43
|
+
- **Docker (deprecated)**: Docker Desktop (or Docker Engine on Linux). It serves the Docker workstation, which is no longer an automatic fallback: without a cluster, creation stops. It remains necessary to read the volumes to migrate (`devzone workspace migrate`, `devzone workspace revert` to go back).
|
|
44
|
+
- Node and npm (for `npx` or the global installation).
|
|
45
|
+
- `make` (needed for `make shell`; on Windows without `make`, see the table “Day to day”).
|
|
47
46
|
|
|
48
|
-
|
|
47
|
+
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).
|
|
49
48
|
|
|
50
|
-
####
|
|
49
|
+
#### Minimum memory per module
|
|
51
50
|
|
|
52
|
-
|
|
51
|
+
Measurements from 16/11/2026.
|
|
53
52
|
|
|
54
|
-
| Module |
|
|
53
|
+
| Module | Measured consumption | Allocatable memory required by devzone |
|
|
55
54
|
|---|---|---|
|
|
56
|
-
|
|
|
57
|
-
| GitLab | ~3
|
|
58
|
-
| MySQL | ~0
|
|
59
|
-
| Argo CD | ~0
|
|
55
|
+
| Base cluster | ~4 GB | none |
|
|
56
|
+
| GitLab | ~3.6 GB | 8 GB |
|
|
57
|
+
| MySQL | ~0.5 GB | none |
|
|
58
|
+
| Argo CD | ~0.6 GB | 1 GB |
|
|
60
59
|
|
|
61
|
-
|
|
60
|
+
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
61
|
|
|
63
|
-
- **
|
|
64
|
-
- **Mac** (Docker Desktop)
|
|
65
|
-
- **Windows
|
|
66
|
-
- **Linux
|
|
62
|
+
- **Adjusting the RAM**:
|
|
63
|
+
- **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).
|
|
64
|
+
- **Windows**: file `%UserProfile%\.wslconfig` with `[wsl2]` and `memory=<N>GB`, then `wsl --shutdown`. WSL2 takes 50 % of the RAM by default.
|
|
65
|
+
- **Linux**: nothing to adjust: there is no VM, the host's RAM is used.
|
|
67
66
|
|
|
68
|
-
###
|
|
67
|
+
### Launch in one command
|
|
69
68
|
|
|
70
|
-
|
|
69
|
+
Two ways via npm. Without installation, on each use:
|
|
71
70
|
|
|
72
71
|
```bash
|
|
73
72
|
npx devzone mon-devzone
|
|
@@ -75,7 +74,7 @@ cd mon-devzone
|
|
|
75
74
|
make shell
|
|
76
75
|
```
|
|
77
76
|
|
|
78
|
-
|
|
77
|
+
You can also install it once and for all:
|
|
79
78
|
|
|
80
79
|
```bash
|
|
81
80
|
npm install -g devzone
|
|
@@ -86,13 +85,13 @@ cd mon-devzone
|
|
|
86
85
|
make shell
|
|
87
86
|
```
|
|
88
87
|
|
|
89
|
-
|
|
88
|
+
With a GitHub account, the option `--gitops <github|none|<url>>` sets up the GitOps repository as soon as the folder is created:
|
|
90
89
|
|
|
91
90
|
```bash
|
|
92
91
|
npx devzone mon-devzone --gitops github
|
|
93
92
|
```
|
|
94
93
|
|
|
95
|
-
|
|
94
|
+
Or fetch the code directly:
|
|
96
95
|
|
|
97
96
|
```bash
|
|
98
97
|
git clone https://github.com/SimBienvenueHoulBoumi/devzone.git
|
|
@@ -100,9 +99,9 @@ cd devzone
|
|
|
100
99
|
make shell
|
|
101
100
|
```
|
|
102
101
|
|
|
103
|
-
|
|
102
|
+
You can also use VS Code: open the `mon-devzone` (or `devzone`) folder, then *Dev Containers: Reopen in Container*.
|
|
104
103
|
|
|
105
|
-
|
|
104
|
+
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
105
|
|
|
107
106
|
```text
|
|
108
107
|
devzone: state (devzone to show it again)
|
|
@@ -115,27 +114,27 @@ devzone: state (devzone to show it again)
|
|
|
115
114
|
○ module gitlab optional, GitLab de test dans le cluster des services: devzone enable gitlab
|
|
116
115
|
```
|
|
117
116
|
|
|
118
|
-
|
|
117
|
+
A line `○ GitHub … optional` replaces `✔ GitHub connecté` as long as `gh` is not connected. The full list of commands is in `devzone --help`.
|
|
119
118
|
|
|
120
|
-
|
|
119
|
+
The first launch takes 4 to 5 min as measured, plus the download of the base images on a new machine.
|
|
121
120
|
|
|
122
|
-
###
|
|
121
|
+
### A cluster at creation
|
|
123
122
|
|
|
124
|
-
|
|
123
|
+
At creation, devzone needs a Kubernetes cluster that answers.
|
|
125
124
|
|
|
126
125
|
```text
|
|
127
126
|
devzone mon-devzone
|
|
128
127
|
│
|
|
129
|
-
├─ cluster
|
|
130
|
-
│ make shell
|
|
128
|
+
├─ cluster answers ─────▶ workspace in the cluster (Kubernetes)
|
|
129
|
+
│ make shell opens the pod; no migration
|
|
131
130
|
│
|
|
132
|
-
└─
|
|
133
|
-
|
|
131
|
+
└─ otherwise ───────────▶ nothing is created: devzone lists the ways
|
|
132
|
+
to get a cluster, then you rerun
|
|
134
133
|
```
|
|
135
134
|
|
|
136
|
-
|
|
135
|
+
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`). `devzone mon-devzone --docker` still creates the Docker workstation, **deprecated**: it will be removed, and `devzone workspace migrate` moves it into the cluster. Details in [manage/docs/reference.md](manage/docs/reference.md#direct-creation-in-the-cluster).
|
|
137
136
|
|
|
138
|
-
###
|
|
137
|
+
### Check that everything works
|
|
139
138
|
|
|
140
139
|
```bash
|
|
141
140
|
java -version
|
|
@@ -144,36 +143,36 @@ python3 --version
|
|
|
144
143
|
repowarden --version
|
|
145
144
|
```
|
|
146
145
|
|
|
147
|
-
|
|
146
|
+
With an active Kubernetes cluster: `kubectl get nodes`.
|
|
148
147
|
|
|
149
|
-
|
|
148
|
+
**Optional step**: `gh auth login -s workflow` to enable GitHub (push, PR and repowarden tickets).
|
|
150
149
|
|
|
151
|
-
##
|
|
150
|
+
## Your first project
|
|
152
151
|
|
|
153
|
-
|
|
152
|
+
Your projects go into `workspace/` (kept on your machine, even after `make down` or `make rebuild`).
|
|
154
153
|
|
|
155
|
-
|
|
154
|
+
Example:
|
|
156
155
|
```bash
|
|
157
156
|
cd workspace
|
|
158
157
|
git clone https://github.com/ton-compte/ton-projet.git
|
|
159
|
-
#
|
|
158
|
+
# or
|
|
160
159
|
mkdir mon-projet && cd mon-projet && git init -b main
|
|
161
160
|
```
|
|
162
161
|
|
|
163
|
-
|
|
162
|
+
To learn more: [Starting a project](https://github.com/SimBienvenueHoulBoumi/devzone/blob/main/manage/docs/reference.md#starting-a-project).
|
|
164
163
|
|
|
165
|
-
##
|
|
164
|
+
## What devzone contains
|
|
166
165
|
|
|
167
|
-
|
|
|
166
|
+
| Area | Tools |
|
|
168
167
|
|---|---|
|
|
169
|
-
|
|
|
170
|
-
|
|
|
171
|
-
| GitHub (
|
|
172
|
-
|
|
|
168
|
+
| Languages | Java 21 + Maven + Gradle, Node LTS + pnpm, Python 3.12 (apt) + uv |
|
|
169
|
+
| 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`) |
|
|
170
|
+
| 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 |
|
|
171
|
+
| AI assistants | Claude Code, opencode (`ia` module, disabled by default) |
|
|
173
172
|
|
|
174
|
-
##
|
|
173
|
+
## Installing a tool that stays
|
|
175
174
|
|
|
176
|
-
|
|
175
|
+
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
176
|
|
|
178
177
|
```sh
|
|
179
178
|
devzone packages
|
|
@@ -182,28 +181,28 @@ devzone packages remove tree
|
|
|
182
181
|
devzone packages apply
|
|
183
182
|
```
|
|
184
183
|
|
|
185
|
-
- `devzone packages`
|
|
186
|
-
- `devzone packages add <nom>…`
|
|
187
|
-
- `devzone packages remove <nom>`
|
|
188
|
-
- `devzone packages apply`
|
|
184
|
+
- `devzone packages` shows the list: ✔ installed packages, ○ packages to install;
|
|
185
|
+
- `devzone packages add <nom>…` validates each package (apt-cache), installs it, then adds it to the list;
|
|
186
|
+
- `devzone packages remove <nom>` removes it from the list and uninstalls it;
|
|
187
|
+
- `devzone packages apply` installs the missing packages after a rebuild.
|
|
189
188
|
|
|
190
|
-
|
|
189
|
+
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
190
|
|
|
192
|
-
##
|
|
191
|
+
## Day to day
|
|
193
192
|
|
|
194
|
-
| Action | VS Code (`Cmd+Shift+P`) | `make` |
|
|
193
|
+
| Action | VS Code (`Cmd+Shift+P`) | `make` | Without `make` (Windows) |
|
|
195
194
|
|---|---|---|---|
|
|
196
|
-
|
|
|
197
|
-
|
|
|
198
|
-
|
|
|
199
|
-
|
|
|
200
|
-
|
|
|
201
|
-
|
|
|
202
|
-
| **
|
|
195
|
+
| Launch | *Dev Containers: Reopen in Container* | `make up` | `npx @devcontainers/cli up --workspace-folder .` |
|
|
196
|
+
| Open a shell | VS Code terminal | `make shell` | `npx @devcontainers/cli exec --workspace-folder . bash` |
|
|
197
|
+
| Stop | *Remote: Close Remote Connection* (the container stops with the window) | `make stop` | — |
|
|
198
|
+
| Remove the container | — | `make down` | — |
|
|
199
|
+
| Rebuild (after a change to `.devcontainer/`) | *Dev Containers: Rebuild Container* | `make rebuild` | `npx @devcontainers/cli up --workspace-folder . --remove-existing-container` |
|
|
200
|
+
| Status | — | `make status` | — |
|
|
201
|
+
| **Uninstall** (everything devzone created, after confirmation) | — | `make uninstall` | `npx devzone uninstall` |
|
|
203
202
|
|
|
204
|
-
|
|
203
|
+
In Kubernetes mode (workstation created while the cluster was answering, or after `devzone workspace migrate`), 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. `devzone workspace revert` gives back the Docker workstation (deprecated: a warning is shown, removal planned). 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
204
|
|
|
206
|
-
|
|
205
|
+
In the container, `devzone --version` shows the version of the workspace image, and `devzone --help` lists all the commands. Extract:
|
|
207
206
|
|
|
208
207
|
```text
|
|
209
208
|
devzone enable <module> enable and apply at once
|
|
@@ -211,57 +210,59 @@ Dans le conteneur, `devzone --version` affiche la version de l'image du workspac
|
|
|
211
210
|
devzone port [<n>|--close <n>] relay of a container port to the workstation
|
|
212
211
|
```
|
|
213
212
|
|
|
214
|
-
###
|
|
213
|
+
### Updating devzone
|
|
215
214
|
|
|
216
|
-
|
|
215
|
+
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
216
|
|
|
218
217
|
```bash
|
|
219
218
|
cd mon-devzone
|
|
220
219
|
devzone update
|
|
221
220
|
```
|
|
222
221
|
|
|
223
|
-
|
|
222
|
+
For the latest published version, without a global installation:
|
|
224
223
|
|
|
225
224
|
```bash
|
|
226
225
|
cd mon-devzone
|
|
227
226
|
npx devzone@latest update
|
|
228
227
|
```
|
|
229
228
|
|
|
230
|
-
|
|
229
|
+
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
230
|
|
|
232
|
-
`workspace/`, `.devzone.modules`, `.devzone.
|
|
231
|
+
`workspace/`, `.devzone.modules`, `.devzone.packages`, `.password`, `.app`, `.devzone.log` and the Docker volumes are never touched.
|
|
233
232
|
|
|
234
|
-
|
|
233
|
+
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, at update and at migration. A new name already present is never overwritten.
|
|
235
234
|
|
|
236
|
-
|
|
235
|
+
The update never changes the workstation's mode; on a Docker workstation with Kubernetes reachable, it proposes `devzone workspace migrate`.
|
|
237
236
|
|
|
238
|
-
|
|
237
|
+
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).
|
|
238
|
+
|
|
239
|
+
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
240
|
|
|
240
241
|
## Options
|
|
241
242
|
|
|
242
|
-
**Mode
|
|
243
|
+
**Mode at creation**: `--kubernetes` (workspace in the cluster, refused without a cluster) or `--docker` (deprecated Docker workstation, without cluster check). Without an option, the cluster must answer, otherwise nothing is created (see [A cluster at creation](#a-cluster-at-creation)).
|
|
243
244
|
|
|
244
|
-
|
|
245
|
+
**`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
246
|
|
|
246
|
-
**
|
|
247
|
+
**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
248
|
|
|
248
|
-
|
|
249
|
+
**`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
250
|
|
|
250
|
-
**
|
|
251
|
+
**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
252
|
|
|
252
|
-
|
|
253
|
+
**`postgres` module**: a shared PostgreSQL, one database per project (see [Connecting to PostgreSQL](#connecting-to-postgresql)). To enable it: `devzone enable postgres`.
|
|
253
254
|
|
|
254
|
-
|
|
255
|
+
**`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
256
|
|
|
256
|
-
|
|
257
|
+
**`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
258
|
|
|
258
|
-
|
|
259
|
+
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
260
|
|
|
260
|
-
|
|
261
|
+
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
262
|
|
|
262
|
-
##
|
|
263
|
+
## Where are my credentials?
|
|
263
264
|
|
|
264
|
-
|
|
265
|
+
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
266
|
|
|
266
267
|
```text
|
|
267
268
|
# service address user password
|
|
@@ -271,29 +272,29 @@ postgres:monprojet 127.0.0.1:5432/monprojet monprojet …
|
|
|
271
272
|
argocd https://127.0.0.1:8443 admin …
|
|
272
273
|
```
|
|
273
274
|
|
|
274
|
-
|
|
275
|
+
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
276
|
|
|
276
277
|
```sh
|
|
277
|
-
devzone passwords #
|
|
278
|
-
devzone postgres create <projet> #
|
|
279
|
-
devzone postgres delete <projet> #
|
|
280
|
-
devzone gitlab new-password [root|dev] #
|
|
278
|
+
devzone passwords # regenerates the file and only shows its path
|
|
279
|
+
devzone postgres create <projet> # creation, or new password with --new-password
|
|
280
|
+
devzone postgres delete <projet> # deletion of the account and its line
|
|
281
|
+
devzone gitlab new-password [root|dev] # random password (root or dev) regenerated
|
|
281
282
|
```
|
|
282
283
|
|
|
283
|
-
|
|
284
|
+
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
285
|
|
|
285
|
-
|
|
286
|
+
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
287
|
|
|
287
|
-
##
|
|
288
|
+
## Connecting to PostgreSQL
|
|
288
289
|
|
|
289
|
-
|
|
290
|
+
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
291
|
|
|
291
292
|
```sh
|
|
292
|
-
devzone enable postgres #
|
|
293
|
-
devzone postgres create monprojet #
|
|
293
|
+
devzone enable postgres # the first time: choice of the cluster (dedicated kind or host cluster)
|
|
294
|
+
devzone postgres create monprojet # database and user "monprojet"
|
|
294
295
|
```
|
|
295
296
|
|
|
296
|
-
|
|
297
|
+
The credentials are written to `workspace/.postgres/monprojet.env` (readable by you only, never committed):
|
|
297
298
|
|
|
298
299
|
```text
|
|
299
300
|
DB_HOST=127.0.0.1
|
|
@@ -304,7 +305,7 @@ DB_PASSWORD=…
|
|
|
304
305
|
DB_URL=jdbc:postgresql://127.0.0.1:5432/monprojet
|
|
305
306
|
```
|
|
306
307
|
|
|
307
|
-
PostgreSQL
|
|
308
|
+
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
309
|
|
|
309
310
|
```yaml
|
|
310
311
|
spring:
|
|
@@ -316,150 +317,150 @@ spring:
|
|
|
316
317
|
password: ${DB_PASSWORD}
|
|
317
318
|
```
|
|
318
319
|
|
|
319
|
-
|
|
320
|
+
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
321
|
|
|
321
|
-
###
|
|
322
|
+
### Viewing the database contents
|
|
322
323
|
|
|
323
|
-
|
|
324
|
+
In the container:
|
|
324
325
|
|
|
325
326
|
```sh
|
|
326
|
-
devzone postgres list #
|
|
327
|
-
devzone postgres psql monprojet #
|
|
327
|
+
devzone postgres list # the databases and their owner
|
|
328
|
+
devzone postgres psql monprojet # SQL console connected to the database "monprojet", with its user
|
|
328
329
|
```
|
|
329
330
|
|
|
330
|
-
|
|
331
|
+
In the console (`\q` to exit):
|
|
331
332
|
|
|
332
|
-
|
|
|
333
|
+
| Command | Shows |
|
|
333
334
|
|---|---|
|
|
334
|
-
| `\conninfo` |
|
|
335
|
-
| `\dt` |
|
|
336
|
-
| `\d task` |
|
|
337
|
-
| `\dn` |
|
|
338
|
-
| `SELECT * FROM task LIMIT 10;` |
|
|
339
|
-
| `SELECT * FROM flyway_schema_history;` |
|
|
335
|
+
| `\conninfo` | the database and user of the connection |
|
|
336
|
+
| `\dt` | the tables of the database |
|
|
337
|
+
| `\d task` | the structure of a table: columns, types, indexes, keys |
|
|
338
|
+
| `\dn` | the schemas |
|
|
339
|
+
| `SELECT * FROM task LIMIT 10;` | the first rows of a table |
|
|
340
|
+
| `SELECT * FROM flyway_schema_history;` | the Flyway migrations applied (if the project uses Flyway) |
|
|
340
341
|
|
|
341
|
-
`devzone postgres psql`,
|
|
342
|
+
`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
343
|
|
|
343
|
-
###
|
|
344
|
+
### Connecting from the workstation (IntelliJ, DBeaver, psql)
|
|
344
345
|
|
|
345
|
-
|
|
346
|
+
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
347
|
|
|
347
348
|
```sh
|
|
348
349
|
kubectl --context docker-desktop -n devzone-postgres port-forward svc/postgres 5432:5432
|
|
349
350
|
```
|
|
350
351
|
|
|
351
|
-
(`docker-desktop
|
|
352
|
+
(`docker-desktop`: the host's Kubernetes, devzone's by default; `15432:5432` if a local PostgreSQL already occupies port 5432 of the workstation.)
|
|
352
353
|
|
|
353
|
-
|
|
354
|
+
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
355
|
|
|
355
|
-
|
|
356
|
+
“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
357
|
|
|
357
|
-
###
|
|
358
|
+
### Rights: one user per database
|
|
358
359
|
|
|
359
|
-
|
|
360
|
+
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
361
|
|
|
361
|
-
>
|
|
362
|
+
> The `gitlab` module also has its own PostgreSQL (`gitlab-postgresql`): it belongs to GitLab, do not put your databases in it.
|
|
362
363
|
|
|
363
|
-
##
|
|
364
|
+
## See my application in the browser
|
|
364
365
|
|
|
365
|
-
|
|
366
|
+
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
367
|
|
|
367
|
-
|
|
368
|
+
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
369
|
|
|
369
370
|
```sh
|
|
370
|
-
devzone port #
|
|
371
|
-
devzone port auto off #
|
|
372
|
-
devzone port --close <n> #
|
|
371
|
+
devzone port # list: manual and automatic relays, ● active or ○ stopped
|
|
372
|
+
devzone port auto off # stops the watcher: no more automatic relay
|
|
373
|
+
devzone port --close <n> # removes a manual relay and its port from the state
|
|
373
374
|
```
|
|
374
375
|
|
|
375
|
-
`devzone port <n>`
|
|
376
|
+
`devzone port <n>` also opens a manual relay: same mechanism on the workstation side, `alpine/socat` container, name `devzone-<instance>-port-<n>`.
|
|
376
377
|
|
|
377
|
-
|
|
378
|
+
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
379
|
|
|
379
|
-
Spring Boot
|
|
380
|
+
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
381
|
|
|
381
|
-
##
|
|
382
|
+
## Frequently asked questions
|
|
382
383
|
|
|
383
|
-
- **Docker absent
|
|
384
|
-
- **
|
|
385
|
-
- **
|
|
386
|
-
- **`make`
|
|
387
|
-
- **
|
|
384
|
+
- **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`.
|
|
385
|
+
- **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.
|
|
386
|
+
- **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.
|
|
387
|
+
- **`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).
|
|
388
|
+
- **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
389
|
|
|
389
390
|
```text
|
|
390
391
|
✖ Kubernetes not reachable: cluster <contexte> unreachable (<serveur>). Nothing created.
|
|
391
392
|
```
|
|
392
393
|
|
|
393
|
-
|
|
394
|
+
Only `--docker` still creates a Docker workstation, deprecated. Then, `devzone workspace start` (so `make up` and `make shell`) checks the cluster first and stops without changing anything. The message gives the cause:
|
|
394
395
|
|
|
395
|
-
- **Docker Desktop
|
|
396
|
-
- **Docker
|
|
397
|
-
- **
|
|
396
|
+
- **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*.
|
|
397
|
+
- **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*).
|
|
398
|
+
- **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
399
|
|
|
399
|
-
|
|
400
|
-
- **
|
|
401
|
-
- **`make up`
|
|
400
|
+
Details in the [reference](manage/docs/reference.md#the-cluster-does-not-answer).
|
|
401
|
+
- **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>"`.
|
|
402
|
+
- **`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
403
|
|
|
403
|
-
##
|
|
404
|
+
## Changing cluster
|
|
404
405
|
|
|
405
406
|
```sh
|
|
406
|
-
devzone clusters #
|
|
407
|
-
devzone use CTX [-n NS] #
|
|
408
|
-
devzone use -n NS #
|
|
407
|
+
devzone clusters # view: contexts, type, state, namespace
|
|
408
|
+
devzone use CTX [-n NS] # switches the kubectl working cluster
|
|
409
|
+
devzone use -n NS # changes only the namespace of the current cluster
|
|
409
410
|
```
|
|
410
411
|
|
|
411
|
-
|
|
412
|
+
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
413
|
|
|
413
|
-
##
|
|
414
|
+
## Uninstalling
|
|
414
415
|
|
|
415
416
|
```bash
|
|
416
417
|
make uninstall
|
|
417
418
|
```
|
|
418
419
|
|
|
419
|
-
|
|
420
|
+
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
421
|
|
|
421
|
-
|
|
422
|
+
With the command installed globally (`npm install -g devzone`), you can also run, in the devzone folder:
|
|
422
423
|
|
|
423
424
|
```bash
|
|
424
425
|
devzone uninstall
|
|
425
426
|
```
|
|
426
427
|
|
|
427
|
-
|
|
428
|
+
Same effect as `make uninstall`. Then only, to remove the command from your machine:
|
|
428
429
|
|
|
429
430
|
```bash
|
|
430
431
|
npm uninstall -g devzone
|
|
431
432
|
```
|
|
432
433
|
|
|
433
|
-
|
|
434
|
+
This command only removes the `devzone` command from your machine; it deletes neither the container, nor the volumes, nor the folder.
|
|
434
435
|
|
|
435
|
-
##
|
|
436
|
+
## Removed names
|
|
436
437
|
|
|
437
|
-
|
|
438
|
+
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
439
|
|
|
439
440
|
```
|
|
440
441
|
✖ « activer » a été renommé : devzone enable
|
|
441
442
|
```
|
|
442
443
|
|
|
443
|
-
|
|
444
|
+
The full table (commands, subcommands, options) is in [the reference](manage/docs/reference.md#removed-names).
|
|
444
445
|
|
|
445
|
-
##
|
|
446
|
+
## Going further
|
|
446
447
|
|
|
447
|
-
- [
|
|
448
|
-
- [
|
|
448
|
+
- [Detailed reference](https://github.com/SimBienvenueHoulBoumi/devzone/blob/main/manage/docs/reference.md)
|
|
449
|
+
- [Contributing](https://github.com/SimBienvenueHoulBoumi/devzone/blob/main/manage/docs/contributing.md): tests, delivery process and organization
|
|
449
450
|
|
|
450
|
-
##
|
|
451
|
+
## License
|
|
451
452
|
|
|
452
|
-
devzone
|
|
453
|
+
devzone is free software, distributed under the [GNU General Public License version 3](https://github.com/SimBienvenueHoulBoumi/devzone/blob/main/LICENSE).
|
|
453
454
|
|
|
454
455
|
|
|
455
|
-
###
|
|
456
|
+
### Egress proxy for agent sessions (disabled by default)
|
|
456
457
|
|
|
457
|
-
|
|
458
|
+
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
459
|
|
|
459
|
-
- **Modes
|
|
460
|
-
- **
|
|
461
|
-
- **
|
|
462
|
-
- **
|
|
463
|
-
- **
|
|
464
|
-
- **
|
|
465
|
-
- **
|
|
460
|
+
- **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).
|
|
461
|
+
- **Enable** (Helm): `egressProxy.enabled=true` and `egressProxy.mode=observation` or `strict` (list: `egressProxy.allowedDomains`, default `.opencode.ai`, `.npmjs.org`, `.github.com`).
|
|
462
|
+
- **Reading the contacts**: `kubectl logs deploy/devzone-workspace-egress-proxy -c access-log -n <namespace>`.
|
|
463
|
+
- **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.
|
|
464
|
+
- **Limits**: the workspace itself remains open; only `devzone agent --pod` sessions are filtered; tools that ignore `HTTPS_PROXY` are blocked in strict mode.
|
|
465
|
+
- **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.
|
|
466
|
+
- **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`.
|