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.
Files changed (100) hide show
  1. package/.devcontainer/agent-errors.sh +6 -6
  2. package/.devcontainer/agent-pod-manifest.sh +4 -4
  3. package/.devcontainer/agent-session.sh +2 -2
  4. package/.devcontainer/agent-state-json.sh +2 -2
  5. package/.devcontainer/agent-workspace.sh +1 -1
  6. package/.devcontainer/agent.sh +7 -7
  7. package/.devcontainer/ai/host-models.sh +2 -2
  8. package/.devcontainer/ai/plugins/devzone-guard-v2.js +3 -3
  9. package/.devcontainer/ai/plugins/devzone-guard.js +3 -3
  10. package/.devcontainer/argocd/argocd.sh +90 -89
  11. package/.devcontainer/argocd/catalog-argocd.sh +2 -2
  12. package/.devcontainer/argocd/services-hook.sh +3 -3
  13. package/.devcontainer/argocd/services.sh +1 -1
  14. package/.devcontainer/catalog/app.sh +114 -116
  15. package/.devcontainer/catalog/catalog-watcher.sh +62 -62
  16. package/.devcontainer/catalog/mysql/app.conf +1 -1
  17. package/.devcontainer/catalog/mysql/install.sh +40 -40
  18. package/.devcontainer/catalog/mysql/mysql.sh +141 -141
  19. package/.devcontainer/catalog/mysql/volume.sh +39 -39
  20. package/.devcontainer/catalog.sh +112 -112
  21. package/.devcontainer/chart-direct.sh +1 -1
  22. package/.devcontainer/cluster.sh +216 -218
  23. package/.devcontainer/clusters.sh +41 -41
  24. package/.devcontainer/command-aliases.sh +17 -8
  25. package/.devcontainer/devzone +93 -1496
  26. package/.devcontainer/devzone-ai-guard.sh +76 -0
  27. package/.devcontainer/devzone-ai.sh +201 -0
  28. package/.devcontainer/devzone-cluster.sh +210 -0
  29. package/.devcontainer/devzone-modules.sh +126 -0
  30. package/.devcontainer/devzone-platform.sh +189 -0
  31. package/.devcontainer/devzone-repair.sh +94 -0
  32. package/.devcontainer/devzone-services.sh +241 -0
  33. package/.devcontainer/devzone-skill.sh +97 -0
  34. package/.devcontainer/devzone-status.sh +140 -0
  35. package/.devcontainer/devzone-version.sh +78 -0
  36. package/.devcontainer/git-identity.sh +28 -0
  37. package/.devcontainer/gitlab/chart.sh +2 -2
  38. package/.devcontainer/gitlab/gitlab.sh +81 -82
  39. package/.devcontainer/gitlab/installation.sh +109 -109
  40. package/.devcontainer/gitlab/secrets.sh +47 -47
  41. package/.devcontainer/gitlab/seed.sh +77 -77
  42. package/.devcontainer/gitlab/test-gitlab.sh +242 -243
  43. package/.devcontainer/help.sh +1 -1
  44. package/.devcontainer/isolation.sh +30 -30
  45. package/.devcontainer/kind-wrapper.sh +17 -17
  46. package/.devcontainer/kube-account.sh +112 -113
  47. package/.devcontainer/kube-config.sh +45 -46
  48. package/.devcontainer/{invite-kube.sh → kube-prompt.sh} +6 -6
  49. package/.devcontainer/kube-reachable.sh +40 -40
  50. package/.devcontainer/memory.sh +1 -1
  51. package/.devcontainer/metrics-server.sh +2 -2
  52. package/.devcontainer/opencode.jsonc +2 -2
  53. package/.devcontainer/packages.sh +136 -135
  54. package/.devcontainer/password.sh +1 -1
  55. package/.devcontainer/ports-auto.sh +152 -153
  56. package/.devcontainer/ports-json.sh +16 -15
  57. package/.devcontainer/ports.sh +126 -122
  58. package/.devcontainer/post-create.sh +52 -52
  59. package/.devcontainer/postgres/postgres.sh +174 -174
  60. package/.devcontainer/rename-legacy-files.sh +103 -0
  61. package/.devcontainer/services-admin.sh +3 -3
  62. package/.devcontainer/skills/devzone/SKILL.md +40 -41
  63. package/.devcontainer/startup.sh +48 -49
  64. package/.devcontainer/state-gitops.sh +1 -1
  65. package/.devcontainer/state-json.sh +36 -62
  66. package/.devcontainer/state.sh +2 -2
  67. package/.devcontainer/workspace-init.sh +16 -2
  68. package/Makefile +1 -1
  69. package/README.md +191 -195
  70. package/charts/devzone-workspace/templates/statefulset.yaml +1 -1
  71. package/manage/devzone +7 -11
  72. package/manage/scripts/argocd-workspace.sh +1 -1
  73. package/manage/scripts/{check-charts.sh → ci/check-charts.sh} +1 -1
  74. package/manage/scripts/{check-english.sh → ci/check-english.sh} +1 -1
  75. package/manage/scripts/{check-go-layout.sh → ci/check-go-layout.sh} +1 -1
  76. package/manage/scripts/{check-names.sh → ci/check-names.sh} +7 -6
  77. package/manage/scripts/{check-utf8-vars.sh → ci/check-utf8-vars.sh} +1 -1
  78. package/manage/scripts/{versions.sh → ci/versions.sh} +8 -8
  79. package/manage/scripts/create-cluster.sh +1 -1
  80. package/manage/scripts/create-mode.sh +11 -18
  81. package/manage/scripts/devzone-create.sh +7 -35
  82. package/manage/scripts/devzone-manifest.sh +1 -1
  83. package/manage/scripts/devzone-update.sh +12 -8
  84. package/manage/scripts/launch.sh +7 -48
  85. package/manage/scripts/ports-apps.sh +1 -1
  86. package/manage/scripts/ports-workspace.sh +7 -7
  87. package/manage/scripts/poste.sh +6 -7
  88. package/manage/scripts/uninstall.sh +8 -8
  89. package/manage/scripts/workspace-egress.sh +2 -2
  90. package/manage/scripts/workspace-update.sh +5 -2
  91. package/manage/scripts/workspace-wait.sh +2 -2
  92. package/manage/workspace.sh +2 -12
  93. package/package.json +1 -1
  94. package/.devcontainer/docker-relay.sh +0 -149
  95. package/.devcontainer/docker-without-host.sh +0 -12
  96. package/.devcontainer/git-identite.sh +0 -28
  97. package/manage/scripts/docker-workstation.sh +0 -73
  98. package/manage/scripts/migrate-revert.sh +0 -60
  99. package/manage/scripts/migrate.sh +0 -243
  100. /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
- [![npm](https://img.shields.io/npm/v/devzone)](https://www.npmjs.com/package/devzone) [![Licence GPL-3.0-only](https://img.shields.io/badge/licence-GPL--3.0--only-blue)](https://github.com/SimBienvenueHoulBoumi/devzone/blob/main/LICENSE)
3
+ [![npm](https://img.shields.io/npm/v/devzone)](https://www.npmjs.com/package/devzone) [![License GPL-3.0-only](https://img.shields.io/badge/licence-GPL--3.0--only-blue)](https://github.com/SimBienvenueHoulBoumi/devzone/blob/main/LICENSE)
4
4
 
5
- Ton poste de développement Linux, prêt en une commande, identique sur Mac, Windows et Linux.
5
+ Your Linux development workstation, ready in one command, identical on Mac, Windows and Linux.
6
6
 
7
- - Un Ubuntu identique pour toute l'équipe.
8
- - Les outils et services prêts : Java, Node, Python, Docker, Kubernetes, PostgreSQL, GitLab au besoin.
9
- - Les agents IA encadrés par repowarden.
10
- - Local et gratuit : rien n'est hébergé.
11
- - Une mise à jour avec `devzone update`, et des outils ajoutés qui survivent au rebuild (devzone packages).
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
- ## Pourquoi devzone ?
13
+ ## Why devzone?
14
14
 
15
- Les alternatives ont chacune leur limite :
15
+ Each alternative has its limits:
16
16
 
17
- - **WSL** : Windows seulement, et propre à chaque poste.
18
- - **Machine virtuelle** : lourde, lente à démarrer.
19
- - **Environnements hébergés** (Codespaces, Gitpod…) : cloud, quotas, réseau.
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 les évite : le même environnement sur chaque poste, sur ta machine.
21
+ devzone avoids them: the same environment on every workstation, on your machine.
22
22
 
23
- ## Limites
23
+ ## Limits
24
24
 
25
- - Pas de systemd : les services fournis par devzone démarrent avec devzone, pas avec `systemctl`.
26
- - Pas de bureau graphique : tout se passe en terminal ou dans VS Code.
27
- - Le socket Docker de l'hôte est partagé par défaut : c'est un compromis de sécurité assumé, qui donne un accès administrateur au Docker de l'hôte, y compris aux agents IA ([#291](https://github.com/SimBienvenueHoulBoumi/devzone/issues/291)). Pour le retirer : `devzone disable docker-hote`, puis `make rebuild` sur le poste. Sans ce socket, `docker` renvoie vers le workspace Kubernetes (`devzone workspace`, kubedock et BuildKit) ; les conteneurs et kind lancés sur le Docker du poste ne fonctionnent plus dans le conteneur, alors que la connexion au cluster Kubernetes de l'hôte et les modules restent utilisables. Pour le remettre : `devzone enable docker-hote`, puis `make rebuild`.
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
- ## Comment ça marche
29
+ ## How it works
31
30
 
32
- devzone prépare un environnement Ubuntu aux versions d'outils figées, et le lance à l'un de ces deux endroits :
31
+ devzone prepares an Ubuntu environment with pinned tool versions, and runs it in one of these two places:
33
32
 
34
- - **dans le cluster Kubernetes** de ta machine, par défaut, dès qu'un cluster répond à la création : le poste est un pod `devzone-workspace-0` (namespace `devzone-workspace`) ;
35
- - **dans un conteneur Docker** (mode « poste Docker », déprécié, retiré dans une version à venir) : seulement avec `--docker` à la création, ou pour un poste déjà créé ainsi.
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
- Dans les deux cas, rien n'est hébergé : tout tourne sur ta machine. `workspace/` est conservé entre les rebuilds, et les projets d'un poste Kubernetes restent dans le volume du pod. Le mode de chaque poste est écrit dans `.devzone.modules` (`workspace=kubernetes` ou `workspace=docker`) ; le détail est dans la [référence](manage/docs/reference.md#workspace-kubernetes).
36
+ ## Quick start
38
37
 
39
- ## Démarrage rapide
38
+ ### Prerequisites
40
39
 
41
- ### Prérequis
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
- - **Kubernetes (mode par défaut)** : un cluster Kubernetes 1.30 ou plus qui répond, avec `kubectl` et `helm` sur la machine. Sur Mac et Windows, le plus simple est le cluster de Docker Desktop : *Settings → Kubernetes → Enable Kubernetes*. devzone lui-même n'a pas besoin de Docker dans ce mode, mais le cluster de Docker Desktop s'arrête avec Docker Desktop (si le cluster ne répond pas, voir [Questions fréquentes](#questions-fréquentes)). Détails dans le [workspace Kubernetes](manage/docs/reference.md#workspace-kubernetes).
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
- Sous Windows : il est recommandé de cloner avec Git for Windows (les scripts restent en fins de ligne LF grâce à `.gitattributes`, et la commande npm trouve le `bash` qu'elle exige).
46
+ #### Minimum memory per module
49
47
 
50
- #### Mémoire minimale par module
48
+ Measurements from 16/11/2026.
51
49
 
52
- Mesures du 16/11/2026.
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
- | Cluster de base | ~4 Go | aucune |
57
- | GitLab | ~3,6 Go | 8 Go |
58
- | MySQL | ~0,5 Go | aucune |
59
- | Argo CD | ~0,6 Go | 1 Go |
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
- Sur Docker Desktop (kind), le contrôle compare le minimum à la mémoire d'un seul nœud, donc à la VM ; sur un cluster de vraies machines, à la somme des nœuds.
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
- - **Réglage de la RAM** :
64
- - **Mac** (Docker Desktop) : *Settings → Resources > Memory*. Autre méthode : modifier `MemoryMiB` dans le fichier `settings-store.json` de Docker Desktop (Docker totalement quitté sinon il réécrit la valeur).
65
- - **Windows** : fichier `%UserProfile%\.wslconfig` avec `[wsl2]` et `memory=<N>GB`, puis `wsl --shutdown`. WSL2 prend 50 % de la RAM par défaut.
66
- - **Linux** : rien à régler : pas de VM, la RAM de l'hôte sert.
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
- ### Lancer en une commande
64
+ ### Launch in one command
69
65
 
70
- Deux façons via npm. Sans installation, à chaque usage :
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
- Tu peux aussi l'installer une fois pour toutes :
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
- Avec un compte GitHub, l'option `--gitops <github|none|<url>>` renseigne le dépôt GitOps dès la création du dossier :
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
- Ou bien récupérer le code directement :
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
- Tu peux aussi utiliser VS Code : ouvre le dossier `mon-devzone` (ou `devzone`), puis *Dev Containers: Reopen in Container*.
99
+ You can also use VS Code: open the `mon-devzone` (or `devzone`) folder, then *Dev Containers: Reopen in Container*.
104
100
 
105
- À chaque démarrage, un récapitulatif t'indique ce qui est prêt ou ce qu'il te reste à faire. Ses libellés sont en anglais, et `devzone` le réaffiche à la demande. Extrait, sans identité git configurée :
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
- Une ligne `○ GitHub … optional` remplace `✔ GitHub connecté` tant que `gh` n'est pas connecté. La liste complète des commandes est dans `devzone --help`.
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
- Le premier lancement prend 4 à 5 min mesurées, plus le téléchargement des images de base sur une machine neuve.
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
- ### Un cluster à la création
118
+ ### A cluster at creation
123
119
 
124
- À la création, devzone a besoin d'un cluster Kubernetes qui répond.
120
+ At creation, devzone needs a Kubernetes cluster that answers.
125
121
 
126
122
  ```text
127
123
  devzone mon-devzone
128
124
  │
129
- ├─ cluster qui répond ──▶ workspace dans le cluster (Kubernetes)
130
- │ make shell ouvre le pod ; pas de migration
125
+ ├─ cluster answers ─────▶ workspace in the cluster (Kubernetes)
126
+ │ make shell opens the pod
131
127
  │
132
- └─ sinon ───────────────▶ rien n'est créé : devzone liste les moyens
133
- d'avoir un cluster, puis tu relances
128
+ └─ otherwise ───────────▶ nothing is created: devzone lists the ways
129
+ to get a cluster, then you rerun
134
130
  ```
135
131
 
136
- Sans cluster, dans un terminal, devzone propose de choisir un cluster distant (un contexte de ton kubeconfig, dont tu retapes le nom pour confirmer) ou de créer un minikube ; sans terminal, il s'arrête et affiche des commandes à copier (il ne les exécute jamais, et aucun identifiant cloud ne passe par lui) : un cluster distant (`aws eks update-kubeconfig`, `gcloud container clusters get-credentials`, `az aks get-credentials`, qui le déclarent dans ton kubeconfig ; fais-en le contexte courant de kubectl), ou un cluster local (Docker Desktop : *Settings → Kubernetes → Enable Kubernetes*, ou `minikube start -p devzone`). `devzone mon-devzone --docker` crée encore le poste Docker, **déprécié** : il sera retiré, et `devzone workspace migrate` le fait passer dans le cluster. Détails dans [manage/docs/reference.md](manage/docs/reference.md#création-directe-dans-le-cluster).
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
- ### Vérifier que tout fonctionne
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
- Avec un cluster Kubernetes actif : `kubectl get nodes`.
143
+ With an active Kubernetes cluster: `kubectl get nodes`.
148
144
 
149
- **Étape facultative** : `gh auth login -s workflow` pour activer GitHub (push, PR et tickets repowarden).
145
+ **Optional step**: `gh auth login -s workflow` to enable GitHub (push, PR and repowarden tickets).
150
146
 
151
- ## Ton premier projet
147
+ ## Your first project
152
148
 
153
- Tes projets vont dans `workspace/` (conservé sur ta machine, même après `make down` ou `make rebuild`).
149
+ Your projects go into `workspace/` (kept on your machine, even after `make down` or `make rebuild`).
154
150
 
155
- Exemple :
151
+ Example:
156
152
  ```bash
157
153
  cd workspace
158
154
  git clone https://github.com/ton-compte/ton-projet.git
159
- # ou
155
+ # or
160
156
  mkdir mon-projet && cd mon-projet && git init -b main
161
157
  ```
162
158
 
163
- Pour en savoir plus : [Mettre en route un projet](https://github.com/SimBienvenueHoulBoumi/devzone/blob/main/manage/docs/reference.md#mettre-en-route-un-projet).
159
+ To learn more: [Starting a project](https://github.com/SimBienvenueHoulBoumi/devzone/blob/main/manage/docs/reference.md#starting-a-project).
164
160
 
165
- ## Ce que contient devzone
161
+ ## What devzone contains
166
162
 
167
- | Domaine | Outils |
163
+ | Area | Tools |
168
164
  |---|---|
169
- | Langages | Java 21 + Maven + Gradle, Node LTS + pnpm, Python 3.12 (apt) + uv |
170
- | Conteneurs, Kubernetes | Docker de l'hôte (socket partagé), kubectl, helm, k9s, kind ; connexion au cluster de l'hôte (module `kubernetes`) ; Testcontainers (`TESTCONTAINERS_HOST_OVERRIDE`) ; montages (`$LOCAL_WORKSPACE_FOLDER`) |
171
- | GitHub (ou GitLab), qualité | gh, ou glab connecté à une instance GitLab (`devzone platform gitlab` dans le conteneur, [manage/docs/reference.md](manage/docs/reference.md#plateforme--github-ou-gitlab)) ; repowarden (hooks git globaux), shellcheck, bats, actionlint, gitleaks, ruff, vulture, pytest |
172
- | Assistants IA | Claude Code, opencode (module `ia`, désactivé par défaut) |
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
- ## Installer un outil qui reste
170
+ ## Installing a tool that stays
175
171
 
176
- Un outil mis à la main (`sudo apt install tree`) ne survit pas à un `make rebuild` : l'image est reconstruite de zéro. Pour un outil qui doit rester, `devzone packages` garde la liste des paquets à réinstaller :
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` affiche la liste : ✔ paquets installés, ○ paquets à installer ;
186
- - `devzone packages add <nom>…` valide chaque paquet (apt-cache), installe puis l'ajoute à la liste ;
187
- - `devzone packages remove <nom>` retire la liste et désinstalle ;
188
- - `devzone packages apply` installe les paquets manquants après un rebuild.
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
- La liste vit dans `.devzone.paquets` à la racine du dossier devzone, hors du dépôt. Un paquet en échec est signalé dans le récapitulatif (⚠ paquets : …) ; `devzone packages apply` peut alors être relancé.
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
- ## Au quotidien
188
+ ## Day to day
193
189
 
194
- | Action | VS Code (`Cmd+Shift+P`) | `make` | Sans `make` (Windows) |
190
+ | Action | VS Code (`Cmd+Shift+P`) | `make` | Without `make` (Windows) |
195
191
  |---|---|---|---|
196
- | Lancer | *Dev Containers: Reopen in Container* | `make up` | `npx @devcontainers/cli up --workspace-folder .` |
197
- | Ouvrir un shell | terminal de VS Code | `make shell` | `npx @devcontainers/cli exec --workspace-folder . bash` |
198
- | Arrêter | *Remote: Close Remote Connection* (le conteneur s'arrête avec la fenêtre) | `make stop` | — |
199
- | Supprimer le conteneur | — | `make down` | — |
200
- | Reconstruire (après une modification de `.devcontainer/`) | *Dev Containers: Rebuild Container* | `make rebuild` | `npx @devcontainers/cli up --workspace-folder . --remove-existing-container` |
201
- | État | — | `make status` | — |
202
- | **Désinstaller** (tout ce que devzone a créé, après confirmation) | — | `make uninstall` | `npx devzone uninstall` |
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
- Dans le mode Kubernetes (poste créé alors que le cluster répondait, ou après `devzone workspace migrate`), le même tableau s'applique au pod `devzone-workspace-0` : `make up`, `make shell` et `make stop` le pilotent, et `make rebuild` est refusé, car rien n'est à reconstruire sur la machine. `devzone workspace revert` rend le poste Docker (déprécié : un avertissement s'affiche, retrait prévu). Les services GitLab, PostgreSQL et Argo CD s'installent depuis le poste : `devzone workspace services enable postgres` (voir [la référence](manage/docs/reference.md#services-de-devzone-dans-le-workspace-kubernetes)). Tu peux aussi y développer : `devzone workspace clone <url>` fait un clone de travail dans le pod, `devzone ticket <n>` y crée le worktree d'un ticket et `devzone agent` y lance opencode sans copie ([développer dans le pod](manage/docs/reference.md#développer-devzone-et-repowarden-dans-le-pod)). Argo CD y est installé d'office et tient les déploiements : interface sur https://localhost:8443 (mot de passe `admin` dans `.password`), dépôt GitOps `<login>/devzone-argocd` créé sur ton GitHub, projets déclarés dans `.argocd.conf` (`devzone workspace argocd app add <dépôt>`) ; voir [Argo CD dans le workspace Kubernetes](manage/docs/reference.md#argo-cd-dans-le-workspace-kubernetes).
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
- Dans le conteneur, `devzone --version` affiche la version de l'image du workspace, et `devzone --help` liste toutes les commandes. Extrait :
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
- ### Mettre à jour devzone
210
+ ### Updating devzone
215
211
 
216
- À la création, le dossier garde sa version dans `.devzone.version` : la version, puis l'empreinte sha256 de chaque fichier copié depuis le paquet. Pour passer un dossier existant à la version du paquet :
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
- Pour la dernière version publiée, sans installation globale :
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
- La commande affiche la version du dossier et celle du paquet, et ne fait rien si elles sont égales. Sinon, elle sauvegarde dans `.devzone.sauvegarde/<date>/` les fichiers remplacés ou supprimés, liste les fichiers modifiés localement et demande confirmation (`--yes` pour un script ; sans terminal, `--yes` est nécessaire), remplace les fichiers du paquet, retire les anciennes arborescences (`core/`, `scripts/`), complète `.gitignore` sans l'écraser, puis propose `make rebuild`. `--sans-reconstruire` saute cette proposition ; sans terminal, la reconstruction n'est jamais lancée.
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.paquets`, `.password`, `.app`, `.devzone.log` et les volumes Docker ne sont jamais touchés.
228
+ `workspace/`, `.devzone.modules`, `.devzone.packages`, `.password`, `.app`, `.devzone.log` and the Docker volumes are never touched.
233
229
 
234
- La mise à jour ne change jamais le mode du poste ; sur un poste Docker avec Kubernetes joignable, elle propose `devzone workspace migrate`.
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
- Le workspace Kubernetes se met à jour à part : `devzone workspace update` le fait passer à la dernière release stable (ou `--version X.Y.Z`), image, charts et Argo CD au même tag. **Le pod `devzone-workspace-0` est recréé** : les fenêtres VS Code attachées au pod se coupent. L'image est vérifiée sur ghcr.io avant toute écriture, et rien ne change si elle n'existe pas encore. Détails dans la [référence](manage/docs/reference.md#mettre-à-jour-le-workspace).
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
- Dans le conteneur, le récapitulatif `devzone` signale une version publiée plus récente (vérification npm au plus une fois par jour, sans bloquer hors ligne) : `○ devzone X.Y.Z disponible : sur le poste, devzone update`.
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 à la création** : `--kubernetes` (workspace dans le cluster, refusé sans cluster) ou `--docker` (poste Docker déprécié, sans contrôle du cluster). Sans option, le cluster doit répondre, sinon rien n'est créé (voir [Un cluster à la création](#un-cluster-à-la-création)).
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
- **Module `ia`** : active Claude Code et opencode (versions figées), avec le garde-fou repowarden qui les arrête avant de modifier `main` ou `develop` ou de commiter sans `repowarden cc` (voir [manage/docs/reference.md](manage/docs/reference.md#garde-fou-des-assistants-ia)). Pour l'activer : `devzone enable ia`. Ils sont désinstallés quand le module est désactivé, mais tes connexions restent dans leurs volumes. Le module pose aussi un garde-fou qui arrête les commandes `docker` des agents : devzone est Kubernetes d'abord, seuls les pods sont des conteneurs (`kubectl`, ou un pod jetable, à la place).
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
- **Modèles de ton ordinateur** : devzone n'héberge aucun modèle. Si Ollama tourne sur ta machine, `devzone enable ia` détecte ses modèles et les branche à opencode (rien n'est installé ni téléchargé). `devzone ai` les liste avec le modèle par défaut, `devzone ai check` dit si chacun est à jour sans rien télécharger, et `devzone ai rapport` détaille le modèle retenu et pourquoi (la variable `DEVZONE_HOST_MODEL`, une mesure, ou la règle « un modèle de code d'abord, puis le plus petit »). Détails dans [manage/docs/reference.md](manage/docs/reference.md#configuration-dopencode). Le module `llm` (modèle hébergé dans le cluster) a été retiré : devzone n'héberge aucun modèle.
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
- **Module `kubernetes`** : active à chaque démarrage la connexion au cluster de l'hôte et l'installation de metrics-server sur les clusters locaux (pour voir le CPU et la RAM dans k9s). Pour l'activer : `devzone enable kubernetes`. Sans ce module, kubectl, helm, k9s et kind restent installés.
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
- **Plateforme GitHub ou GitLab** : GitHub par défaut (nouvelle architecture). Pour servir une équipe sur GitLab : `devzone platform gitlab --url URL` (ou sans `--url` quand le module `gitlab` est activé, pour l'instance de test) : glab est installé (version figée, somme vérifiée) et connecté à l'instance, et `devzone` l'affiche à la place des contrôles `gh`. `devzone platform github` revient en arrière (glab retiré). GitLab est accessible directement depuis le poste sans relais temporaire. Détails dans [manage/docs/reference.md](manage/docs/reference.md#plateforme--github-ou-gitlab).
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
- **Module `postgres`** : un PostgreSQL partagé, une base par projet (voir [Accéder à PostgreSQL](#accéder-à-postgresql)). Pour l'activer : `devzone enable postgres`.
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
- **Module `argocd`** : Argo CD sur le cluster de devzone, interface sur https://127.0.0.1:8443 dans le conteneur (voir [Argo CD](manage/docs/reference.md#argo-cd)). Pour l'activer : `devzone enable argocd`.
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
- **Option `devzone agent --pod`** : lance une session agent dans un pod éphémère isolé (ticket #222). Le pod est créé avec des ressources limitées (2 CPU, 4 Gi mémoire), des montages restreints du workspace et de l'état, et une affinité obligatoire vers le pod workspace. Isole : worktree du ticket au même chemin que dans le workspace, .git du dépôt, et sous-dossiers d'état (.config/opencode, .local/share/opencode, .local/state/oc-lancer, .local/npm en lecture seule). N'isole pas : le réseau (non filtré, c'est #220), le kubeconfig de l'hôte, `~/.config/gh`, `~/.claude`, les autres worktrees, et, comme le `.git` du dépôt est monté, les références git des autres branches y restent lisibles et modifiables. Sans `--pod`, le comportement `devzone agent` actuel est strictement inchangé.
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
- Ces modules sont désactivés par défaut, activables à la demande depuis le conteneur (sans rebuild), et leur choix est conservé d'un démarrage à l'autre.
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
- La commande `devzone` s'écrit en anglais, sous-commandes et options comprises (`enable`, `disable`, `platform`, `packages`, `update`, `uninstall`, `status`, `use` ; `postgres create`, `packages add`, `gitlab new-password`, `port --close`, `cluster --yes`). Les anciens noms français restent acceptés et écrivent un avertissement ; la table complète est dans [Anciens noms des commandes](manage/docs/reference.md#anciens-noms-des-commandes).
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
- ## Où sont mes identifiants ?
258
+ ## Where are my credentials?
263
259
 
264
- Les comptes créés par devzone sont regroupés dans `.password`, à la racine de devzone (à côté de `.devzone.modules`). Une ligne par compte, colonnes séparées par des tabulations :
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
- Le fichier est lisible par toi seul (600) et ignoré par git : ne le copie ni ne le commit jamais. Il est régénéré à chaque création, suppression ou changement de compte (modules `gitlab`, `postgres` et `argocd`, seed GitLab, démarrage) :
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 # régénère le fichier et affiche seulement son chemin
278
- devzone postgres create <projet> # création, ou nouveau mot de passe avec --new-password
279
- devzone postgres delete <projet> # suppression du compte et de sa ligne
280
- devzone gitlab new-password [root|dev] # mot de passe aléatoire (root ou dev) régénéré
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
- Les fichiers des modules restent la source : `workspace/.postgres/<projet>.env`, `workspace/.postgres/admin-password`, `workspace/.gitlab/root-password`, `workspace/.gitlab/dev-password` et `workspace/.argocd/admin.env`.
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
- Le secret Rails de GitLab est conservé dans `workspace/.gitlab/rails-secret.yaml` (600) et réappliqué à une réinstallation ; à défaut, si le secret a été perdu, le récapitulatif avertit : « GitLab réinstallé : si le navigateur affiche 422, supprimez les données de site de gitlab.localhost ».
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
- ## Accéder à PostgreSQL
283
+ ## Connecting to PostgreSQL
288
284
 
289
- Le module `postgres` installe un PostgreSQL 16 partagé sur le cluster de devzone : une base et un utilisateur par projet. Toutes les commandes se lancent dans le conteneur (`make shell`).
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 # la première fois : choix du cluster (kind dédié ou cluster de l'hôte)
293
- devzone postgres create monprojet # base et utilisateur « 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
- Les identifiants sont écrits dans `workspace/.postgres/monprojet.env` (lisible par toi seul, jamais commité) :
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 est joignable sur `127.0.0.1:5432` depuis le conteneur. Exemple Spring Boot (`application.yaml` d'un projet rangé dans `workspace/<dossier>/<projet>/`) :
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
- Autres commandes : `devzone postgres list`, `devzone postgres psql monprojet` (console), `devzone postgres delete monprojet`, `devzone cluster [CTX]` (voir ou changer de cluster). Détails dans [manage/docs/reference.md](manage/docs/reference.md#postgresql).
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
- ### Voir le contenu de la base
317
+ ### Viewing the database contents
322
318
 
323
- Dans le conteneur :
319
+ In the container:
324
320
 
325
321
  ```sh
326
- devzone postgres list # les bases et leur propriétaire
327
- devzone postgres psql monprojet # console SQL connectée à la base « monprojet », avec son utilisateur
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
- Dans la console (`\q` pour sortir) :
326
+ In the console (`\q` to exit):
331
327
 
332
- | Commande | Affiche |
328
+ | Command | Shows |
333
329
  |---|---|
334
- | `\conninfo` | la base et l'utilisateur de la connexion |
335
- | `\dt` | les tables de la base |
336
- | `\d task` | la structure d'une table : colonnes, types, index, clés |
337
- | `\dn` | les schémas |
338
- | `SELECT * FROM task LIMIT 10;` | les premières lignes d'une table |
339
- | `SELECT * FROM flyway_schema_history;` | les migrations Flyway appliquées (si le projet utilise Flyway) |
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`, sans nom de projet, ouvre la console en superutilisateur `postgres` : toutes les bases (`\l`), tous les utilisateurs (`\du`). Réserve-la à l'administration, une erreur y touche les bases de tous les projets.
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
- ### Se connecter depuis le poste (IntelliJ, DBeaver, psql)
339
+ ### Connecting from the workstation (IntelliJ, DBeaver, psql)
344
340
 
345
- Le relais de devzone rend PostgreSQL joignable **dans le conteneur** seulement (en attendant [#292](https://github.com/SimBienvenueHoulBoumi/devzone/issues/292)). Pour un client installé sur le poste, ouvre un tunnel dans un terminal **du poste** (Terminal du Mac, pas celui du conteneur), et laisse-le ouvert :
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` : le Kubernetes de l'hôte, celui de devzone par défaut ; `15432:5432` si un PostgreSQL local occupe déjà le port 5432 du poste.)
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
- Puis, dans le client, une connexion PostgreSQL : hôte `localhost`, port `5432`, base, utilisateur et mot de passe lus dans `workspace/.postgres/monprojet.env` (`DB_NAME`, `DB_USER`, `DB_PASSWORD`). Dans IntelliJ : *View → Tool Windows → Database → + → Data Source → PostgreSQL*, puis *Test Connection* (fenêtre Database : IntelliJ Ultimate ; plugin *Database Navigator* sinon).
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
- « Connection refused » : le tunnel ne tourne pas, ou il a été lancé dans le conteneur. Une base recréée (`devzone postgres delete` puis `create`, ou `create --new-password`) a un nouveau mot de passe : à reporter dans le client.
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
- ### Droits : un utilisateur par base
353
+ ### Rights: one user per database
358
354
 
359
- L'utilisateur d'un projet possède **sa** base (il y crée tables, index, données) et rien d'autre : il ne peut ni créer une base, ni se connecter à celle d'un autre projet. D'où, dans un client, `[42501] ERROR: permission denied to create database`. C'est voulu (les projets ne se voient pas). Pour une nouvelle base : `devzone postgres create <projet>`, qui donne son propre utilisateur et son fichier `.env`.
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
- > Le module `gitlab` a aussi son propre PostgreSQL (`gitlab-postgresql`) : il appartient à GitLab, n'y mets pas tes bases.
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
- ## Voir mon application dans le navigateur
359
+ ## See my application in the browser
364
360
 
365
- Sur le poste Kubernetes, `devzone workspace start` lance un veilleur de ports : chaque port TCP ≥ 1024 qui écoute dans le pod est relayé sur `127.0.0.1` du poste, au même numéro, par `kubectl port-forward`. Un serveur lancé dans le pod (`npm run dev`, port 5173) répond donc sur `http://localhost:5173`, sans commande. Les services activés (PostgreSQL, MySQL, Argo CD) sont relayés aussi, sur leur port habituel. Les Services des applications déployées dans le cluster sont relayés de la même façon, chacun sur un port local (80 → 8080 ; un port déjà pris ailleurs devient un autre port) : `devzone workspace ports status` affiche leur URL `http://127.0.0.1:<port>`. Un Service peut être exclu avec l'annotation `devzone.io/relay: "false"`. Le veilleur se pilote avec `devzone workspace ports start|stop|status` ; détails dans la [référence](manage/docs/reference.md#applications-et-services-sur-localhost-du-poste).
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
- Sur le poste Docker, une application lancée **dans** le conteneur (par exemple un Spring Boot avec `./gradlew bootRun` sur le port 8080) n'est pas joignable depuis le poste : le conteneur devzone ne publie aucun port. Dès qu'elle écoute dans le conteneur, le **veilleur de ports automatiques** (`.devcontainer/ports-auto.sh`) pose un relais `alpine/socat` (version figée) sur le Docker de l'hôte, de `127.0.0.1:<port>` du poste vers le port du conteneur : `http://localhost:<port>` **sans commande**. Le relais disparaît quand l'application s'arrête.
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 # liste : relais manuels et automatiques, ● actif ou ○ arrêté
371
- devzone port auto off # coupe le veilleur : plus de relais automatique
372
- devzone port --close <n> # retire un relais manuel et son port de l'état
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>` ouvre aussi un relais manuel : même mécanisme côté poste, conteneur `alpine/socat`, nom `devzone-<instance>-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
- Depuis le poste : `http://localhost:8080`. Le relais manuel est recréé automatiquement au démarrage du conteneur, vers l'adresse actuelle du conteneur ; il est retiré par `make uninstall` (étiquette `devzone.instance`). Le relais automatique disparaît avec l'application.
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 écoute sur `0.0.0.0` par défaut : ne fixe pas `server.address` à `127.0.0.1`, sinon le relais ne peut pas joindre l'application. Un port déjà pris sur le poste, un port invalide ou un Docker de l'hôte injoignable sont refusés avec un code non nul. Détails dans [manage/docs/reference.md](manage/docs/reference.md#ports-vers-le-poste).
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
- ## Questions fréquentes
377
+ ## Frequently asked questions
382
378
 
383
- - **Docker absent ou arrêté** : `npx devzone`, `make up`, `make rebuild` et `make uninstall` vérifient Docker avant tout et disent quoi faire : l'installer (Docker Desktop, ou Docker Engine sous Linux), démarrer Docker Desktop, ou, sous Linux, ajouter ton compte au groupe `docker` (`sudo usermod -aG docker $USER`, puis une nouvelle session). Avec `npx devzone mon-devzone`, le dossier est créé quand même : une fois Docker démarré, `cd mon-devzone && make shell`.
384
- - **Accès au socket Docker de l'hôte** : le socket Docker de la machine hôte est monté dans le conteneur. Cela offre un accès administrateur au Docker de l'hôte, y compris pour les agents IA. C'est un compromis de sécurité assumé documenté dans la section Limites. Pour restreindre l'accès, utilisez les mécanismes propres à Docker Desktop/Linux.
385
- - **Le premier lancement est long** : c'est normal (construction de l'image, téléchargement des images de base). Il prend 4 à 5 min mesurées, plus le téléchargement des images de base sur une machine neuve.
386
- - **`make` est absent sous Windows** : tu peux utiliser `npx @devcontainers/cli` (voir le tableau « Au quotidien ») ou Git Bash. Les scripts sont compatibles (fins de ligne LF).
387
- - **Le cluster Kubernetes ne répond pas** : devzone ne crée jamais de cluster. À la création, sans cluster qui répond (en 5 s), rien n'est créé : la commande échoue (code 1), dit pourquoi et liste les moyens d'avoir un cluster (voir [Un cluster à la création](#un-cluster-à-la-création)) :
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
- Seul `--docker` crée encore un poste Docker, déprécié. Ensuite, `devzone workspace start` (donc `make up` et `make shell`) vérifie le cluster en premier et s'arrête sans rien modifier. Le message dit la cause :
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 arrêté** : `✖ Docker Desktop is stopped: the Kubernetes cluster of this machine runs inside it. Start Docker Desktop, then: make shell`. Lance Docker Desktop, puis `make shell`. Pour qu'il démarre à chaque connexion : *Settings → General → Start Docker Desktop when you sign in*.
396
- - **Docker répond, pas le cluster** : `✖ Kubernetes cluster <contexte> unreachable (<serveur>): enable Kubernetes in Docker Desktop (Settings → Kubernetes) or check kubectl config get-contexts`. Active Kubernetes dans Docker Desktop (*Settings → Kubernetes → Enable Kubernetes*).
397
- - **Autre cluster** : `✖ Kubernetes cluster <contexte> unreachable (<serveur>)`, suivi de `Check the contexts: kubectl config get-contexts`. Vérifie le contexte choisi, ou change-le avec `devzone use CTX`.
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
- Détails dans la [référence](manage/docs/reference.md#le-cluster-ne-répond-pas).
400
- - **Problème d'identité git pour commiter** : règle-la une seule fois. Avec GitHub : `gh auth login -s workflow` (l'identité est déduite automatiquement). Sans GitHub : `git config --file ~/.config/git/config user.name "<nom>"` et `git config --file ~/.config/git/config user.email "<email>"`.
401
- - **`make up` semble bloqué** : il affiche ses étapes et un signe de vie au moins toutes les 30 s ; le journal complet est dans `.devzone.log`.
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
- ## Changer de cluster
399
+ ## Changing cluster
404
400
 
405
401
  ```sh
406
- devzone clusters # vue : contextes, type, état, namespace
407
- devzone use CTX [-n NS] # bascule le cluster de travail de kubectl
408
- devzone use -n NS # change seulement le namespace du cluster courant
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
- L'invite du shell affiche `⎈ ctx/ns` (cyan si local, rouge gras avec distant sinon). Un rebuild repart sur le cluster de l'hôte : le choix de kubectl est écrit dans `~/.kube/config`, qui n'est pas dans un volume.
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
- ## Désinstaller
409
+ ## Uninstalling
414
410
 
415
411
  ```bash
416
412
  make uninstall
417
413
  ```
418
414
 
419
- Cette commande supprime le conteneur, l'image `vsc-devzone-…`, les volumes `devzone-*`, les events du Docker de l'hôte et les clusters kind créés sur l'hôte, les namespaces `devzone-postgres` et les étiquettes `app.kubernetes.io/managed-by=devzone` sur les clusters de l'hôte, ainsi que les éventuels metrics-server installés par devzone. Les ressources sont filtrées par l'étiquette `devzone.instance` pour ne cibler que l'instance courante. Elle **ne touche jamais** à `workspace/` (tes projets). Pour garder tes connexions (GitHub, git, Claude Code, opencode et modules) : `make uninstall KEEP=logins` (ancien `GARDER=connexions` accepté).
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
- Avec la commande installée globalement (`npm install -g devzone`), tu peux aussi lancer, dans le dossier du devzone :
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
- Même effet que `make uninstall`. Ensuite seulement, pour retirer la commande de ta machine :
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
- Cette commande retire seulement la commande `devzone` de ta machine ; elle ne supprime ni conteneur, ni volume, ni dossier.
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
- ## Noms retirés
431
+ ## Removed names
436
432
 
437
- Les commandes, sous-commandes et options s'écrivent en anglais. Les anciens noms français sont retirés : devzone les refuse, affiche le nouveau nom et ne fait rien.
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
- La table complète (commandes, sous-commandes, options) est dans [la référence](manage/docs/reference.md#noms-retirés).
439
+ The full table (commands, subcommands, options) is in [the reference](manage/docs/reference.md#removed-names).
444
440
 
445
- ## Pour aller plus loin
441
+ ## Going further
446
442
 
447
- - [Référence détaillée](https://github.com/SimBienvenueHoulBoumi/devzone/blob/main/manage/docs/reference.md)
448
- - [Contribuer](https://github.com/SimBienvenueHoulBoumi/devzone/blob/main/manage/docs/contribuer.md) : tests, processus de livraison et organisation
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
- ## Licence
446
+ ## License
451
447
 
452
- devzone est un logiciel libre, distribué sous la [GNU General Public License version 3](https://github.com/SimBienvenueHoulBoumi/devzone/blob/main/LICENSE).
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
- ### Mandataire de sortie des sessions d’agent (désactivé par défaut)
451
+ ### Egress proxy for agent sessions (disabled by default)
456
452
 
457
- Limite le réseau sortant des sessions lancées avec `devzone agent --pod` via un mandataire HTTP(S) (Squid) dans le namespace du workspace. Tout est désactivé par défaut : sans activation, le rendu du chart et le manifeste des pods de session restent identiques.
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** : `observation` (le mandataire accepte tout et journalise, aucune coupure, pour construire la liste) ; `strict` (seule la liste de domaines est autorisée, et une NetworkPolicy limite la sortie des pods de session au mandataire et au DNS).
460
- - **Activer** (Helm) : `egressProxy.enabled=true` et `egressProxy.mode=observation` ou `strict` (liste : `egressProxy.allowedDomains`, par défaut `.opencode.ai`, `.npmjs.org`, `.github.com`).
461
- - **Lire les contacts** : `kubectl logs deploy/devzone-workspace-egress-proxy -c access-log -n <namespace>`.
462
- - **Garde (strict)** : une fenêtre de 1 à 2 s existe au démarrage avant que la restriction soit programmée ; un conteneur d’initialisation attend que l’accès direct soit fermé (20 essais, 1 s) et refuse la session si la restriction ne devient jamais effective.
463
- - **Limites** : le workspace lui-même reste ouvert ; seules les sessions `devzone agent --pod` sont filtrées ; les outils qui ignorent `HTTPS_PROXY` sont bloqués en mode strict.
464
- - **Commandes** (#633) : `devzone workspace egress observation|strict|off`, `egress status` (domaines contactés et leur état), `egress allow|deny <domaine>`. Le réglage est gardé dans `.devzone.modules` et rejoué à chaque `workspace start` et `workspace update` ; le pod n'est pas recréé.
465
- - **Parcours** : `devzone workspace egress observation`, puis `egress status` pour voir les domaines contactés, `egress allow <domaine>` pour ceux qui manquent, et enfin `devzone workspace egress strict`.
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`.