diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index ad3a463..f9b65a6 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -38,6 +38,17 @@ jobs:
/tmp/wheel-check/bin/pip install dist/*.whl
cd /tmp && /tmp/wheel-check/bin/python -c "import odoo_instance_manager, instance_manager.workflows.manage, instance_manager.support, instance_manager.neutralise"
+ - name: Verify the generated data commands (stubs + a throwaway PostgreSQL)
+ run: python tools/verify_data_safety.py
+
+ - name: Verify secrets stay out of process arguments, previews and errors
+ run: python tools/verify_secrets.py
+
+ - name: Verify nginx and fail2ban accept the generated configuration
+ run: |
+ sudo apt-get update -qq
+ python tools/verify_ops_configs.py
+
- name: Set up Node
uses: actions/setup-node@v6
with:
diff --git a/CHANGELOG.md b/CHANGELOG.md
index dd3f210..3254ebe 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -19,6 +19,12 @@ All notable changes to this project are documented here. The format is based on
### Changed
+- **Interface text is English throughout**, with Spanish only through the catalog: about twenty Spanish labels
+ left in the code (report headers, certificate states, prompts) are now English keys. The catalog is written
+ English → Spanish, the direction it is read; written the other way and inverted, it silently merged English
+ strings whose Spanish matched. A test fails when a UI string has no Spanish entry.
+- CI also runs `tools/verify_data_safety.py`, `tools/verify_secrets.py` and `tools/verify_ops_configs.py`, and
+ `pytest` works without installing the package (`pythonpath`).
- *Install Odoo instance + PostgreSQL* no longer opens PostgreSQL to the network (`listen_addresses`, `pg_hba`).
- The systemd unit follows Odoo's own (`KillMode=mixed`) and starts after a local PostgreSQL.
- apt installs run unattended and wait for the dpkg lock.
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 14ce644..c9e9f9a 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -12,7 +12,7 @@ are held to a careful, spec-first standard.
confirmations, and identifier validation are load-bearing (see
[`docs/decisions/0001-plan-preview-apply-safety.md`](docs/decisions/0001-plan-preview-apply-safety.md)).
- **Keep planners pure.** Functions in `planners.py` build `list[Command]` and must not execute anything or
- perform I/O. Execution lives in `system.py`; orchestration in `workflows.py`.
+ perform I/O. Execution lives in `system.py`; orchestration in the `workflows/` package.
- **Validate and quote every operator-supplied value** that reaches a shell command or SQL string. Use the
existing `_quote`/`shlex.quote` and the identifier validators — do not interpolate raw input.
@@ -22,11 +22,13 @@ are held to a careful, spec-first standard.
|------|------|
| `odoo_instance_manager.py` | Entry point, root check, main menu |
| `instance_manager/models.py` | `InstanceConfig`, identifier validation, path derivation |
+| `instance_manager/support.py` | Per-version facts: Python, setuptools, PostgreSQL floor, cores, pinned uv |
+| `instance_manager/neutralise.py` | Neutralisation rules for copied databases (pure SQL builders) |
| `instance_manager/planners.py` | Pure command-plan builders (config/systemd/nginx/fail2ban) |
| `instance_manager/system.py` | Execution primitives, existence checks, preview/apply |
| `instance_manager/prompts.py` | Interactive input, file picker, phrase confirmation |
| `instance_manager/ui.py` | Terminal rendering |
-| `instance_manager/workflows.py` | Menus, plan assembly, discovery/audit |
+| `instance_manager/workflows/` | Menus, plan assembly, discovery/audit — one module per capability over `common.py` |
| `openspec/specs/` | Capability specifications (the source of truth for behavior) |
| `docs/` | User- and operator-facing documentation |
@@ -53,12 +55,13 @@ python3 tools/verify_ops_configs.py # nginx -t and fail2ban on the generated
python3 tools/verify_secrets.py # secrets in no process argument, preview or error
```
-`tools/verify_data_safety.py` is not part of CI: it executes the generated scheduled-backup script, the
+`tools/verify_data_safety.py`, `tools/verify_secrets.py` and `tools/verify_ops_configs.py` also run in CI.
+`tools/verify_data_safety.py` executes the generated scheduled-backup script, the
retention prune and the delete step against stub binaries, and the template copy, forced drop and purge
discovery against a PostgreSQL cluster of its own (it needs `initdb` and refuses to run as root). Run it after
changing any of those.
-`tools/verify_install_runtime.py` is not part of CI either: it downloads the pinned uv (and refuses a wrong
+`tools/verify_install_runtime.py` is not part of CI: it downloads the pinned uv (and refuses a wrong
checksum), installs the interpreter the matrix picks, builds a real venv for each Odoo checkout you pass and
starts `odoo-bin --version`; for Odoo <= 16 it also shows the unpinned setuptools breaks it. It needs network
access and the build dependencies, and writes only to a temp directory. Run it after changing
diff --git a/docs/architecture.md b/docs/architecture.md
index d6d7984..071f393 100644
--- a/docs/architecture.md
+++ b/docs/architecture.md
@@ -19,7 +19,7 @@ passes an operator gate.
```mermaid
flowchart TD
entry["odoo_instance_manager.py
entry point · root check · main menu"]
- workflows["workflows.py
menus · plan assembly · discovery · audit"]
+ workflows["workflows/
menus · plan assembly · discovery · audit"]
subgraph inputs["Input & presentation"]
prompts["prompts.py
ask/choose · file picker · phrase confirm"]
ui["ui.py
tables · styling"]
@@ -43,8 +43,10 @@ flowchart TD
| Layer | Module | Responsibility | Side effects |
|-------|--------|----------------|--------------|
| Entry | `odoo_instance_manager.py` | Enforce root, configure UTF-8, main menu loop | Reads UID, prints |
-| Orchestration | `instance_manager/workflows.py` | Collect input, assemble plans, run discovery and the read-only audit | Mostly via `system.py`; also reads files and writes the optional audit report |
+| Orchestration | `instance_manager/workflows/` (one module per capability) | Collect input, assemble plans, run discovery and the read-only audit | Mostly via `system.py`; also reads files and writes the optional audit report |
| Model | `instance_manager/models.py` | `InstanceConfig`, identifier validation, path derivation | None (pure) |
+| Version facts | `instance_manager/support.py` | Per Odoo version: Python range and fallback, setuptools pin, PostgreSQL floor, core repositories, the pinned uv | None (pure data) |
+| Neutralisation | `instance_manager/neutralise.py` | The rules that make a copied database unable to act as production, as SQL | None (pure) |
| Planning | `instance_manager/planners.py` | Build `list[Command]` for every action | **None (pure)** |
| Execution | `instance_manager/system.py` | `run()`, existence checks, `preview_commands`, `apply_commands` | Runs shell |
| Input | `instance_manager/prompts.py` | Interactive prompts, file picker, phrase confirmation | Reads stdin |
diff --git a/docs/decisions/0001-plan-preview-apply-safety.md b/docs/decisions/0001-plan-preview-apply-safety.md
index d804784..ca59e63 100644
--- a/docs/decisions/0001-plan-preview-apply-safety.md
+++ b/docs/decisions/0001-plan-preview-apply-safety.md
@@ -22,7 +22,7 @@ could destroy the wrong instance or open an injection path.
Every host-mutating action follows one pipeline:
-1. **Plan** — pure builders in `planners.py` (and inline assembly in `workflows.py`) produce an ordered
+1. **Plan** — pure builders in `planners.py` (and inline assembly in the `workflows/` package) produce an ordered
`list[Command]`, where each `Command` is a `(description, command)` pair. Building a command never runs it.
2. **Preview** — `preview_commands` renders the full, numbered plan to the operator before anything executes.
3. **Confirm** — the operator explicitly confirms; **destructive or data-altering** actions additionally
diff --git a/docs/server-audit.md b/docs/server-audit.md
index 2959b4d..bb2a233 100644
--- a/docs/server-audit.md
+++ b/docs/server-audit.md
@@ -9,7 +9,7 @@ updated: 2026-07-04
# Auditing a server (external report)
-**Informe para servidor externo** produces a **strictly read-only** report of an Ubuntu host running Odoo. It
+**External server report** produces a **strictly read-only** report of an Ubuntu host running Odoo. It
discovers instances and inspects their state without building or applying any mutating plan — safe to run on a
server you are auditing or preparing to hand off.
diff --git a/instance_manager/i18n.py b/instance_manager/i18n.py
index 0c618d1..7052e6f 100644
--- a/instance_manager/i18n.py
+++ b/instance_manager/i18n.py
@@ -6,8 +6,7 @@
for interpolated messages, so call sites barely change. Any string missing from
the catalog falls back to English, so partial translation degrades gracefully.
-The authoring catalog below is kept Spanish→English (one readable source of
-truth); the English→Spanish lookup table used at runtime is derived from it.
+The catalog below is written English → Spanish, the direction it is read.
"""
from __future__ import annotations
@@ -40,832 +39,896 @@ def tf(template: str, *args: object, **kwargs: object) -> str:
return t(template).format(*args, **kwargs)
-# Authoring catalog (Spanish source → English). Extend by adding entries here;
-# ``_ES`` (the runtime English → Spanish table) is derived from it below.
-_ES_TO_EN: dict[str, str] = {
+# The catalog: English (the string the code passes to t()/tf()) → Spanish, in
+# the direction it is read. It used to be written Spanish → English and inverted
+# at import, which silently merged two English strings whose Spanish matched.
+_ES: dict[str, str] = {
# raw status prints added for full coverage
- "[INFO] Conexión a DB exitosa, sin bases listadas.": "[INFO] DB connection successful, no databases listed.",
- "[INFO] Operación cancelada.": "[INFO] Operation cancelled.",
- "[INFO] Intentaremos conexión admin con usuario/contraseña en el servidor DB.": "[INFO] We will attempt an admin connection with username/password on the DB server.",
- "[INFO] Debes permitir la conexión al servidor PostgreSQL y usar un usuario con permisos completos (superuser/admin).": "[INFO] You must allow the connection to the PostgreSQL server and use a user with full privileges (superuser/admin).",
- "[WARN] No fue posible usar sudo -u postgres en este servidor.": "[WARN] Could not use sudo -u postgres on this server.",
- "[OK] Conexión admin remota validada.": "[OK] Remote admin connection validated.",
- "[WARN] Se continuará con limpieza local (servicio/config/store). El borrado de DB/roles se omite por falta de conexión admin al servidor DB.": "[WARN] Local cleanup will continue (service/config/store). DB/role deletion is skipped due to a missing admin connection to the DB server.",
- "[INFO] No hay DBs detectadas/indicadas para eliminar.": "[INFO] No databases detected/specified for deletion.",
- "[INFO] Confirmación no válida. Operación cancelada.": "[INFO] Invalid confirmation. Operation cancelled.",
+ "[INFO] DB connection successful, no databases listed.": "[INFO] Conexión a DB exitosa, sin bases listadas.",
+ "[INFO] Operation cancelled.": "[INFO] Operación cancelada.",
+ "[INFO] We will attempt an admin connection with username/password on the DB server.": "[INFO] Intentaremos conexión admin con usuario/contraseña en el servidor DB.",
+ "[INFO] You must allow the connection to the PostgreSQL server and use a user with full privileges (superuser/admin).": "[INFO] Debes permitir la conexión al servidor PostgreSQL y usar un usuario con permisos completos (superuser/admin).",
+ "[WARN] Could not use sudo -u postgres on this server.": "[WARN] No fue posible usar sudo -u postgres en este servidor.",
+ "[OK] Remote admin connection validated.": "[OK] Conexión admin remota validada.",
+ "[WARN] Local cleanup will continue (service/config/store). DB/role deletion is skipped due to a missing admin connection to the DB server.": "[WARN] Se continuará con limpieza local (servicio/config/store). El borrado de DB/roles se omite por falta de conexión admin al servidor DB.",
+ "[INFO] No databases detected/specified for deletion.": "[INFO] No hay DBs detectadas/indicadas para eliminar.",
+ "[INFO] Invalid confirmation. Operation cancelled.": "[INFO] Confirmación no válida. Operación cancelada.",
# interpolated messages (tf templates) added for full coverage
- "Permitir SSH (puerto {})": "Allow SSH (port {})",
- "Permitir {}/{}": "Allow {}/{}",
- "Eliminar regla UFW #{}": "Delete UFW rule #{}",
- "Permitir PostgreSQL (5432) desde {}": "Allow PostgreSQL (5432) from {}",
- "\nInstancias detectadas en {}:": "\nInstances detected in {}:",
- "[WARN] Fallo al consultar DBs: {}": "[WARN] Failed to query DBs: {}",
- "[ERROR] No se pudo conectar al servidor DB con credenciales admin: {}": "[ERROR] Could not connect to the DB server with admin credentials: {}",
- "[WARN] No se pudieron detectar las bases de datos de '{}': {}": "[WARN] Could not detect the databases of '{}': {}",
- "\n[ERROR] La operación no se completó: {}": "\n[ERROR] The operation did not complete: {}",
+ "Allow SSH (port {})": "Permitir SSH (puerto {})",
+ "Allow {}/{}": "Permitir {}/{}",
+ "Delete UFW rule #{}": "Eliminar regla UFW #{}",
+ "Allow PostgreSQL (5432) from {}": "Permitir PostgreSQL (5432) desde {}",
+ "\nInstances detected in {}:": "\nInstancias detectadas en {}:",
+ "[WARN] Failed to query DBs: {}": "[WARN] Fallo al consultar DBs: {}",
+ "[ERROR] Could not connect to the DB server with admin credentials: {}": "[ERROR] No se pudo conectar al servidor DB con credenciales admin: {}",
+ "[WARN] Could not detect the databases of '{}': {}": "[WARN] No se pudieron detectar las bases de datos de '{}': {}",
+ "\n[ERROR] The operation did not complete: {}": "\n[ERROR] La operación no se completó: {}",
# startup / main menu
- "- Instalación interactiva por instancia": "- Interactive per-instance installation",
- "- Soporta instancia Odoo + usuario de PostgreSQL, PosgreSQL o ambos": "- Supports an Odoo instance + PostgreSQL user, PostgreSQL, or both",
- "- Muestra el listado de comandos a ejecutar para cada acción": "- Shows the list of commands to run for each action",
- "Este gestor requiere permisos de administración.": "This manager requires administrative privileges.",
- "Ejecuta con: sudo python3 odoo_instance_manager.py": "Run with: sudo python3 odoo_instance_manager.py",
+ "- Interactive per-instance installation": "- Instalación interactiva por instancia",
+ "- Supports an Odoo instance + PostgreSQL user, PostgreSQL, or both": "- Soporta instancia Odoo + usuario de PostgreSQL, PosgreSQL o ambos",
+ "- Shows the list of commands to run for each action": "- Muestra el listado de comandos a ejecutar para cada acción",
+ "This manager requires administrative privileges.": "Este gestor requiere permisos de administración.",
+ "Run with: sudo python3 odoo_instance_manager.py": "Ejecuta con: sudo python3 odoo_instance_manager.py",
"Idioma / Language": "Idioma / Language",
- "\n¿Qué quieres hacer?": "\nWhat do you want to do?",
- "Servicios instancias": "Instance services",
- "Gestionar instancias": "Manage instances",
- "Seguridad Fail2ban": "Fail2ban security",
+ "\nWhat do you want to do?": "\n¿Qué quieres hacer?",
+ "Instance services": "Servicios instancias",
+ "Manage instances": "Gestionar instancias",
+ "Fail2ban security": "Seguridad Fail2ban",
"Firewall (UFW)": "Firewall (UFW)",
- "Menú de instalación": "Installation menu",
- "\nMenú de instalación": "\nInstallation menu",
- "Eliminar instancias (Incluye configs, servicios, logs, etc.)": "Remove instances (configs, services, logs, …)",
- "Informe para servidor externo": "External server report",
- "Salir": "Exit",
- "\nSaliendo.": "\nExiting.",
- "\nOperación interrumpida. Volviendo al menú.": "\nOperation interrupted. Returning to the menu.",
- "\nEntrada cerrada. Saliendo.": "\nInput closed. Exiting.",
- "[ERROR] La operación no se completó: {}": "[ERROR] The operation did not complete: {}",
+ "Installation menu": "Menú de instalación",
+ "\nInstallation menu": "\nMenú de instalación",
+ "Remove instances (configs, services, logs, …)": "Eliminar instancias (Incluye configs, servicios, logs, etc.)",
+ "External server report": "Informe para servidor externo",
+ "Exit": "Salir",
+ "\nExiting.": "\nSaliendo.",
+ "\nOperation interrupted. Returning to the menu.": "\nOperación interrumpida. Volviendo al menú.",
+ "\nInput closed. Exiting.": "\nEntrada cerrada. Saliendo.",
+ "[ERROR] The operation did not complete: {}": "[ERROR] La operación no se completó: {}",
# generic menu chrome
- "Volver": "Back",
- "Cancelar": "Cancel",
- "Selecciona opción": "Select an option",
- "Introduce el número de opción.": "Enter the option number.",
- "Opción fuera de rango.": "Option out of range.",
- "Sin selección (0 para cancelar).": "No selection (0 to cancel).",
- "Escribir nombre": "Type a name",
- "Refrescar": "Refresh",
- "Confirmar acción": "Confirm action",
- "Confirmar plan y ejecutar": "Confirm plan and run",
- "Plan de ejecución": "Execution plan",
- "Plan ejecutado correctamente.": "Plan executed successfully.",
- "No hay acciones para ejecutar.": "There are no actions to run.",
- "Operación cancelada.": "Operation cancelled.",
- "Confirmación no válida. Operación cancelada.": "Invalid confirmation. Operation cancelled.",
- "Escribe exactamente": "Type exactly",
- "para confirmar": "to confirm",
- "Comando terminó con código {}.": "Command finished with code {}.",
+ "Back": "Volver",
+ "Cancel": "Cancelar",
+ "Select an option": "Selecciona opción",
+ "Enter the option number.": "Introduce el número de opción.",
+ "Option out of range.": "Opción fuera de rango.",
+ "No selection (0 to cancel).": "Sin selección (0 para cancelar).",
+ "Type a name": "Escribir nombre",
+ "Refresh": "Refrescar",
+ "Confirm action": "Confirmar acción",
+ "Confirm plan and run": "Confirmar plan y ejecutar",
+ "Execution plan": "Plan de ejecución",
+ "Plan executed successfully.": "Plan ejecutado correctamente.",
+ "There are no actions to run.": "No hay acciones para ejecutar.",
+ "Operation cancelled.": "Operación cancelada.",
+ "Invalid confirmation. Operation cancelled.": "Confirmación no válida. Operación cancelada.",
+ "Type exactly": "Escribe exactamente",
+ "to confirm": "para confirmar",
+ "Command finished with code {}.": "Comando terminó con código {}.",
# prompt primitives
- "Valor obligatorio.": "Value is required.",
- "Debe ser un número entero.": "Must be an integer.",
- "Valor fuera de rango ({}-{}).": "Value out of range ({}-{}).",
- "Responde 'sí'/'s' o 'no'/'n' (Enter = opción por defecto).": "Answer 'yes'/'y' or 'no'/'n' (Enter = default).",
- "sí": "yes",
+ "Value is required.": "Valor obligatorio.",
+ "Must be an integer.": "Debe ser un número entero.",
+ "Value out of range ({}-{}).": "Valor fuera de rango ({}-{}).",
+ "Answer 'yes'/'y' or 'no'/'n' (Enter = default).": "Responde 'sí'/'s' o 'no'/'n' (Enter = opción por defecto).",
+ "yes": "sí",
"no": "no",
# file picker
- "Seleccionar archivo requerido": "Select required file",
- "Directorio actual": "Current directory",
- " 0) Elegir este directorio": " 0) Choose this directory",
- " ..) Subir nivel": " ..) Up one level",
- " q) Cancelar": " q) Cancel",
- "Elige número, '..', 'q' o ruta manual": "Choose a number, '..', 'q' or a manual path",
- "Nombre de archivo en este directorio (o Enter para ruta manual)": "File name in this directory (or Enter for a manual path)",
- "Ruta completa del archivo": "Full file path",
- "Entrada no válida.": "Invalid input.",
- "Última carpeta usada: {}": "Last folder used: {}",
- "La ruta seleccionada para {} no coincide con extensiones esperadas: {}": "The selected path for {} does not match the expected extensions: {}",
- "¿Usar igualmente este archivo?": "Use this file anyway?",
+ "Select required file": "Seleccionar archivo requerido",
+ "Current directory": "Directorio actual",
+ " 0) Choose this directory": " 0) Elegir este directorio",
+ " ..) Up one level": " ..) Subir nivel",
+ " q) Cancel": " q) Cancelar",
+ "Choose a number, '..', 'q' or a manual path": "Elige número, '..', 'q' o ruta manual",
+ "File name in this directory (or Enter for a manual path)": "Nombre de archivo en este directorio (o Enter para ruta manual)",
+ "Full file path": "Ruta completa del archivo",
+ "Invalid input.": "Entrada no válida.",
+ "Last folder used: {}": "Última carpeta usada: {}",
+ "The selected path for {} does not match the expected extensions: {}": "La ruta seleccionada para {} no coincide con extensiones esperadas: {}",
+ "Use this file anyway?": "¿Usar igualmente este archivo?",
# install menu / flow
- "Instalar instancia Odoo": "Install Odoo instance",
- "Instalar PostgreSQL (sin Odoo)": "Install PostgreSQL (without Odoo)",
- "Instalar instancia Odoo + PostgreSQL": "Install Odoo instance + PostgreSQL",
- "Nombre de instancia": "Instance name",
- "Versión Odoo": "Odoo version",
- "Rama repo Odoo": "Odoo repo branch",
- "Dominio público": "Public domain",
- "Puerto HTTP interno Odoo": "Internal Odoo HTTP port",
- "Puerto gevent interno Odoo": "Internal Odoo gevent port",
- "DB nombre (opcional para validaciones)": "DB name (optional, for validation)",
- "IP servidor app para regla pg_hba": "App-server IP for the pg_hba rule",
- "admin_passwd Odoo": "Odoo admin_passwd",
- "Vuelve a introducir los datos de instalación con un formato seguro.": "Re-enter the installation data using a safe format.",
- "Puertos sugeridos automáticamente por disponibilidad: HTTP={}, gevent={}": "Ports suggested automatically by availability: HTTP={}, gevent={}",
- "La instalación {}. Ejecutando limpieza automática de residuos de la instancia...": "The installation {}. Running automatic cleanup of the instance residues...",
- "Limpieza automática finalizada. Revisa los mensajes anteriores.": "Automatic cleanup finished. Review the messages above.",
- "¿Habilitar autoarranque del servicio Odoo al iniciar el servidor?": "Enable the Odoo service to start on boot?",
- "¿Configurar listen_addresses y pg_hba para acceso remoto?": "Configure listen_addresses and pg_hba for remote access?",
- "¿Configurar rotación de logs de la instancia (recomendado)?": "Set up log rotation for the instance (recommended)?",
+ "Install Odoo instance": "Instalar instancia Odoo",
+ "Install PostgreSQL (without Odoo)": "Instalar PostgreSQL (sin Odoo)",
+ "Install Odoo instance + PostgreSQL": "Instalar instancia Odoo + PostgreSQL",
+ "Instance name": "Nombre de instancia",
+ "Odoo version": "Versión Odoo",
+ "Odoo repo branch": "Rama repo Odoo",
+ "Public domain": "Dominio público",
+ "Internal Odoo HTTP port": "Puerto HTTP interno Odoo",
+ "Internal Odoo gevent port": "Puerto gevent interno Odoo",
+ "DB name (optional, for validation)": "DB nombre (opcional para validaciones)",
+ "App-server IP for the pg_hba rule": "IP servidor app para regla pg_hba",
+ "Odoo admin_passwd": "admin_passwd Odoo",
+ "Re-enter the installation data using a safe format.": "Vuelve a introducir los datos de instalación con un formato seguro.",
+ "Ports suggested automatically by availability: HTTP={}, gevent={}": "Puertos sugeridos automáticamente por disponibilidad: HTTP={}, gevent={}",
+ "The installation {}. Running automatic cleanup of the instance residues...": "La instalación {}. Ejecutando limpieza automática de residuos de la instancia...",
+ "Automatic cleanup finished. Review the messages above.": "Limpieza automática finalizada. Revisa los mensajes anteriores.",
+ "Enable the Odoo service to start on boot?": "¿Habilitar autoarranque del servicio Odoo al iniciar el servidor?",
+ "Configure listen_addresses and pg_hba for remote access?": "¿Configurar listen_addresses y pg_hba para acceso remoto?",
+ "Set up log rotation for the instance (recommended)?": "¿Configurar rotación de logs de la instancia (recomendado)?",
# nginx / certs
- "Modo Nginx para la instancia": "Nginx mode for the instance",
- "No tocar Nginx": "Leave Nginx untouched",
- "Configurar HTTP": "Configure HTTP",
- "Configurar HTTPS": "Configure HTTPS",
- "Regenerar Nginx": "Regenerate Nginx",
- "Gestión de certificados para HTTPS": "HTTPS certificate management",
- "No tocar certificados": "Leave certificates untouched",
- "Autofirmado (detectar o generar automáticamente)": "Self-signed (detect or generate automatically)",
- "Let's Encrypt (gestionado externamente)": "Let's Encrypt (managed externally)",
- "Copiar certificados propios (CRT/KEY[/Intermediate])": "Copy your own certificates (CRT/KEY[/Intermediate])",
- "Selecciona el certificado público (server.crt)": "Select the public certificate (server.crt)",
- "Selecciona la clave privada (server.key)": "Select the private key (server.key)",
- "Selecciona la cadena intermedia/cabundle": "Select the intermediate chain / CA bundle",
- "¿Tienes archivo intermedio?": "Do you have an intermediate file?",
+ "Nginx mode for the instance": "Modo Nginx para la instancia",
+ "Leave Nginx untouched": "No tocar Nginx",
+ "Configure HTTP": "Configurar HTTP",
+ "Configure HTTPS": "Configurar HTTPS",
+ "Regenerate Nginx": "Regenerar Nginx",
+ "HTTPS certificate management": "Gestión de certificados para HTTPS",
+ "Leave certificates untouched": "No tocar certificados",
+ "Self-signed (detect or generate automatically)": "Autofirmado (detectar o generar automáticamente)",
+ "Let's Encrypt (managed externally)": "Let's Encrypt (gestionado externamente)",
+ "Copy your own certificates (CRT/KEY[/Intermediate])": "Copiar certificados propios (CRT/KEY[/Intermediate])",
+ "Select the public certificate (server.crt)": "Selecciona el certificado público (server.crt)",
+ "Select the private key (server.key)": "Selecciona la clave privada (server.key)",
+ "Select the intermediate chain / CA bundle": "Selecciona la cadena intermedia/cabundle",
+ "Do you have an intermediate file?": "¿Tienes archivo intermedio?",
# manage-instance menu
- "\nGestión segura de instancia: {}": "\nSafe instance management: {}",
- "Consultar ubicaciones/config actual": "Show locations / current config",
- "Comprobar salud (health check)": "Health check",
- "Actualizar configuración existente": "Update existing configuration",
- "Reparar logs Nginx de instancia": "Repair instance Nginx logs",
- "Rotación de logs": "Log rotation",
- "Uso de disco y limpieza": "Disk usage and cleanup",
- "Instalar paquetes Python en venv": "Install Python packages in the venv",
- "Inventario de addons": "Addon inventory",
- "Realizar backup": "Create backup",
- "Backups programados": "Scheduled backups",
- "Restaurar backup": "Restore backup",
- "Duplicar instancia": "Duplicate instance",
- "Duplicar base de datos": "Duplicate database",
- "Estado y salud": "Status & health",
- "Configuración": "Configuration",
- "Backups y duplicación": "Backups & duplication",
- "La duplicación de base de datos requiere un PostgreSQL local (sudo -u postgres). Para una BD remota, usa Backup y luego Restaurar.": "Database duplication requires a local PostgreSQL server (sudo -u postgres). For a remote DB, use Backup then Restore.",
- "La base de datos origen y destino deben ser distintas.": "Source and target databases must differ.",
- "La BD destino {} existe — ¿sobrescribirla?": "The target DB {} exists — overwrite it?",
- "Eliminar instancia": "Delete instance",
- "\nEstado completo de la instancia:": "\nFull instance status:",
+ "\nSafe instance management: {}": "\nGestión segura de instancia: {}",
+ "Show locations / current config": "Consultar ubicaciones/config actual",
+ "Health check": "Comprobar salud (health check)",
+ "Update existing configuration": "Actualizar configuración existente",
+ "Repair instance Nginx logs": "Reparar logs Nginx de instancia",
+ "Log rotation": "Rotación de logs",
+ "Disk usage and cleanup": "Uso de disco y limpieza",
+ "Install Python packages in the venv": "Instalar paquetes Python en venv",
+ "Addon inventory": "Inventario de addons",
+ "Create backup": "Realizar backup",
+ "Scheduled backups": "Backups programados",
+ "Restore backup": "Restaurar backup",
+ "Duplicate instance": "Duplicar instancia",
+ "Duplicate database": "Duplicar base de datos",
+ "Status & health": "Estado y salud",
+ "Configuration": "Configuración",
+ "Backups & duplication": "Backups y duplicación",
+ "Database duplication requires a local PostgreSQL server (sudo -u postgres). For a remote DB, use Backup then Restore.": "La duplicación de base de datos requiere un PostgreSQL local (sudo -u postgres). Para una BD remota, usa Backup y luego Restaurar.",
+ "Source and target databases must differ.": "La base de datos origen y destino deben ser distintas.",
+ "The target DB {} exists — overwrite it?": "La BD destino {} existe — ¿sobrescribirla?",
+ "Delete instance": "Eliminar instancia",
+ "\nFull instance status:": "\nEstado completo de la instancia:",
# status view
- "Ubicaciones y nombres esperados": "Expected locations and names",
- "Estado detectado": "Detected state",
- "Valores útiles en config Odoo": "Useful values in the Odoo config",
- "Ubicaciones relevantes de la instancia": "Relevant instance locations",
+ "Expected locations and names": "Ubicaciones y nombres esperados",
+ "Detected state": "Estado detectado",
+ "Useful values in the Odoo config": "Valores útiles en config Odoo",
+ "Relevant instance locations": "Ubicaciones relevantes de la instancia",
# update config
- "\nIntroduce nuevos valores (si aplican)": "\nEnter new values (if applicable)",
- "Dominio": "Domain",
- "HTTP interno": "Internal HTTP",
- "gevent interno": "Internal gevent",
- "Backup de configuración previo a actualización": "Pre-update configuration backup",
- "Backup previo de {}": "Pre-update backup of {}",
- "Backup de configuración (si se ejecutó el plan) en: {}": "Configuration backup (if the plan ran) at: {}",
+ "\nEnter new values (if applicable)": "\nIntroduce nuevos valores (si aplican)",
+ "Domain": "Dominio",
+ "Internal HTTP": "HTTP interno",
+ "Internal gevent": "gevent interno",
+ "Pre-update configuration backup": "Backup de configuración previo a actualización",
+ "Pre-update backup of {}": "Backup previo de {}",
+ "Configuration backup (if the plan ran) at: {}": "Backup de configuración (si se ejecutó el plan) en: {}",
# venv packages
- "Instalar paquetes Python en venv de la instancia": "Install Python packages in the instance venv",
- "Venv objetivo: {}/venv": "Target venv: {}/venv",
- "Origen de paquetes": "Package source",
- "Formato manual soportado:": "Manual format supported:",
- "Lista inicial de paquetes (coma o línea única)": "Initial package list (comma-separated or one line)",
- "Añade más paquetes (una línea por paquete). Enter vacío para finalizar.": "Add more packages (one per line). Empty Enter to finish.",
- "No se detectaron paquetes válidos. Operación cancelada.": "No valid packages detected. Operation cancelled.",
- "Selecciona el archivo requirements a instalar.": "Select the requirements file to install.",
+ "Install Python packages in the instance venv": "Instalar paquetes Python en venv de la instancia",
+ "Target venv: {}/venv": "Venv objetivo: {}/venv",
+ "Package source": "Origen de paquetes",
+ "Manual format supported:": "Formato manual soportado:",
+ "Initial package list (comma-separated or one line)": "Lista inicial de paquetes (coma o línea única)",
+ "Add more packages (one per line). Empty Enter to finish.": "Añade más paquetes (una línea por paquete). Enter vacío para finalizar.",
+ "No valid packages detected. Operation cancelled.": "No se detectaron paquetes válidos. Operación cancelada.",
+ "Select the requirements file to install.": "Selecciona el archivo requirements a instalar.",
# health check
"Health check: {}": "Health check: {}",
- "El servicio no está activo: arráncalo desde 'Servicios instancias'.": "The service is not active: start it from 'Instance services'.",
- "El servicio está activo pero no responde por HTTP; revisa el log de Odoo.": "The service is active but does not answer over HTTP; check the Odoo log.",
+ "The service is not active: start it from 'Instance services'.": "El servicio no está activo: arráncalo desde 'Servicios instancias'.",
+ "The service is active but does not answer over HTTP; check the Odoo log.": "El servicio está activo pero no responde por HTTP; revisa el log de Odoo.",
# disk usage
- "Uso de disco: {}": "Disk usage: {}",
- "Uso de disco y limpieza: {}": "Disk usage and cleanup: {}",
- "Ver uso de disco": "Show disk usage",
- "Limpiar backups antiguos (retención)": "Prune old backups (retention)",
- "Espacio libre del sistema de ficheros (data dir)": "Free space of the data-dir filesystem",
- "Backups presentes (más recientes primero)": "Present backups (most recent first)",
- "Directorio de backups a revisar": "Backup directory to review",
- "No existe el directorio de backups: {}": "Backup directory does not exist: {}",
- "¿Cuántos backups recientes conservar (por base de datos y tipo)?": "How many recent backups to keep (per database and kind)?",
- "Eliminar {} antiguos de {} (conservar {} más recientes)": "Delete old {} of {} (keep the {} most recent)",
- "dumps de DB": "DB dumps",
- "archivos de filestore": "filestore archives",
+ "Disk usage: {}": "Uso de disco: {}",
+ "Disk usage and cleanup: {}": "Uso de disco y limpieza: {}",
+ "Show disk usage": "Ver uso de disco",
+ "Prune old backups (retention)": "Limpiar backups antiguos (retención)",
+ "Free space of the data-dir filesystem": "Espacio libre del sistema de ficheros (data dir)",
+ "Present backups (most recent first)": "Backups presentes (más recientes primero)",
+ "Backup directory to review": "Directorio de backups a revisar",
+ "Backup directory does not exist: {}": "No existe el directorio de backups: {}",
+ "How many recent backups to keep (per database and kind)?": "¿Cuántos backups recientes conservar (por base de datos y tipo)?",
+ "Delete old {} of {} (keep the {} most recent)": "Eliminar {} antiguos de {} (conservar {} más recientes)",
+ "DB dumps": "dumps de DB",
+ "filestore archives": "archivos de filestore",
# addons
- "Inventario de addons: {}": "Addon inventory: {}",
- "{} — {} módulo(s)": "{} — {} module(s)",
- "Base de datos a inspeccionar": "Database to inspect",
- "¿Comprobar qué módulos están instalados en una base de datos?": "Check which modules are installed in a database?",
- "¿Mostrar solo módulos instalados (en lugar de todos)?": "Show only installed modules (instead of all)?",
- "Los addons no declaran paquetes Python adicionales.": "No additional Python packages are declared by the addons.",
- "Paquetes Python requeridos (según manifests de addons) — {}": "Required Python packages (from addon manifests) — {}",
- "Paquete Python": "Python package",
- "Requerido por": "Required by",
- "En venv": "In venv",
- "¿Replicar los paquetes Python adicionales de la instancia origen en el venv destino (recomendado)?": "Replicate the source instance's extra Python packages into the target venv (recommended)?",
- "Replicar paquetes Python del venv origen": "Replicate the source venv Python packages",
- "No hay módulos que mostrar con el filtro actual.": "No modules to show with the current filter.",
- "¿Exportar el inventario a un archivo?": "Export the inventory to a file?",
- "Ruta de exportación del inventario": "Inventory export path",
- "Inventario exportado en: {}": "Inventory exported to: {}",
- "No se encontraron módulos en las rutas de addons.": "No modules found in the addons paths.",
- "No se pudo leer ir_module_module (conexión/BD); se muestra solo lo disponible.": "Could not read ir_module_module (connection/DB); showing only what's available.",
+ "Addon inventory: {}": "Inventario de addons: {}",
+ "{} — {} module(s)": "{} — {} módulo(s)",
+ "Database to inspect": "Base de datos a inspeccionar",
+ "Check which modules are installed in a database?": "¿Comprobar qué módulos están instalados en una base de datos?",
+ "Show only installed modules (instead of all)?": "¿Mostrar solo módulos instalados (en lugar de todos)?",
+ "No additional Python packages are declared by the addons.": "Los addons no declaran paquetes Python adicionales.",
+ "Required Python packages (from addon manifests) — {}": "Paquetes Python requeridos (según manifests de addons) — {}",
+ "Python package": "Paquete Python",
+ "Required by": "Requerido por",
+ "In venv": "En venv",
+ "Replicate the source instance's extra Python packages into the target venv (recommended)?": "¿Replicar los paquetes Python adicionales de la instancia origen en el venv destino (recomendado)?",
+ "Replicate the source venv Python packages": "Replicar paquetes Python del venv origen",
+ "No modules to show with the current filter.": "No hay módulos que mostrar con el filtro actual.",
+ "Export the inventory to a file?": "¿Exportar el inventario a un archivo?",
+ "Inventory export path": "Ruta de exportación del inventario",
+ "Inventory exported to: {}": "Inventario exportado en: {}",
+ "No modules found in the addons paths.": "No se encontraron módulos en las rutas de addons.",
+ "Could not read ir_module_module (connection/DB); showing only what's available.": "No se pudo leer ir_module_module (conexión/BD); se muestra solo lo disponible.",
# log rotation
- "Rotación de logs: {}": "Log rotation: {}",
- "Rotación de logs de la instancia": "Instance log rotation",
- "Consultar rotación actual": "Show current rotation",
- "Configurar rotación (system logrotate)": "Configure rotation (system logrotate)",
- "Configurar rotación de logs (system logrotate)": "Configure log rotation (system logrotate)",
- "Política logrotate actual": "Current logrotate policy",
- "Previsualización (logrotate -d)": "Preview (logrotate -d)",
- "Ficheros de log de Odoo": "Odoo log files",
- "ACTIVA (system logrotate)": "ACTIVE (system logrotate)",
- "INACTIVA": "INACTIVE",
- "No hay política de logrotate del sistema para esta instancia.": "There is no system logrotate policy for this instance.",
- "Logs de Nginx: rotados por el logrotate del sistema (/etc/logrotate.d/nginx).": "Nginx logs: rotated by the system logrotate (/etc/logrotate.d/nginx).",
- "Logs de Nginx: rotados por esta política (create + reopen SIGUSR1).": "Nginx logs: rotated by this policy (create + reopen SIGUSR1).",
- "Logs de Nginx: sin cobertura de rotación detectada; considera incluirlos al configurar.": "Nginx logs: no rotation coverage detected; consider including them when configuring.",
- "Los logs de Nginx ya los cubre el logrotate del sistema (/etc/logrotate.d/nginx); no se añaden aquí para evitar doble rotación.": "Nginx logs are already covered by the system logrotate (/etc/logrotate.d/nginx); not added here to avoid double rotation.",
- "El logrotate del sistema no cubre los logs de Nginx de la instancia.": "The system logrotate does not cover the instance's Nginx logs.",
- "El odoo.conf tiene la clave 'logrotate' (obsoleta desde Odoo 13; Odoo la ignora).": "The odoo.conf has a 'logrotate' key (obsolete since Odoo 13; Odoo ignores it).",
- "El odoo.conf contiene la clave 'logrotate' (obsoleta desde Odoo 13, ignorada); puedes limpiarla al configurar.": "The odoo.conf contains a 'logrotate' key (obsolete since Odoo 13, ignored); you can clean it up when configuring.",
- "¿Eliminarla del odoo.conf?": "Remove it from the odoo.conf?",
- "Frecuencia de rotación": "Rotation frequency",
- "Número de rotaciones a conservar": "Number of rotations to keep",
- "¿Comprimir logs rotados?": "Compress rotated logs?",
- "¿Rotar también al superar un tamaño?": "Also rotate when a size is exceeded?",
- "Tamaño máximo (p. ej. 50M, 1G)": "Maximum size (e.g. 50M, 1G)",
- "¿Incluir también los logs de Nginx de la instancia (create + reopen SIGUSR1)?": "Also include the instance's Nginx logs (create + reopen SIGUSR1)?",
+ "Log rotation: {}": "Rotación de logs: {}",
+ "Instance log rotation": "Rotación de logs de la instancia",
+ "Show current rotation": "Consultar rotación actual",
+ "Configure rotation (system logrotate)": "Configurar rotación (system logrotate)",
+ "Configure log rotation (system logrotate)": "Configurar rotación de logs (system logrotate)",
+ "Current logrotate policy": "Política logrotate actual",
+ "Preview (logrotate -d)": "Previsualización (logrotate -d)",
+ "Odoo log files": "Ficheros de log de Odoo",
+ "ACTIVE (system logrotate)": "ACTIVA (system logrotate)",
+ "INACTIVE": "INACTIVA",
+ "There is no system logrotate policy for this instance.": "No hay política de logrotate del sistema para esta instancia.",
+ "Nginx logs: rotated by the system logrotate (/etc/logrotate.d/nginx).": "Logs de Nginx: rotados por el logrotate del sistema (/etc/logrotate.d/nginx).",
+ "Nginx logs: rotated by this policy (create + reopen SIGUSR1).": "Logs de Nginx: rotados por esta política (create + reopen SIGUSR1).",
+ "Nginx logs: no rotation coverage detected; consider including them when configuring.": "Logs de Nginx: sin cobertura de rotación detectada; considera incluirlos al configurar.",
+ "Nginx logs are already covered by the system logrotate (/etc/logrotate.d/nginx); not added here to avoid double rotation.": "Los logs de Nginx ya los cubre el logrotate del sistema (/etc/logrotate.d/nginx); no se añaden aquí para evitar doble rotación.",
+ "The system logrotate does not cover the instance's Nginx logs.": "El logrotate del sistema no cubre los logs de Nginx de la instancia.",
+ "The odoo.conf has a 'logrotate' key (obsolete since Odoo 13; Odoo ignores it).": "El odoo.conf tiene la clave 'logrotate' (obsoleta desde Odoo 13; Odoo la ignora).",
+ "The odoo.conf contains a 'logrotate' key (obsolete since Odoo 13, ignored); you can clean it up when configuring.": "El odoo.conf contiene la clave 'logrotate' (obsoleta desde Odoo 13, ignorada); puedes limpiarla al configurar.",
+ "Remove it from the odoo.conf?": "¿Eliminarla del odoo.conf?",
+ "Rotation frequency": "Frecuencia de rotación",
+ "Number of rotations to keep": "Número de rotaciones a conservar",
+ "Compress rotated logs?": "¿Comprimir logs rotados?",
+ "Also rotate when a size is exceeded?": "¿Rotar también al superar un tamaño?",
+ "Maximum size (e.g. 50M, 1G)": "Tamaño máximo (p. ej. 50M, 1G)",
+ "Also include the instance's Nginx logs (create + reopen SIGUSR1)?": "¿Incluir también los logs de Nginx de la instancia (create + reopen SIGUSR1)?",
# scheduled backups
- "Backups programados: {}": "Scheduled backups: {}",
- "Configurar backup programado": "Configure scheduled backup",
- "Ver estado": "Show status",
- "Eliminar programación": "Remove schedule",
- "Estado del backup programado": "Scheduled-backup status",
- "El backup se ejecuta como root usando 'sudo -u postgres pg_dump' (DB local, sin contraseña).": "The backup runs as root using 'sudo -u postgres pg_dump' (local DB, no password).",
- "Base de datos a respaldar": "Database to back up",
- "Nombre de base de datos no válido.": "Invalid database name.",
- "Directorio destino": "Destination directory",
- "¿Incluir también el filestore?": "Include the filestore as well?",
- "¿Cuántos backups conservar (retención)?": "How many backups to keep (retention)?",
- "Frecuencia": "Frequency",
- "Diario (02:30)": "Daily (02:30)",
- "Semanal (domingo 03:00)": "Weekly (Sunday 03:00)",
- "Mensual (día 1, 03:30)": "Monthly (day 1, 03:30)",
+ "Scheduled backups: {}": "Backups programados: {}",
+ "Configure scheduled backup": "Configurar backup programado",
+ "Show status": "Ver estado",
+ "Remove schedule": "Eliminar programación",
+ "Scheduled-backup status": "Estado del backup programado",
+ "The backup runs as root using 'sudo -u postgres pg_dump' (local DB, no password).": "El backup se ejecuta como root usando 'sudo -u postgres pg_dump' (DB local, sin contraseña).",
+ "Database to back up": "Base de datos a respaldar",
+ "Invalid database name.": "Nombre de base de datos no válido.",
+ "Destination directory": "Directorio destino",
+ "Include the filestore as well?": "¿Incluir también el filestore?",
+ "How many backups to keep (retention)?": "¿Cuántos backups conservar (retención)?",
+ "Frequency": "Frecuencia",
+ "Daily (02:30)": "Diario (02:30)",
+ "Weekly (Sunday 03:00)": "Semanal (domingo 03:00)",
+ "Monthly (day 1, 03:30)": "Mensual (día 1, 03:30)",
# backup / restore / duplicate
- "DB origen para backup": "Source DB for backup",
- "Directorio destino de backup": "Backup destination directory",
- "Tipo de backup": "Backup type",
- "Solo DB": "Database only",
- "Solo Filestore": "Filestore only",
- "DB + Filestore": "Database + Filestore",
- "Sin DB origen, operación cancelada.": "No source DB, operation cancelled.",
- "Crear el directorio privado de backup": "Create the private backup directory",
- "Exportar backup de DB (formato custom, atómico)": "Export DB backup (custom format, atomic)",
- "Exportar backup de Filestore (atómico)": "Export filestore backup (atomic)",
- "Sufijo de backup: {}": "Backup suffix: {}",
- "Tipo de restauración": "Restore type",
- "DB destino": "Target DB",
- "Modo de operación (equivalente Odoo)": "Operation mode (Odoo equivalent)",
- "Copiada (nuevo UUID en destino)": "Copied (new UUID on target)",
- "Movida (mantener UUID)": "Moved (keep UUID)",
- "¿Neutralizar destino?": "Neutralize the target?",
- "La DB destino ya existe: {}": "The target DB already exists: {}",
- "Selecciona archivo dump (.dump)": "Select a dump file (.dump)",
- "Dump de base de datos": "Database dump",
- "Crear DB destino": "Create target DB",
- "Restaurar dump en DB destino": "Restore the dump into the target DB",
- "Selecciona archivo backup de filestore (.tar.gz)": "Select a filestore backup file (.tar.gz)",
- "Backup de filestore": "Filestore backup",
- "El filestore destino existe, ¿sobrescribir?": "The target filestore exists — overwrite?",
- "Restauración de filestore cancelada por conflicto.": "Filestore restore cancelled due to a conflict.",
- "Crear ruta base de filestore": "Create the filestore base path",
- "Apartar el filestore previo en {}": "Move the previous filestore aside to {}",
- "Restaurar filestore en destino": "Restore the filestore into the target",
- "Acción sensible de restauración detectada.": "Sensitive restore action detected.",
- "DB origen para duplicar": "Source DB to duplicate",
- "La duplicación orquestada requiere un PostgreSQL local (sudo -u postgres). Para una BD remota, usa Backup y luego Restaurar.": "Orchestrated duplication requires a local PostgreSQL server (sudo -u postgres). For a remote DB, use Backup then Restore.",
- "Nombre de instancia destino": "Target instance name",
- "Método de copia de la base de datos": "Database copy method",
- "Robusto: pg_dump y luego restaurar (entre usuarios, recomendado)": "Robust: pg_dump then restore (cross-user, recommended)",
- "Rápido: copia por template (mismo dueño de BD)": "Fast: template copy (same DB owner)",
- "La instancia destino {} existe — se refresca in situ desde {}.": "Target instance {} exists — refreshing it in place from {}.",
- "La instancia destino {} no existe — se crea una réplica sembrada desde {}.": "Target instance {} does not exist — creating a replica seeded from {}.",
- "Rama repo Odoo (del origen)": "Odoo repo branch (from source)",
- "Dominio público destino": "Target public domain",
- "Contraseña de BD destino": "Target DB password",
- "admin_passwd de Odoo destino (contraseña maestra)": "Target Odoo admin_passwd (master password)",
- "Dominio público destino (debe diferir de otras instancias)": "Target public domain (must differ from other instances)",
- "El dominio {} ya lo sirve otro vhost de Nginx — la instancia duplicada sería inalcanzable. Elige un dominio distinto.": "The domain {} is already served by another Nginx vhost — the duplicated instance would be unreachable. Choose a different domain.",
- "Puerto HTTP interno destino": "Target internal HTTP port",
- "Puerto gevent interno destino": "Target internal gevent port",
- "Detener servicio Odoo destino": "Stop the target Odoo service",
- "Arrancar servicio Odoo destino": "Start the target Odoo service",
- "Sembrar BD destino por copia de template (origen cerrado a sesiones nuevas mientras tanto)": "Seed target DB via template copy (source closed to new sessions meanwhile)",
- "Crear la BD destino vacía (de postgres hasta que se entrega)": "Create the empty target DB (owned by postgres until it is handed over)",
- "Sembrar BD destino con pg_dump | pg_restore (reasignada al rol destino)": "Seed target DB via pg_dump | pg_restore (re-owned by the target role)",
- "Eliminar la BD destino (si existe), cerrando sus sesiones": "Drop the target DB (if it exists), closing its sessions",
- "Crear ruta base del filestore destino": "Create the target filestore base path",
- "Eliminar el filestore destino previo": "Remove the previous target filestore",
- "Dar propiedad del filestore destino": "Own the target filestore",
- "Dar propiedad del data dir destino (filestore, sessions, …)": "Own the target data dir (filestore, sessions, …)",
- "Restringir el acceso a la BD a su dueño (revocar connect de PUBLIC)": "Restrict DB access to its owner (revoke PUBLIC connect)",
- "Conceder connect a la BD al rol dueño": "Grant DB connect to the owner role",
- "Nueva instancia destino": "New target instance",
- "Nueva DB destino": "New target DB",
- "Ya existe {}": "Already exists: {}",
- "Ya existe servicio systemd: {}": "systemd service already exists: {}",
- "Ya existe DB destino: {}": "Target DB already exists: {}",
- "Modo de duplicación": "Duplication mode",
- "¿Neutralizar DB duplicada?": "Neutralize the duplicated DB?",
- "¿Duplicar también filestore?": "Also duplicate the filestore?",
- "Ya existe filestore destino: {}": "Target filestore already exists: {}",
- "Crear ruta base filestore destino": "Create the target filestore base path",
- "Duplicar DB por plantilla": "Duplicate DB via template",
- "Duplicar DB por plantilla (libera de sesiones activas el origen)": "Duplicate DB via template (frees the source of active sessions)",
- "Nombre de base de datos no válido. Usa letras, dígitos, '_', '.' y '-' (2-63 caracteres, empezando por letra o dígito).": "Invalid database name. Use letters, digits, '_', '.' and '-' (2-63 characters, starting with a letter or digit).",
- "Duplicar filestore": "Duplicate the filestore",
- "Acción sensible de duplicación detectada.": "Sensitive duplication action detected.",
- "Dar a la copia su propia identidad: nuevos database.uuid, database.secret y fecha de creación": "Give the copy its own identity: new database.uuid, database.secret, create date",
- "Neutralizar la copia (crons, correo, pagos, EDI/SII, calendarios, webhooks, IAP, URL base)": "Neutralise the copy (crons, mail, payment, EDI/SII, calendars, webhooks, IAP, base URL)",
- "Comprobar que nada en la copia puede actuar todavía hacia fuera": "Check nothing in the copy can still act on the outside",
- "Entregar la base de datos al rol {}": "Hand the database over to role {}",
- "Parar el servicio Odoo mientras se restaura y neutraliza la copia": "Stop the Odoo service while the copy is restored and neutralised",
- "Arrancar de nuevo el servicio Odoo": "Start the Odoo service again",
- "Comprobar que una copia está neutralizada": "Check a copy is neutralised",
- "Base de datos a comprobar": "Database to check",
- "No se pudo leer la base de datos.": "Could not read the database.",
- "falta: el correo puede salir por el smtp_server de odoo.conf": "missing: mail can leave through odoo.conf's smtp_server",
- "{}: no se ha encontrado nada que pueda actuar hacia fuera.": "{}: nothing found that can act on the outside.",
- "{}: todavía puede actuar hacia fuera:": "{}: still able to act on the outside:",
- "Permitir al rol {} crear en la nueva BD hasta que se le entregue": "Let role {} create in the new DB until it is handed over",
+ "Source DB for backup": "DB origen para backup",
+ "Backup destination directory": "Directorio destino de backup",
+ "Backup type": "Tipo de backup",
+ "Database only": "Solo DB",
+ "Filestore only": "Solo Filestore",
+ "Database + Filestore": "DB + Filestore",
+ "No source DB, operation cancelled.": "Sin DB origen, operación cancelada.",
+ "Create the private backup directory": "Crear el directorio privado de backup",
+ "Export DB backup (custom format, atomic)": "Exportar backup de DB (formato custom, atómico)",
+ "Export filestore backup (atomic)": "Exportar backup de Filestore (atómico)",
+ "Backup suffix: {}": "Sufijo de backup: {}",
+ "Restore type": "Tipo de restauración",
+ "Target DB": "DB destino",
+ "Operation mode (Odoo equivalent)": "Modo de operación (equivalente Odoo)",
+ "Copied (new UUID on target)": "Copiada (nuevo UUID en destino)",
+ "Moved (keep UUID)": "Movida (mantener UUID)",
+ "Neutralize the target?": "¿Neutralizar destino?",
+ "The target DB already exists: {}": "La DB destino ya existe: {}",
+ "Select a dump file (.dump)": "Selecciona archivo dump (.dump)",
+ "Database dump": "Dump de base de datos",
+ "Create target DB": "Crear DB destino",
+ "Restore the dump into the target DB": "Restaurar dump en DB destino",
+ "Select a filestore backup file (.tar.gz)": "Selecciona archivo backup de filestore (.tar.gz)",
+ "Filestore backup": "Backup de filestore",
+ "The target filestore exists — overwrite?": "El filestore destino existe, ¿sobrescribir?",
+ "Filestore restore cancelled due to a conflict.": "Restauración de filestore cancelada por conflicto.",
+ "Create the filestore base path": "Crear ruta base de filestore",
+ "Move the previous filestore aside to {}": "Apartar el filestore previo en {}",
+ "Restore the filestore into the target": "Restaurar filestore en destino",
+ "Sensitive restore action detected.": "Acción sensible de restauración detectada.",
+ "Source DB to duplicate": "DB origen para duplicar",
+ "Orchestrated duplication requires a local PostgreSQL server (sudo -u postgres). For a remote DB, use Backup then Restore.": "La duplicación orquestada requiere un PostgreSQL local (sudo -u postgres). Para una BD remota, usa Backup y luego Restaurar.",
+ "Target instance name": "Nombre de instancia destino",
+ "Database copy method": "Método de copia de la base de datos",
+ "Robust: pg_dump then restore (cross-user, recommended)": "Robusto: pg_dump y luego restaurar (entre usuarios, recomendado)",
+ "Fast: template copy (same DB owner)": "Rápido: copia por template (mismo dueño de BD)",
+ "Target instance {} exists — refreshing it in place from {}.": "La instancia destino {} existe — se refresca in situ desde {}.",
+ "Target instance {} does not exist — creating a replica seeded from {}.": "La instancia destino {} no existe — se crea una réplica sembrada desde {}.",
+ "Odoo repo branch (from source)": "Rama repo Odoo (del origen)",
+ "Target public domain": "Dominio público destino",
+ "Target DB password": "Contraseña de BD destino",
+ "Target Odoo admin_passwd (master password)": "admin_passwd de Odoo destino (contraseña maestra)",
+ "Target public domain (must differ from other instances)": "Dominio público destino (debe diferir de otras instancias)",
+ "The domain {} is already served by another Nginx vhost — the duplicated instance would be unreachable. Choose a different domain.": "El dominio {} ya lo sirve otro vhost de Nginx — la instancia duplicada sería inalcanzable. Elige un dominio distinto.",
+ "Target internal HTTP port": "Puerto HTTP interno destino",
+ "Target internal gevent port": "Puerto gevent interno destino",
+ "Stop the target Odoo service": "Detener servicio Odoo destino",
+ "Start the target Odoo service": "Arrancar servicio Odoo destino",
+ "Seed target DB via template copy (source closed to new sessions meanwhile)": "Sembrar BD destino por copia de template (origen cerrado a sesiones nuevas mientras tanto)",
+ "Create the empty target DB (owned by postgres until it is handed over)": "Crear la BD destino vacía (de postgres hasta que se entrega)",
+ "Seed target DB via pg_dump | pg_restore (re-owned by the target role)": "Sembrar BD destino con pg_dump | pg_restore (reasignada al rol destino)",
+ "Drop the target DB (if it exists), closing its sessions": "Eliminar la BD destino (si existe), cerrando sus sesiones",
+ "Create the target filestore base path": "Crear ruta base del filestore destino",
+ "Remove the previous target filestore": "Eliminar el filestore destino previo",
+ "Own the target filestore": "Dar propiedad del filestore destino",
+ "Own the target data dir (filestore, sessions, …)": "Dar propiedad del data dir destino (filestore, sessions, …)",
+ "Restrict DB access to its owner (revoke PUBLIC connect)": "Restringir el acceso a la BD a su dueño (revocar connect de PUBLIC)",
+ "Grant DB connect to the owner role": "Conceder connect a la BD al rol dueño",
+ "New target instance": "Nueva instancia destino",
+ "New target DB": "Nueva DB destino",
+ "Already exists: {}": "Ya existe {}",
+ "systemd service already exists: {}": "Ya existe servicio systemd: {}",
+ "Target DB already exists: {}": "Ya existe DB destino: {}",
+ "Duplication mode": "Modo de duplicación",
+ "Neutralize the duplicated DB?": "¿Neutralizar DB duplicada?",
+ "Also duplicate the filestore?": "¿Duplicar también filestore?",
+ "Target filestore already exists: {}": "Ya existe filestore destino: {}",
+ "Duplicate DB via template": "Duplicar DB por plantilla",
+ "Duplicate DB via template (frees the source of active sessions)": "Duplicar DB por plantilla (libera de sesiones activas el origen)",
+ "Invalid database name. Use letters, digits, '_', '.' and '-' (2-63 characters, starting with a letter or digit).": "Nombre de base de datos no válido. Usa letras, dígitos, '_', '.' y '-' (2-63 caracteres, empezando por letra o dígito).",
+ "Duplicate the filestore": "Duplicar filestore",
+ "Sensitive duplication action detected.": "Acción sensible de duplicación detectada.",
+ "Give the copy its own identity: new database.uuid, database.secret, create date": "Dar a la copia su propia identidad: nuevos database.uuid, database.secret y fecha de creación",
+ "Neutralise the copy (crons, mail, payment, EDI/SII, calendars, webhooks, IAP, base URL)": "Neutralizar la copia (crons, correo, pagos, EDI/SII, calendarios, webhooks, IAP, URL base)",
+ "Check nothing in the copy can still act on the outside": "Comprobar que nada en la copia puede actuar todavía hacia fuera",
+ "Hand the database over to role {}": "Entregar la base de datos al rol {}",
+ "Stop the Odoo service while the copy is restored and neutralised": "Parar el servicio Odoo mientras se restaura y neutraliza la copia",
+ "Start the Odoo service again": "Arrancar de nuevo el servicio Odoo",
+ "Check a copy is neutralised": "Comprobar que una copia está neutralizada",
+ "Database to check": "Base de datos a comprobar",
+ "Could not read the database.": "No se pudo leer la base de datos.",
+ "missing: mail can leave through odoo.conf's smtp_server": "falta: el correo puede salir por el smtp_server de odoo.conf",
+ "{}: nothing found that can act on the outside.": "{}: no se ha encontrado nada que pueda actuar hacia fuera.",
+ "{}: still able to act on the outside:": "{}: todavía puede actuar hacia fuera:",
+ "Let role {} create in the new DB until it is handed over": "Permitir al rol {} crear en la nueva BD hasta que se le entregue",
# --- ops hardening ---
- "Escribir {} y conservarlo solo si fail2ban lo acepta": "Write {} and keep it only if fail2ban accepts it",
- "Recargar fail2ban": "Reload fail2ban",
- "Escribir el filtro odoo-auth y la jail {}; conservarlos solo si fail2ban los acepta": "Write the odoo-auth filter and the {} jail; keep them only if fail2ban accepts them",
- "Escribir el filtro odoo-auth y conservarlo solo si fail2ban lo acepta": "Write the odoo-auth filter and keep it only if fail2ban accepts it",
- "Probar el filtro de Odoo con la línea de login fallido de Odoo 12-18 y 19": "Test the Odoo filter against the login-failure line of Odoo 12-18 and 19",
- "Activar el vhost HTTP de la instancia (se conserva solo si nginx -t lo acepta)": "Enable the instance HTTP vhost (kept only if nginx -t accepts it)",
- "Activar el vhost HTTPS de la instancia (se conserva solo si nginx -t lo acepta)": "Enable the instance HTTPS vhost (kept only if nginx -t accepts it)",
- "SSH escucha en: {}": "SSH listens on: {}",
- "No se pudo detectar el puerto SSH (sshd -T / ssh.socket).": "Could not detect the SSH port (sshd -T / ssh.socket).",
- "SSH no escucha en {}: activar UFW bloquearía las sesiones SSH nuevas. ¿Continuar igualmente?": "SSH does not listen on {}: enabling UFW would lock new SSH sessions out. Continue anyway?",
- "No existe la regla #{}.": "There is no rule #{}.",
- "No se pudo escribir {}: {}": "Could not write {}: {}",
- "Fallo al ejecutar: {}": "Failed running: {}",
- "Escribir {} (modo {})": "Write {} (mode {})",
- "Regla": "Rule",
- "Filas": "Rows",
- "Ejemplos": "Examples",
+ "Write {} and keep it only if fail2ban accepts it": "Escribir {} y conservarlo solo si fail2ban lo acepta",
+ "Reload fail2ban": "Recargar fail2ban",
+ "Write the odoo-auth filter and the {} jail; keep them only if fail2ban accepts them": "Escribir el filtro odoo-auth y la jail {}; conservarlos solo si fail2ban los acepta",
+ "Write the odoo-auth filter and keep it only if fail2ban accepts it": "Escribir el filtro odoo-auth y conservarlo solo si fail2ban lo acepta",
+ "Test the Odoo filter against the login-failure line of Odoo 12-18 and 19": "Probar el filtro de Odoo con la línea de login fallido de Odoo 12-18 y 19",
+ "Enable the instance HTTP vhost (kept only if nginx -t accepts it)": "Activar el vhost HTTP de la instancia (se conserva solo si nginx -t lo acepta)",
+ "Enable the instance HTTPS vhost (kept only if nginx -t accepts it)": "Activar el vhost HTTPS de la instancia (se conserva solo si nginx -t lo acepta)",
+ "SSH listens on: {}": "SSH escucha en: {}",
+ "Could not detect the SSH port (sshd -T / ssh.socket).": "No se pudo detectar el puerto SSH (sshd -T / ssh.socket).",
+ "SSH does not listen on {}: enabling UFW would lock new SSH sessions out. Continue anyway?": "SSH no escucha en {}: activar UFW bloquearía las sesiones SSH nuevas. ¿Continuar igualmente?",
+ "There is no rule #{}.": "No existe la regla #{}.",
+ "Could not write {}: {}": "No se pudo escribir {}: {}",
+ "Failed running: {}": "Fallo al ejecutar: {}",
+ "Write {} (mode {})": "Escribir {} (modo {})",
+ "Rule": "Regla",
+ "Rows": "Filas",
+ "Examples": "Ejemplos",
# delete
- "¿Eliminar también base de datos?": "Also delete the database?",
- "¿Eliminar también filestore?": "Also delete the filestore?",
- "DB a eliminar": "DB to delete",
- "No se encontró la base de datos '{}' en {}:{} (no existe o no se pudo conectar); se omite su eliminación.": "Database '{}' not found on {}:{} (missing or unreachable); skipping its deletion.",
- "Filestore DB a eliminar": "Filestore DB to delete",
- "Nombre de DB de filestore no válido.": "Invalid filestore DB name.",
- "Acción destructiva detectada.": "Destructive action detected.",
- "Eliminar DB": "Delete DB",
+ "Also delete the database?": "¿Eliminar también base de datos?",
+ "Also delete the filestore?": "¿Eliminar también filestore?",
+ "DB to delete": "DB a eliminar",
+ "Database '{}' not found on {}:{} (missing or unreachable); skipping its deletion.": "No se encontró la base de datos '{}' en {}:{} (no existe o no se pudo conectar); se omite su eliminación.",
+ "Filestore DB to delete": "Filestore DB a eliminar",
+ "Invalid filestore DB name.": "Nombre de DB de filestore no válido.",
+ "Destructive action detected.": "Acción destructiva detectada.",
+ "Delete DB": "Eliminar DB",
# purge
- "DB server para eliminación total": "DB server for total removal",
+ "DB server for total removal": "DB server para eliminación total",
"DB admin user": "DB admin user",
"DB admin password": "DB admin password",
- "DBs extra a eliminar (coma, opcional)": "Extra DBs to delete (comma-separated, optional)",
- "Resumen de eliminación total": "Total-removal summary",
- "Acción SUPER destructiva detectada.": "SUPER destructive action detected.",
- "Cerrar conexiones activas de DB {}": "Close active connections of DB {}",
- "Eliminar DB {}": "Delete DB {}",
- "Eliminar rol PostgreSQL {} (si existe)": "Delete PostgreSQL role {} (if it exists)",
+ "Extra DBs to delete (comma-separated, optional)": "DBs extra a eliminar (coma, opcional)",
+ "Total-removal summary": "Resumen de eliminación total",
+ "SUPER destructive action detected.": "Acción SUPER destructiva detectada.",
+ "Close active connections of DB {}": "Cerrar conexiones activas de DB {}",
+ "Delete DB {}": "Eliminar DB {}",
+ "Delete PostgreSQL role {} (if it exists)": "Eliminar rol PostgreSQL {} (si existe)",
# services
- "Servicios de instancias detectados": "Detected instance services",
- "No se detectaron servicios de instancia en systemd.": "No instance services detected in systemd.",
- "Acciones de servicios": "Service actions",
- "Seleccionar servicio": "Select a service",
- "Selecciona servicio": "Select a service",
- "Nombre de servicio": "Service name",
- "Acción para servicio {}": "Action for service {}",
- "Iniciar": "Start",
- "Detener": "Stop",
- "Reiniciar": "Restart",
- "Habilitar autoarranque": "Enable autostart",
- "Deshabilitar autoarranque": "Disable autostart",
- "Iniciar servicio {}": "Start service {}",
- "Detener servicio {}": "Stop service {}",
- "Reiniciar servicio {}": "Restart service {}",
- "Habilitar autoarranque {}": "Enable autostart {}",
- "Deshabilitar autoarranque {}": "Disable autostart {}",
- "en marcha": "running",
- "detenido": "stopped",
- "autoarranque sí": "autostart on",
- "autoarranque no": "autostart off",
+ "Detected instance services": "Servicios de instancias detectados",
+ "No instance services detected in systemd.": "No se detectaron servicios de instancia en systemd.",
+ "Service actions": "Acciones de servicios",
+ "Select a service": "Seleccionar servicio",
+ "Service name": "Nombre de servicio",
+ "Action for service {}": "Acción para servicio {}",
+ "Start": "Iniciar",
+ "Stop": "Detener",
+ "Restart": "Reiniciar",
+ "Enable autostart": "Habilitar autoarranque",
+ "Disable autostart": "Deshabilitar autoarranque",
+ "Start service {}": "Iniciar servicio {}",
+ "Stop service {}": "Detener servicio {}",
+ "Restart service {}": "Reiniciar servicio {}",
+ "Enable autostart {}": "Habilitar autoarranque {}",
+ "Disable autostart {}": "Deshabilitar autoarranque {}",
+ "running": "en marcha",
+ "stopped": "detenido",
+ "autostart on": "autoarranque sí",
+ "autostart off": "autoarranque no",
# fail2ban
- "Estado Fail2ban": "Fail2ban status",
- "Gestión de Fail2ban": "Fail2ban management",
- "Instalar/config base segura": "Install / configure secure baseline",
- "Activar protección Odoo por instancia": "Enable per-instance Odoo protection",
- "Verificar IP real en log Odoo": "Check the real IP in the Odoo log",
- "Ver estado y jails": "Show status and jails",
- "Ver detalle de jail": "Show jail detail",
- "Desbanear IP de jail": "Unban an IP from a jail",
- "Probar regex Odoo": "Test the Odoo regex",
- "IPs/redes admin a excluir (separa por espacio/coma)": "Admin IPs/networks to exclude (space/comma separated)",
+ "Fail2ban status": "Estado Fail2ban",
+ "Fail2ban management": "Gestión de Fail2ban",
+ "Install / configure secure baseline": "Instalar/config base segura",
+ "Enable per-instance Odoo protection": "Activar protección Odoo por instancia",
+ "Check the real IP in the Odoo log": "Verificar IP real en log Odoo",
+ "Show status and jails": "Ver estado y jails",
+ "Show jail detail": "Ver detalle de jail",
+ "Unban an IP from a jail": "Desbanear IP de jail",
+ "Test the Odoo regex": "Probar regex Odoo",
+ "Admin IPs/networks to exclude (space/comma separated)": "IPs/redes admin a excluir (separa por espacio/coma)",
"bantime": "bantime",
"findtime": "findtime",
"maxretry": "maxretry",
"recidive bantime": "recidive bantime",
- "bantime instancia": "instance bantime",
- "findtime instancia": "instance findtime",
- "maxretry instancia": "instance maxretry",
- "Ruta log Odoo de la instancia": "Instance Odoo log path",
- "Ruta log Odoo": "Odoo log path",
- "Instancia (para sugerir log)": "Instance (to suggest the log)",
- "Instancia (opcional, para sugerir jail)": "Instance (optional, to suggest the jail)",
- "¿Continuar igualmente con jail Odoo? (no recomendado)": "Continue with the Odoo jail anyway? (not recommended)",
- "Activación cancelada para evitar baneo de gateway/proxy.": "Activation cancelled to avoid banning the gateway/proxy.",
- "Recomendación: NO activar jail Odoo hasta recibir IP cliente real.": "Recommendation: do NOT enable the Odoo jail until real client IPs arrive.",
- "Selecciona jail": "Select a jail",
- "Selecciona jail para desbanear": "Select a jail to unban from",
- "Escribir jail": "Type a jail",
- "Nombre jail": "Jail name",
- "Jail fail2ban": "Fail2ban jail",
- "IPs actualmente baneadas en el jail": "IPs currently banned in the jail",
- "Selecciona IP a desbanear": "Select an IP to unban",
- "Escribir IP manual": "Type an IP manually",
- "IP a desbanear": "IP to unban",
- "No hay IPs baneadas detectadas en ese jail o no se pudo listarlas.": "No banned IPs detected in that jail or they could not be listed.",
- "Desbanear {} en {}": "Unban {} in {}",
- "Ruta filtro fail2ban": "Fail2ban filter path",
- "Validar archivo log": "Validate the log file",
- "Validar archivo filtro": "Validate the filter file",
- "Probar regex fail2ban": "Test the fail2ban regex",
- "fail2ban está activo pero el socket aún no responde. Espera unos segundos y refresca estado.": "fail2ban is active but the socket is not responding yet. Wait a few seconds and refresh.",
+ "instance bantime": "bantime instancia",
+ "instance findtime": "findtime instancia",
+ "instance maxretry": "maxretry instancia",
+ "Instance Odoo log path": "Ruta log Odoo de la instancia",
+ "Odoo log path": "Ruta log Odoo",
+ "Instance (to suggest the log)": "Instancia (para sugerir log)",
+ "Instance (optional, to suggest the jail)": "Instancia (opcional, para sugerir jail)",
+ "Continue with the Odoo jail anyway? (not recommended)": "¿Continuar igualmente con jail Odoo? (no recomendado)",
+ "Activation cancelled to avoid banning the gateway/proxy.": "Activación cancelada para evitar baneo de gateway/proxy.",
+ "Recommendation: do NOT enable the Odoo jail until real client IPs arrive.": "Recomendación: NO activar jail Odoo hasta recibir IP cliente real.",
+ "Select a jail": "Selecciona jail",
+ "Select a jail to unban from": "Selecciona jail para desbanear",
+ "Type a jail": "Escribir jail",
+ "Jail name": "Nombre jail",
+ "Fail2ban jail": "Jail fail2ban",
+ "IPs currently banned in the jail": "IPs actualmente baneadas en el jail",
+ "Select an IP to unban": "Selecciona IP a desbanear",
+ "Type an IP manually": "Escribir IP manual",
+ "IP to unban": "IP a desbanear",
+ "No banned IPs detected in that jail or they could not be listed.": "No hay IPs baneadas detectadas en ese jail o no se pudo listarlas.",
+ "Unban {} in {}": "Desbanear {} en {}",
+ "Fail2ban filter path": "Ruta filtro fail2ban",
+ "Validate the log file": "Validar archivo log",
+ "Validate the filter file": "Validar archivo filtro",
+ "Test the fail2ban regex": "Probar regex fail2ban",
+ "fail2ban is active but the socket is not responding yet. Wait a few seconds and refresh.": "fail2ban está activo pero el socket aún no responde. Espera unos segundos y refresca estado.",
# firewall
- "Estado UFW": "UFW status",
- "UFW no está instalado o no es accesible.": "UFW is not installed or not accessible.",
- "Configurar base segura de UFW": "Configure a secure UFW baseline",
- "Asegúrate de que el puerto SSH es correcto antes de habilitar: una regla errónea puede dejarte fuera del servidor.": "Make sure the SSH port is correct before enabling: a wrong rule can lock you out of the server.",
- "Puerto SSH a permitir": "SSH port to allow",
- "¿Permitir HTTP (80)?": "Allow HTTP (80)?",
- "¿Permitir HTTPS (443)?": "Allow HTTPS (443)?",
- "¿Permitir PostgreSQL (5432) desde una IP concreta (app server)?": "Allow PostgreSQL (5432) from a specific IP (app server)?",
- "IP autorizada para PostgreSQL": "IP allowed for PostgreSQL",
- "Permitir puerto": "Allow a port",
- "Puerto a permitir": "Port to allow",
- "Protocolo": "Protocol",
- "Eliminar regla (por número)": "Delete a rule (by number)",
- "Reglas UFW": "UFW rules",
- "No se pudieron listar las reglas (¿UFW instalado/activo?).": "Could not list the rules (is UFW installed/active?).",
- "Número de regla a eliminar": "Rule number to delete",
- "Habilitar UFW": "Enable UFW",
- "Deshabilitar UFW": "Disable UFW",
+ "UFW status": "Estado UFW",
+ "UFW is not installed or not accessible.": "UFW no está instalado o no es accesible.",
+ "Configure a secure UFW baseline": "Configurar base segura de UFW",
+ "Make sure the SSH port is correct before enabling: a wrong rule can lock you out of the server.": "Asegúrate de que el puerto SSH es correcto antes de habilitar: una regla errónea puede dejarte fuera del servidor.",
+ "SSH port to allow": "Puerto SSH a permitir",
+ "Allow HTTP (80)?": "¿Permitir HTTP (80)?",
+ "Allow HTTPS (443)?": "¿Permitir HTTPS (443)?",
+ "Allow PostgreSQL (5432) from a specific IP (app server)?": "¿Permitir PostgreSQL (5432) desde una IP concreta (app server)?",
+ "IP allowed for PostgreSQL": "IP autorizada para PostgreSQL",
+ "Allow a port": "Permitir puerto",
+ "Port to allow": "Puerto a permitir",
+ "Protocol": "Protocolo",
+ "Delete a rule (by number)": "Eliminar regla (por número)",
+ "UFW rules": "Reglas UFW",
+ "Could not list the rules (is UFW installed/active?).": "No se pudieron listar las reglas (¿UFW instalado/activo?).",
+ "Rule number to delete": "Número de regla a eliminar",
+ "Enable UFW": "Habilitar UFW",
+ "Disable UFW": "Deshabilitar UFW",
"UFW {}": "UFW {}",
# DB connection prompts (common)
- "¿Quieres conectarte a PostgreSQL para listar DBs disponibles?": "Connect to PostgreSQL to list available databases?",
+ "Connect to PostgreSQL to list available databases?": "¿Quieres conectarte a PostgreSQL para listar DBs disponibles?",
"DB server": "DB server",
"DB port": "DB port",
"DB user": "DB user",
"DB password": "DB password",
"DB host": "DB host",
- "DB para validaciones (opcional)": "DB for validation (optional)",
- "Selecciona DB para validaciones (opcional)": "Select a DB for validation (optional)",
- "Conexión a DB exitosa, sin bases listadas.": "DB connection succeeded, no databases listed.",
- "No se pudo listar DBs: {}": "Could not list databases: {}",
- "¿Usar credenciales DB anteriores ({}@{}:{})?": "Reuse the previous DB credentials ({}@{}:{})?",
- "{} (selección rápida)": "{} (quick pick)",
- "Instancias detectadas en {}:": "Instances detected in {}:",
- "Selecciona instancia detectada": "Select a detected instance",
+ "DB for validation (optional)": "DB para validaciones (opcional)",
+ "Select a DB for validation (optional)": "Selecciona DB para validaciones (opcional)",
+ "DB connection succeeded, no databases listed.": "Conexión a DB exitosa, sin bases listadas.",
+ "Could not list databases: {}": "No se pudo listar DBs: {}",
+ "Reuse the previous DB credentials ({}@{}:{})?": "¿Usar credenciales DB anteriores ({}@{}:{})?",
+ "{} (quick pick)": "{} (selección rápida)",
+ "Instances detected in {}:": "Instancias detectadas en {}:",
+ "Select a detected instance": "Selecciona instancia detectada",
# report titles
- "Resumen del servidor": "Server summary",
- "Servicios Odoo detectados": "Detected Odoo services",
- "Archivos de configuración Odoo detectados": "Detected Odoo configuration files",
- "Configs Nginx relacionadas con Odoo": "Odoo-related Nginx configs",
- "Filestores detectados": "Detected filestores",
- "Artefactos detectados por búsqueda": "Artifacts found by search",
- "Instancias: Odoo / rutas / DB": "Instances: Odoo / paths / DB",
- "Instancias: Python": "Instances: Python",
- "Instancias: Nginx / puertos": "Instances: Nginx / ports",
- "Detalle de certificados TLS": "TLS certificate detail",
- "Comprobaciones activas TLS": "Active TLS checks",
- "¿Ejecutar comprobaciones activas de certificados TLS?": "Run active TLS certificate checks?",
- "Umbral de alerta para expiración TLS (días)": "TLS expiry alert threshold (days)",
- "No hay rutas de certificados TLS detectadas para comprobación activa.": "No TLS certificate paths detected for active checking.",
- "¿Quieres exportar el informe a archivo?": "Export the report to a file?",
- "Ruta de exportación del informe": "Report export path",
- "Exportación omitida por el usuario.": "Export skipped by the operator.",
- "Informe exportado en: {}": "Report exported to: {}",
+ "Server summary": "Resumen del servidor",
+ "Detected Odoo services": "Servicios Odoo detectados",
+ "Detected Odoo configuration files": "Archivos de configuración Odoo detectados",
+ "Odoo-related Nginx configs": "Configs Nginx relacionadas con Odoo",
+ "Detected filestores": "Filestores detectados",
+ "Artifacts found by search": "Artefactos detectados por búsqueda",
+ "Instances: Odoo / paths / DB": "Instancias: Odoo / rutas / DB",
+ "Instances: Python": "Instancias: Python",
+ "Instances: Nginx / ports": "Instancias: Nginx / puertos",
+ "TLS certificate detail": "Detalle de certificados TLS",
+ "Active TLS checks": "Comprobaciones activas TLS",
+ "Run active TLS certificate checks?": "¿Ejecutar comprobaciones activas de certificados TLS?",
+ "TLS expiry alert threshold (days)": "Umbral de alerta para expiración TLS (días)",
+ "No TLS certificate paths detected for active checking.": "No hay rutas de certificados TLS detectadas para comprobación activa.",
+ "Export the report to a file?": "¿Quieres exportar el informe a archivo?",
+ "Report export path": "Ruta de exportación del informe",
+ "Export skipped by the operator.": "Exportación omitida por el usuario.",
+ "Report exported to: {}": "Informe exportado en: {}",
# table headers
- "Estado": "State",
- "Chequeo": "Check",
- "Detalle": "Detail",
- "Elemento": "Item",
- "Valor": "Value",
- "Ruta": "Path",
- "Ruta/Valor": "Path/Value",
- "Tamaño": "Size",
- "Campo": "Field",
- "Clave": "Key",
- "Módulo": "Module",
- "Versión (manifest)": "Version (manifest)",
- "Versión instalada": "Installed version",
- "Servicio": "Service",
- "Arranque": "Startup",
- "Acción": "Action",
- "Comando": "Command",
+ "State": "Estado",
+ "Check": "Chequeo",
+ "Detail": "Detalle",
+ "Item": "Elemento",
+ "Value": "Valor",
+ "Path": "Ruta",
+ "Path/Value": "Ruta/Valor",
+ "Size": "Tamaño",
+ "Field": "Campo",
+ "Key": "Clave",
+ "Module": "Módulo",
+ "Version (manifest)": "Versión (manifest)",
+ "Installed version": "Versión instalada",
+ "Service": "Servicio",
+ "Startup": "Arranque",
+ "Action": "Acción",
+ "Command": "Comando",
# list prints
- "\nDBs disponibles:": "\nAvailable databases:",
- "\nDBs candidatas para eliminación:": "\nCandidate databases for deletion:",
- " No se detectaron carpetas de instancia en el directorio base.": " No instance folders were detected in the base directory.",
- " Puedes escribir el nombre de una instancia conocida": " You can type the name of a known instance",
- " para eliminar otros datos residuales como configs, servicios, logs, etc.": " to remove other residual data such as configs, services, logs, etc.",
- "No hay DBs detectadas/indicadas para eliminar.": "No databases detected/specified for deletion.",
- "Se continuará con limpieza local (servicio/config/store). El borrado de DB/roles se omite por falta de conexión admin al servidor DB.": "Local cleanup (service/config/store) will proceed. Dropping DBs/roles is skipped for lack of an admin connection to the DB server.",
- "No fue posible usar sudo -u postgres en este servidor.": "Could not use sudo -u postgres on this server.",
- "Acceso admin local a PostgreSQL detectado (sudo -u postgres).": "Local admin access to PostgreSQL detected (sudo -u postgres).",
- "Intentaremos conexión admin con usuario/contraseña en el servidor DB.": "We will try an admin connection with user/password on the DB server.",
- "Conexión admin remota validada.": "Remote admin connection validated.",
- "Debes permitir la conexión al servidor PostgreSQL y usar un usuario con permisos completos (superuser/admin).": "You must allow the connection to the PostgreSQL server and use a full-privilege user (superuser/admin).",
- "No se pudo conectar al servidor DB con credenciales admin: {}": "Could not connect to the DB server with admin credentials: {}",
- "No se pudieron detectar DBs por prefijo '{}': {}": "Could not detect DBs by prefix '{}': {}",
- "Fallo al consultar DBs: {}": "Failed to query databases: {}",
+ "\nAvailable databases:": "\nDBs disponibles:",
+ "\nCandidate databases for deletion:": "\nDBs candidatas para eliminación:",
+ " No instance folders were detected in the base directory.": " No se detectaron carpetas de instancia en el directorio base.",
+ " You can type the name of a known instance": " Puedes escribir el nombre de una instancia conocida",
+ " to remove other residual data such as configs, services, logs, etc.": " para eliminar otros datos residuales como configs, servicios, logs, etc.",
+ "No databases detected/specified for deletion.": "No hay DBs detectadas/indicadas para eliminar.",
+ "Local cleanup (service/config/store) will proceed. Dropping DBs/roles is skipped for lack of an admin connection to the DB server.": "Se continuará con limpieza local (servicio/config/store). El borrado de DB/roles se omite por falta de conexión admin al servidor DB.",
+ "Could not use sudo -u postgres on this server.": "No fue posible usar sudo -u postgres en este servidor.",
+ "Local admin access to PostgreSQL detected (sudo -u postgres).": "Acceso admin local a PostgreSQL detectado (sudo -u postgres).",
+ "We will try an admin connection with user/password on the DB server.": "Intentaremos conexión admin con usuario/contraseña en el servidor DB.",
+ "Remote admin connection validated.": "Conexión admin remota validada.",
+ "You must allow the connection to the PostgreSQL server and use a full-privilege user (superuser/admin).": "Debes permitir la conexión al servidor PostgreSQL y usar un usuario con permisos completos (superuser/admin).",
+ "Could not connect to the DB server with admin credentials: {}": "No se pudo conectar al servidor DB con credenciales admin: {}",
+ "Could not detect DBs by prefix '{}': {}": "No se pudieron detectar DBs por prefijo '{}': {}",
+ "Failed to query databases: {}": "Fallo al consultar DBs: {}",
# --- displayed strings: descriptions, table cells, status labels ---
- "echo '[INFO] Certificado autofirmado existente, se reutiliza.'; ": "echo '[INFO] Existing self-signed certificate, reusing it.'; ",
- "No seleccionar": "Do not select",
- "(no existe)": "(does not exist)",
- "Autoarranque": "Autostart",
- "Autofirmado": "Self-signed",
- "inactivo/no instalado": "inactive/not installed",
- "activo": "active",
- "detenido/inexistente": "stopped/nonexistent",
- ", autoarranque no": ", autostart no",
- "requirements.txt (seleccionar ruta)": "requirements.txt (select path)",
- "Servicios Odoo detectados\n": "Detected Odoo services\n",
- "Instancias: Odoo / rutas / DB\n": "Instances: Odoo / paths / DB\n",
- "Instancias: Python\n": "Instances: Python\n",
- "Instancias: Nginx / puertos\n": "Instances: Nginx / ports\n",
- "no detectadas": "not detected",
- "Filestores detectados\n": "Detected filestores\n",
- "Instancias": "Instances",
- "Detalle de certificados TLS\n": "TLS certificate details\n",
- "{} (no existe)": "{} (does not exist)",
- "{} libres, {} usado ({})": "{} free, {} used ({})",
- "{} (no medible)": "{} (not measurable)",
- "{} DB(s) detectada(s)": "{} DB(s) detected",
- "Logs de Odoo": "Odoo logs",
- "Log de Odoo": "Odoo log",
- "(no medible)": "(not measurable)",
- "Lista manual de paquetes": "Manual package list",
- "Permisos {} en {}": "Permissions {} on {}",
- "Permisos carpeta config": "Permissions on config folder",
- "Permisos fullchain": "Permissions on fullchain",
- "Recargar systemd": "Reload systemd",
- "Recargar Nginx": "Reload Nginx",
- "[Cleanup] Recargar systemd": "[Cleanup] Reload systemd",
- "[Cleanup] Recargar Nginx": "[Cleanup] Reload Nginx",
- "Esperar socket fail2ban listo": "Wait for the fail2ban socket to be ready",
- "Info rol DB remoto": "Remote DB role info",
- "Construir fullchain (cert + intermediate)": "Build fullchain (cert + intermediate)",
- "Usar server.crt como fullchain": "Use server.crt as fullchain",
- "Reabrir logs Nginx": "Reopen Nginx logs",
- "Mostrar permisos finales de logs": "Show final log permissions",
- "Escribir {}": "Write {}",
- "Directorio de backups": "Backups directory",
- "desconocido": "unknown",
- "No existe el log: {}": "Log does not exist: {}",
- "IPs públicas detectadas en log (ej.: {}).": "Public IPs detected in log (e.g.: {}).",
- "fallo de conexión/consulta -> {}": "connection/query failure -> {}",
- "vigente > {} días": "valid > {} days",
- "caduca antes de {} días ({})": "expires in less than {} days ({})",
- 'Asegurar logrotate instalado': 'Ensure logrotate is installed',
- 'Validar configuración logrotate (dry-run)': 'Validate logrotate configuration (dry-run)',
- 'Actualizar paquetes': 'Update packages',
- 'Instalar fail2ban': 'Install fail2ban',
- 'Crear /etc/fail2ban/jail.d': 'Create /etc/fail2ban/jail.d',
- 'Asegurar fail2ban instalado': 'Ensure fail2ban is installed',
- 'Crear directorios fail2ban': 'Create fail2ban directories',
- 'Crear directorio filtros fail2ban': 'Create fail2ban filters directory',
- 'Instalar dependencias base Odoo': 'Install Odoo base dependencies',
- 'Crear usuario de sistema (si falta)': 'Create system user (if missing)',
- 'Crear directorios instancia': 'Create instance directories',
- 'Ajustar ownership base': 'Adjust base ownership',
- 'Instalar PostgreSQL': 'Install PostgreSQL',
- 'Habilitar y arrancar PostgreSQL': 'Enable and start PostgreSQL',
- 'Asegurar rol PostgreSQL (crear si falta)': 'Ensure PostgreSQL role (create if missing)',
- 'Validar login del usuario DB': 'Validate DB user login',
- 'Instalar Nginx': 'Install Nginx',
- 'Habilitar Nginx': 'Enable Nginx',
- 'Crear directorio SSL dedicado': 'Create dedicated SSL directory',
- 'Copiar server.crt': 'Copy server.crt',
- 'Copiar server.key': 'Copy server.key',
- 'Asegurar directorio SSL dedicado': 'Ensure dedicated SSL directory',
- 'Generar autofirmado si falta (server.key/fullchain)': 'Generate self-signed if missing (server.key/fullchain)',
- 'Ajustar permisos de certificados autofirmados': 'Adjust self-signed certificate permissions',
- 'Habilitar y arrancar timer de backup': 'Enable and start backup timer',
- 'Detener y deshabilitar timer': 'Stop and disable timer',
- 'Eliminar units y script de backup': 'Remove backup units and script',
- 'Asegurar UFW instalado': 'Ensure UFW is installed',
- 'Política por defecto: denegar entrante': 'Default policy: deny incoming',
- 'Política por defecto: permitir saliente': 'Default policy: allow outgoing',
- "Eliminar clave 'logrotate' obsoleta del odoo.conf (Odoo ≥13 la ignora)": "Remove obsolete 'logrotate' key from odoo.conf (Odoo ≥13 ignores it)",
- 'Validar configuración fail2ban': 'Validate fail2ban configuration',
- 'Habilitar y arrancar fail2ban': 'Enable and start fail2ban',
- 'Reiniciar fail2ban': 'Restart fail2ban',
- 'Validar log de instancia': 'Validate instance log',
- 'Probar regex fail2ban con log Odoo': 'Test fail2ban regex against the Odoo log',
- 'Habilitar y arrancar servicio Odoo': 'Enable and start the Odoo service',
- 'Habilitar autoarranque del servicio Odoo': 'Enable Odoo service autostart',
- 'Arrancar servicio Odoo': 'Start the Odoo service',
- 'Asegurar rol PostgreSQL local (crear si falta)': 'Ensure local PostgreSQL role (create if missing)',
- 'Desactivar vhost HTTPS de la instancia': 'Disable the instance HTTPS vhost',
- 'Activar vhost HTTP de la instancia': 'Enable the instance HTTP vhost',
- 'Validar Nginx': 'Validate Nginx',
- 'Desactivar vhost HTTP de la instancia': 'Disable the instance HTTP vhost',
- 'Activar vhost HTTPS de la instancia': 'Enable the instance HTTPS vhost',
- 'Copiar intermediate.crt': 'Copy intermediate.crt',
- 'Validar clave privada TLS': 'Validate TLS private key',
- 'Validar certificado principal TLS': 'Validate main TLS certificate',
- 'Validar correspondencia KEY/CRT': 'Validate KEY/CRT match',
- 'Validar fullchain TLS': 'Validate TLS fullchain',
- 'Permitir HTTP (80)': 'Allow HTTP (80)',
- 'Permitir HTTPS (443)': 'Allow HTTPS (443)',
- 'Escribir ': 'Write ',
- 'Deshabilitar autoarranque de servicio Odoo': 'Disable Odoo service autostart',
- 'Arrancar servicio Odoo (sin autoarranque)': 'Start the Odoo service (without autostart)',
- "Permitir listen_addresses='*'": "Allow listen_addresses='*'",
- 'Añadir regla pg_hba por IP app server': 'Add pg_hba rule for the app-server IP',
- 'Reiniciar PostgreSQL': 'Restart PostgreSQL',
- '[Cleanup] Detener servicio Odoo': '[Cleanup] Stop the Odoo service',
- '[Cleanup] Deshabilitar servicio Odoo': '[Cleanup] Disable the Odoo service',
- '[Cleanup] Eliminar unit file': '[Cleanup] Remove unit file',
- '[Cleanup] Eliminar configuración Odoo': '[Cleanup] Remove Odoo configuration',
- '[Cleanup] Eliminar home de instancia': '[Cleanup] Remove instance home',
- '[Cleanup] Eliminar Nginx HTTP': '[Cleanup] Remove Nginx HTTP',
- '[Cleanup] Eliminar Nginx HTTPS': '[Cleanup] Remove Nginx HTTPS',
- '[Cleanup] Eliminar SSL de instancia': '[Cleanup] Remove instance SSL',
- '[Cleanup] Eliminar rol PostgreSQL de la instancia (si existe)': '[Cleanup] Remove the instance PostgreSQL role (if it exists)',
- 'Asegurar directorio /var/log/nginx': 'Ensure /var/log/nginx directory',
- 'Recrear access log de instancia': 'Recreate instance access log',
- 'Recrear error log de instancia': 'Recreate instance error log',
- 'Validar venv de la instancia': 'Validate the instance venv',
- 'Mostrar paquetes instalados (resumen)': 'Show installed packages (summary)',
- 'Crear directorio de backup de configuración': 'Create configuration backup directory',
- 'Detener servicio Odoo': 'Stop the Odoo service',
- 'Deshabilitar servicio Odoo': 'Disable the Odoo service',
- 'Eliminar unit file': 'Remove unit file',
- 'Eliminar configuración Odoo': 'Remove Odoo configuration',
- 'Eliminar home de instancia': 'Remove instance home',
- 'Eliminar Nginx HTTP': 'Remove Nginx HTTP',
- 'Eliminar Nginx HTTPS': 'Remove Nginx HTTPS',
- 'Eliminar SSL de instancia': 'Remove instance SSL',
- 'Validar archivo requirements': 'Validate requirements file',
- 'Instalar paquetes desde requirements en venv': 'Install packages from requirements into the venv',
- 'Instalar paquetes en venv': 'Install packages into the venv',
- 'Eliminar filestore': 'Remove filestore',
- 'Eliminar usuario Linux de instancia': 'Remove the instance Linux user',
- 'Eliminar logs Odoo/Nginx de instancia': 'Remove the instance Odoo/Nginx logs',
- 'Eliminar raíz filestore de instancia': 'Remove the instance filestore root',
- 'Validar/recargar Nginx (best effort)': 'Validate/reload Nginx (best effort)',
- "for i in $(seq 1 15); do fail2ban-client ping >/dev/null 2>&1 && exit 0; sleep 1; done; echo '[ERROR] fail2ban activo pero socket no disponible tras espera.'; systemctl status fail2ban --no-pager -n 50 || true; exit 1": "for i in $(seq 1 15); do fail2ban-client ping >/dev/null 2>&1 && exit 0; sleep 1; done; echo '[ERROR] fail2ban is active but its socket is unavailable after waiting.'; systemctl status fail2ban --no-pager -n 50 || true; exit 1",
- "echo '[INFO] DB host remoto: se omite creación de rol sin credenciales admin remotas; se validará login del usuario indicado.'": "echo '[INFO] Remote DB host: role creation is skipped without remote admin credentials; the given user login will be validated.'",
- "|| (echo '[ERROR] La clave privada no corresponde con el certificado público seleccionado.' && exit 1)": "|| (echo '[ERROR] The private key does not match the selected public certificate.' && exit 1)",
- " ya existe; se reutiliza sin cambiar contraseña.'; END IF; END $$;": " already exists; reusing it without changing the password.'; END IF; END $$;",
- '[Unit]\nDescription=Backup programado de Odoo (': '[Unit]\nDescription=Scheduled Odoo backup (',
- '[Unit]\nDescription=Timer de backup de Odoo (': '[Unit]\nDescription=Odoo backup timer (',
- 'instance inválida. Usa formato: inicia con letra minúscula y solo [a-z0-9_] (máx 32).': 'invalid instance. Use the format: start with a lowercase letter and only [a-z0-9_] (max 32).',
- 'db_user inválido para PostgreSQL. Usa formato: inicia con [a-z_] y solo [a-z0-9_] (máx 63).': 'invalid db_user for PostgreSQL. Use the format: start with [a-z_] and only [a-z0-9_] (max 63).',
- 'Para aplicar cambios en sistema ejecuta como root (sudo).': 'To apply system changes, run as root (sudo).',
- 'Fallo ejecutando: ': 'Failed running: ',
- 'Escribir nombre manualmente': 'Type the name manually',
- '(sin backups)': '(no backups)',
- '(sin salida)': '(no output)',
- '(sin reglas)': '(no rules)',
- '(sin logs)': '(no logs)',
- '(sin ficheros de log)': '(no log files)',
- '(vacío)': '(empty)',
- '(sin timer configurado)': '(no timer configured)',
- 'No se pudo obtener estado del jail.': 'Could not get the jail status.',
- 'No se pudo consultar el jail.': 'Could not query the jail.',
- 'No se pudo leer el log para evaluar IPs.': 'Could not read the log to evaluate IPs.',
- 'No se detectaron IPs válidas en las últimas líneas del log.': 'No valid IPs detected in the last log lines.',
- 'Servicio activo': 'Active service',
- 'No existe el log: ': 'Log does not exist: ',
- 'IPs públicas detectadas en log (ej.: ': 'Public IPs detected in log (e.g.: ',
- 'Certificado público (CRT)': 'Public certificate (CRT)',
- 'falló': 'failed',
- 'sin respuesta en 127.0.0.1': 'no response on 127.0.0.1',
- 'puerto HTTP no numérico en config': 'non-numeric HTTP port in config',
- 'Servicio Odoo': 'Odoo service',
- 'Conexión DB': 'DB connection',
- ', autoarranque sí': ', autostart yes',
- 'Rotación log Odoo': 'Odoo log rotation',
- 'Política logrotate.d': 'logrotate.d policy',
- 'Home instancia': 'Instance home',
- 'Sí - HTTP': 'Yes - HTTP',
- 'Sí - HTTPS': 'Yes - HTTPS',
- '- Separados por comas en una línea': '- Comma-separated on a single line',
- '- O una dependencia por línea (Enter en vacío para terminar)': '- Or one dependency per line (empty Enter to finish)',
- 'ELIMINAR ': 'DELETE ',
- 'Configuración TLS incompleta': 'Incomplete TLS configuration',
- 'no indicada, se omite validación': 'not provided, validation skipped',
- 'fallo de conexión/consulta -> ': 'connection/query failure -> ',
- ' DB(s) detectada(s)': ' DB(s) detected',
- '[OK] Acceso admin local a PostgreSQL detectado (sudo -u postgres).': '[OK] Local PostgreSQL admin access detected (sudo -u postgres).',
- 'ELIMINAR-TODO ': 'DELETE-ALL ',
- 'Instancia': 'Instance',
- 'Servicio systemd detectado': 'systemd service detected',
- 'Home de instancia detectado': 'Instance home detected',
- 'Configuración detectada': 'Configuration detected',
- 'Nginx HTTP detectado': 'Nginx HTTP detected',
- 'Nginx HTTPS detectado': 'Nginx HTTPS detected',
- 'SSL detectado': 'SSL detected',
- 'Filestore raíz detectado': 'Filestore root detected',
- 'DBs por filestore': 'DBs by filestore',
- 'DBs por prefijo': 'DBs by prefix',
- 'DBs por dueño/nombre': 'DBs by owner/name',
- 'Usuario de BD de la instancia (para encontrar bases asociadas)': 'Instance DB user (to find associated databases)',
- 'DBs a eliminar': 'DBs to remove',
- '(ninguna)': '(none)',
- 'no disponible (solo limpieza local)': 'unavailable (local cleanup only)',
- '(ninguna detectada)': '(none detected)',
- 'sin detalle': 'no detail',
- "Dirs con 'odoo'": "Dirs with 'odoo'",
- '(sin servicios detectados)': '(no services detected)',
- '(sin instancias detectadas)': '(no instances detected)',
- 'no se pudo validar expiración': 'could not validate expiration',
- 'sin TLS': 'no TLS',
- 'Virtualización': 'Virtualization',
- 'Python3 (sistema)': 'Python3 (system)',
- 'Resumen del servidor\n': 'Server summary\n',
- 'Artefactos detectados por búsqueda\n': 'Artifacts detected by search\n',
- 'Archivos de configuración Odoo detectados\n': 'Detected Odoo configuration files\n',
- 'Configs Nginx relacionadas con Odoo\n': 'Odoo-related Nginx configs\n',
- 'no detectado': 'not detected',
- 'no detectada': 'not detected',
- ' días': ' days',
- ' días (': ' days (',
- 'no disponible': 'unavailable',
+ "echo '[INFO] Existing self-signed certificate, reusing it.'; ": "echo '[INFO] Certificado autofirmado existente, se reutiliza.'; ",
+ "Do not select": "No seleccionar",
+ "(does not exist)": "(no existe)",
+ "Autostart": "Autoarranque",
+ "Self-signed": "Autofirmado",
+ "inactive/not installed": "inactivo/no instalado",
+ "active": "activo",
+ "stopped/nonexistent": "detenido/inexistente",
+ ", autostart no": ", autoarranque no",
+ "requirements.txt (select path)": "requirements.txt (seleccionar ruta)",
+ "Detected Odoo services\n": "Servicios Odoo detectados\n",
+ "Instances: Odoo / paths / DB\n": "Instancias: Odoo / rutas / DB\n",
+ "Instances: Python\n": "Instancias: Python\n",
+ "Instances: Nginx / ports\n": "Instancias: Nginx / puertos\n",
+ "not detected": "no detectadas",
+ "Detected filestores\n": "Filestores detectados\n",
+ "Instances": "Instancias",
+ "TLS certificate details\n": "Detalle de certificados TLS\n",
+ "{} (does not exist)": "{} (no existe)",
+ "{} free, {} used ({})": "{} libres, {} usado ({})",
+ "{} (not measurable)": "{} (no medible)",
+ "{} DB(s) detected": "{} DB(s) detectada(s)",
+ "Odoo logs": "Logs de Odoo",
+ "Odoo log": "Log de Odoo",
+ "(not measurable)": "(no medible)",
+ "Manual package list": "Lista manual de paquetes",
+ "Permissions {} on {}": "Permisos {} en {}",
+ "Permissions on config folder": "Permisos carpeta config",
+ "Permissions on fullchain": "Permisos fullchain",
+ "Reload systemd": "Recargar systemd",
+ "Reload Nginx": "Recargar Nginx",
+ "[Cleanup] Reload systemd": "[Cleanup] Recargar systemd",
+ "[Cleanup] Reload Nginx": "[Cleanup] Recargar Nginx",
+ "Wait for the fail2ban socket to be ready": "Esperar socket fail2ban listo",
+ "Remote DB role info": "Info rol DB remoto",
+ "Build fullchain (cert + intermediate)": "Construir fullchain (cert + intermediate)",
+ "Use server.crt as fullchain": "Usar server.crt como fullchain",
+ "Reopen Nginx logs": "Reabrir logs Nginx",
+ "Show final log permissions": "Mostrar permisos finales de logs",
+ "Write {}": "Escribir {}",
+ "Backups directory": "Directorio de backups",
+ "unknown": "desconocido",
+ "Log does not exist: {}": "No existe el log: {}",
+ "Public IPs detected in log (e.g.: {}).": "IPs públicas detectadas en log (ej.: {}).",
+ "connection/query failure -> {}": "fallo de conexión/consulta -> {}",
+ "valid > {} days": "vigente > {} días",
+ "expires in less than {} days ({})": "caduca antes de {} días ({})",
+ 'Ensure logrotate is installed': 'Asegurar logrotate instalado',
+ 'Validate logrotate configuration (dry-run)': 'Validar configuración logrotate (dry-run)',
+ 'Update packages': 'Actualizar paquetes',
+ 'Install fail2ban': 'Instalar fail2ban',
+ 'Create /etc/fail2ban/jail.d': 'Crear /etc/fail2ban/jail.d',
+ 'Ensure fail2ban is installed': 'Asegurar fail2ban instalado',
+ 'Create fail2ban directories': 'Crear directorios fail2ban',
+ 'Create fail2ban filters directory': 'Crear directorio filtros fail2ban',
+ 'Install Odoo base dependencies': 'Instalar dependencias base Odoo',
+ 'Create system user (if missing)': 'Crear usuario de sistema (si falta)',
+ 'Create instance directories': 'Crear directorios instancia',
+ 'Adjust base ownership': 'Ajustar ownership base',
+ 'Install PostgreSQL': 'Instalar PostgreSQL',
+ 'Enable and start PostgreSQL': 'Habilitar y arrancar PostgreSQL',
+ 'Ensure PostgreSQL role (create if missing)': 'Asegurar rol PostgreSQL (crear si falta)',
+ 'Validate DB user login': 'Validar login del usuario DB',
+ 'Install Nginx': 'Instalar Nginx',
+ 'Enable Nginx': 'Habilitar Nginx',
+ 'Create dedicated SSL directory': 'Crear directorio SSL dedicado',
+ 'Copy server.crt': 'Copiar server.crt',
+ 'Copy server.key': 'Copiar server.key',
+ 'Ensure dedicated SSL directory': 'Asegurar directorio SSL dedicado',
+ 'Generate self-signed if missing (server.key/fullchain)': 'Generar autofirmado si falta (server.key/fullchain)',
+ 'Adjust self-signed certificate permissions': 'Ajustar permisos de certificados autofirmados',
+ 'Enable and start backup timer': 'Habilitar y arrancar timer de backup',
+ 'Stop and disable timer': 'Detener y deshabilitar timer',
+ 'Remove backup units and script': 'Eliminar units y script de backup',
+ 'Ensure UFW is installed': 'Asegurar UFW instalado',
+ 'Default policy: deny incoming': 'Política por defecto: denegar entrante',
+ 'Default policy: allow outgoing': 'Política por defecto: permitir saliente',
+ "Remove obsolete 'logrotate' key from odoo.conf (Odoo ≥13 ignores it)": "Eliminar clave 'logrotate' obsoleta del odoo.conf (Odoo ≥13 la ignora)",
+ 'Validate fail2ban configuration': 'Validar configuración fail2ban',
+ 'Enable and start fail2ban': 'Habilitar y arrancar fail2ban',
+ 'Restart fail2ban': 'Reiniciar fail2ban',
+ 'Validate instance log': 'Validar log de instancia',
+ 'Test fail2ban regex against the Odoo log': 'Probar regex fail2ban con log Odoo',
+ 'Enable and start the Odoo service': 'Habilitar y arrancar servicio Odoo',
+ 'Enable Odoo service autostart': 'Habilitar autoarranque del servicio Odoo',
+ 'Start the Odoo service': 'Arrancar servicio Odoo',
+ 'Ensure local PostgreSQL role (create if missing)': 'Asegurar rol PostgreSQL local (crear si falta)',
+ 'Disable the instance HTTPS vhost': 'Desactivar vhost HTTPS de la instancia',
+ 'Enable the instance HTTP vhost': 'Activar vhost HTTP de la instancia',
+ 'Validate Nginx': 'Validar Nginx',
+ 'Disable the instance HTTP vhost': 'Desactivar vhost HTTP de la instancia',
+ 'Enable the instance HTTPS vhost': 'Activar vhost HTTPS de la instancia',
+ 'Copy intermediate.crt': 'Copiar intermediate.crt',
+ 'Validate TLS private key': 'Validar clave privada TLS',
+ 'Validate main TLS certificate': 'Validar certificado principal TLS',
+ 'Validate KEY/CRT match': 'Validar correspondencia KEY/CRT',
+ 'Validate TLS fullchain': 'Validar fullchain TLS',
+ 'Allow HTTP (80)': 'Permitir HTTP (80)',
+ 'Allow HTTPS (443)': 'Permitir HTTPS (443)',
+ 'Write ': 'Escribir ',
+ 'Disable Odoo service autostart': 'Deshabilitar autoarranque de servicio Odoo',
+ 'Start the Odoo service (without autostart)': 'Arrancar servicio Odoo (sin autoarranque)',
+ "Allow listen_addresses='*'": "Permitir listen_addresses='*'",
+ 'Add pg_hba rule for the app-server IP': 'Añadir regla pg_hba por IP app server',
+ 'Restart PostgreSQL': 'Reiniciar PostgreSQL',
+ '[Cleanup] Stop the Odoo service': '[Cleanup] Detener servicio Odoo',
+ '[Cleanup] Disable the Odoo service': '[Cleanup] Deshabilitar servicio Odoo',
+ '[Cleanup] Remove unit file': '[Cleanup] Eliminar unit file',
+ '[Cleanup] Remove Odoo configuration': '[Cleanup] Eliminar configuración Odoo',
+ '[Cleanup] Remove instance home': '[Cleanup] Eliminar home de instancia',
+ '[Cleanup] Remove Nginx HTTP': '[Cleanup] Eliminar Nginx HTTP',
+ '[Cleanup] Remove Nginx HTTPS': '[Cleanup] Eliminar Nginx HTTPS',
+ '[Cleanup] Remove instance SSL': '[Cleanup] Eliminar SSL de instancia',
+ '[Cleanup] Remove the instance PostgreSQL role (if it exists)': '[Cleanup] Eliminar rol PostgreSQL de la instancia (si existe)',
+ 'Ensure /var/log/nginx directory': 'Asegurar directorio /var/log/nginx',
+ 'Recreate instance access log': 'Recrear access log de instancia',
+ 'Recreate instance error log': 'Recrear error log de instancia',
+ 'Validate the instance venv': 'Validar venv de la instancia',
+ 'Show installed packages (summary)': 'Mostrar paquetes instalados (resumen)',
+ 'Create configuration backup directory': 'Crear directorio de backup de configuración',
+ 'Stop the Odoo service': 'Detener servicio Odoo',
+ 'Disable the Odoo service': 'Deshabilitar servicio Odoo',
+ 'Remove unit file': 'Eliminar unit file',
+ 'Remove Odoo configuration': 'Eliminar configuración Odoo',
+ 'Remove instance home': 'Eliminar home de instancia',
+ 'Remove Nginx HTTP': 'Eliminar Nginx HTTP',
+ 'Remove Nginx HTTPS': 'Eliminar Nginx HTTPS',
+ 'Remove instance SSL': 'Eliminar SSL de instancia',
+ 'Validate requirements file': 'Validar archivo requirements',
+ 'Install packages from requirements into the venv': 'Instalar paquetes desde requirements en venv',
+ 'Install packages into the venv': 'Instalar paquetes en venv',
+ 'Remove filestore': 'Eliminar filestore',
+ 'Remove the instance Linux user': 'Eliminar usuario Linux de instancia',
+ 'Remove the instance Odoo/Nginx logs': 'Eliminar logs Odoo/Nginx de instancia',
+ 'Remove the instance filestore root': 'Eliminar raíz filestore de instancia',
+ 'Validate/reload Nginx (best effort)': 'Validar/recargar Nginx (best effort)',
+ "for i in $(seq 1 15); do fail2ban-client ping >/dev/null 2>&1 && exit 0; sleep 1; done; echo '[ERROR] fail2ban is active but its socket is unavailable after waiting.'; systemctl status fail2ban --no-pager -n 50 || true; exit 1": "for i in $(seq 1 15); do fail2ban-client ping >/dev/null 2>&1 && exit 0; sleep 1; done; echo '[ERROR] fail2ban activo pero socket no disponible tras espera.'; systemctl status fail2ban --no-pager -n 50 || true; exit 1",
+ "echo '[INFO] Remote DB host: role creation is skipped without remote admin credentials; the given user login will be validated.'": "echo '[INFO] DB host remoto: se omite creación de rol sin credenciales admin remotas; se validará login del usuario indicado.'",
+ "|| (echo '[ERROR] The private key does not match the selected public certificate.' && exit 1)": "|| (echo '[ERROR] La clave privada no corresponde con el certificado público seleccionado.' && exit 1)",
+ " already exists; reusing it without changing the password.'; END IF; END $$;": " ya existe; se reutiliza sin cambiar contraseña.'; END IF; END $$;",
+ '[Unit]\nDescription=Scheduled Odoo backup (': '[Unit]\nDescription=Backup programado de Odoo (',
+ '[Unit]\nDescription=Odoo backup timer (': '[Unit]\nDescription=Timer de backup de Odoo (',
+ 'invalid instance. Use the format: start with a lowercase letter and only [a-z0-9_] (max 32).': 'instance inválida. Usa formato: inicia con letra minúscula y solo [a-z0-9_] (máx 32).',
+ 'invalid db_user for PostgreSQL. Use the format: start with [a-z_] and only [a-z0-9_] (max 63).': 'db_user inválido para PostgreSQL. Usa formato: inicia con [a-z_] y solo [a-z0-9_] (máx 63).',
+ 'To apply system changes, run as root (sudo).': 'Para aplicar cambios en sistema ejecuta como root (sudo).',
+ 'Failed running: ': 'Fallo ejecutando: ',
+ 'Type the name manually': 'Escribir nombre manualmente',
+ '(no backups)': '(sin backups)',
+ '(no output)': '(sin salida)',
+ '(no rules)': '(sin reglas)',
+ '(no logs)': '(sin logs)',
+ '(no log files)': '(sin ficheros de log)',
+ '(empty)': '(vacío)',
+ '(no timer configured)': '(sin timer configurado)',
+ 'Could not get the jail status.': 'No se pudo obtener estado del jail.',
+ 'Could not query the jail.': 'No se pudo consultar el jail.',
+ 'Could not read the log to evaluate IPs.': 'No se pudo leer el log para evaluar IPs.',
+ 'No valid IPs detected in the last log lines.': 'No se detectaron IPs válidas en las últimas líneas del log.',
+ 'Active service': 'Servicio activo',
+ 'Log does not exist: ': 'No existe el log: ',
+ 'Public IPs detected in log (e.g.: ': 'IPs públicas detectadas en log (ej.: ',
+ 'Public certificate (CRT)': 'Certificado público (CRT)',
+ 'failed': 'falló',
+ 'no response on 127.0.0.1': 'sin respuesta en 127.0.0.1',
+ 'non-numeric HTTP port in config': 'puerto HTTP no numérico en config',
+ 'Odoo service': 'Servicio Odoo',
+ 'DB connection': 'Conexión DB',
+ ', autostart yes': ', autoarranque sí',
+ 'Odoo log rotation': 'Rotación log Odoo',
+ 'logrotate.d policy': 'Política logrotate.d',
+ 'Instance home': 'Home instancia',
+ 'Yes - HTTP': 'Sí - HTTP',
+ 'Yes - HTTPS': 'Sí - HTTPS',
+ '- Comma-separated on a single line': '- Separados por comas en una línea',
+ '- Or one dependency per line (empty Enter to finish)': '- O una dependencia por línea (Enter en vacío para terminar)',
+ 'DELETE ': 'ELIMINAR ',
+ 'Incomplete TLS configuration': 'Configuración TLS incompleta',
+ 'not provided, validation skipped': 'no indicada, se omite validación',
+ 'connection/query failure -> ': 'fallo de conexión/consulta -> ',
+ ' DB(s) detected': ' DB(s) detectada(s)',
+ '[OK] Local PostgreSQL admin access detected (sudo -u postgres).': '[OK] Acceso admin local a PostgreSQL detectado (sudo -u postgres).',
+ 'DELETE-ALL ': 'ELIMINAR-TODO ',
+ 'Instance': 'Instancia',
+ 'systemd service detected': 'Servicio systemd detectado',
+ 'Instance home detected': 'Home de instancia detectado',
+ 'Configuration detected': 'Configuración detectada',
+ 'Nginx HTTP detected': 'Nginx HTTP detectado',
+ 'Nginx HTTPS detected': 'Nginx HTTPS detectado',
+ 'SSL detected': 'SSL detectado',
+ 'Filestore root detected': 'Filestore raíz detectado',
+ 'DBs by filestore': 'DBs por filestore',
+ 'DBs by prefix': 'DBs por prefijo',
+ 'DBs by owner/name': 'DBs por dueño/nombre',
+ 'Instance DB user (to find associated databases)': 'Usuario de BD de la instancia (para encontrar bases asociadas)',
+ 'DBs to remove': 'DBs a eliminar',
+ '(none)': '(ninguna)',
+ 'unavailable (local cleanup only)': 'no disponible (solo limpieza local)',
+ '(none detected)': '(ninguna detectada)',
+ 'no detail': 'sin detalle',
+ "Dirs with 'odoo'": "Dirs con 'odoo'",
+ '(no services detected)': '(sin servicios detectados)',
+ '(no instances detected)': '(sin instancias detectadas)',
+ 'could not validate expiration': 'no se pudo validar expiración',
+ 'no TLS': 'sin TLS',
+ 'Virtualization': 'Virtualización',
+ 'Python3 (system)': 'Python3 (sistema)',
+ 'Server summary\n': 'Resumen del servidor\n',
+ 'Artifacts detected by search\n': 'Artefactos detectados por búsqueda\n',
+ 'Detected Odoo configuration files\n': 'Archivos de configuración Odoo detectados\n',
+ 'Odoo-related Nginx configs\n': 'Configs Nginx relacionadas con Odoo\n',
+ ' days': ' días',
+ ' days (': ' días (',
+ 'unavailable': 'no disponible',
# --- production defaults, wkhtmltopdf, version detection, status audit ---
# status split + posture
- "Estado: ubicaciones y nombres": "Status: locations & names",
- "Estado: recursos detectados": "Status: detected resources",
- "Estado: valores de configuración": "Status: config values",
- "Estado: seguridad y producción": "Status: security & production",
- "Postura de seguridad y producción": "Security & production posture",
- "Postura de producción": "Production posture",
- "No hay un config de Odoo legible en {}.": "No readable Odoo config at {}.",
+ "Status: locations & names": "Estado: ubicaciones y nombres",
+ "Status: detected resources": "Estado: recursos detectados",
+ "Status: config values": "Estado: valores de configuración",
+ "Status: security & production": "Estado: seguridad y producción",
+ "Security & production posture": "Postura de seguridad y producción",
+ "Production posture": "Postura de producción",
+ "No readable Odoo config at {}.": "No hay un config de Odoo legible en {}.",
# secrets + list_db + hardening prompts
- "Se generó un valor fuerte para {} — pulsa Enter para aceptarlo y anótalo ahora.": "A strong value for {} was generated — press Enter to accept it, and record it now.",
- "Ese valor coincide con el nombre de la instancia y es fácil de adivinar; la contraseña maestra protege el gestor de bases de datos. Prefiere el valor fuerte generado.": "That value equals the instance name and is easily guessable; the master password guards the database manager. Prefer the generated strong value.",
- "admin_passwd de Odoo (contraseña maestra)": "Odoo admin_passwd (master password)",
- "¿Exponer el gestor de bases de datos de Odoo por HTTP (list_db)? Recomendado: No": "Expose the Odoo database manager over HTTP (list_db)? Recommended: No",
- "El gestor de bases de datos quedará accesible por HTTP (crear/duplicar/eliminar/restaurar), protegido solo por la contraseña maestra. Mantén una contraseña maestra fuerte y un dbfilter.": "The database manager will be reachable over HTTP (create/duplicate/drop/restore), guarded only by the master password. Keep a strong master password and a dbfilter.",
- "Gestor de bases de datos desactivado (list_db = False). Crea la primera base de datos por CLI (odoo-bin -d -i base --stop-after-init) o reactivándolo temporalmente.": "Database manager disabled (list_db = False). Create the first database via CLI (odoo-bin -d -i base --stop-after-init) or by temporarily re-enabling it.",
- "dbfilter (vincula host/base de datos)": "dbfilter (binds host/database)",
- "¿Restringir la instancia a una o varias bases de datos con un dbfilter (recomendado)?": "Restrict the instance to specific database(s) with a dbfilter (recommended)?",
- "Sin dbfilter: la instancia no filtrará bases de datos (todas quedan accesibles). Recomendado solo si el gestor está desactivado o se sirve una única base de datos.": "No dbfilter set: the instance will not filter databases (all are reachable). Recommended only when the manager is disabled or a single database is served.",
- "Detectados {} CPU / {} RAM -> workers sugeridos={}, max_cron_threads={}.": "Detected {} CPU / {} RAM -> suggested workers={}, max_cron_threads={}.",
- "Workers de Odoo": "Odoo workers",
- "Modo SSL de PostgreSQL (DB remota)": "PostgreSQL SSL mode (remote DB host)",
- "require (recomendado)": "require (recommended)",
- "verify-full (requiere CA)": "verify-full (needs a CA)",
- "prefer (permite tráfico en claro)": "prefer (allows cleartext fallback)",
- "Este modo SSL permite tráfico Odoo<->PostgreSQL sin cifrar por la red.": "This SSL mode allows unencrypted Odoo<->PostgreSQL traffic across the network.",
+ "A strong value for {} was generated — press Enter to accept it, and record it now.": "Se generó un valor fuerte para {} — pulsa Enter para aceptarlo y anótalo ahora.",
+ "That value equals the instance name and is easily guessable; the master password guards the database manager. Prefer the generated strong value.": "Ese valor coincide con el nombre de la instancia y es fácil de adivinar; la contraseña maestra protege el gestor de bases de datos. Prefiere el valor fuerte generado.",
+ "Odoo admin_passwd (master password)": "admin_passwd de Odoo (contraseña maestra)",
+ "Expose the Odoo database manager over HTTP (list_db)? Recommended: No": "¿Exponer el gestor de bases de datos de Odoo por HTTP (list_db)? Recomendado: No",
+ "The database manager will be reachable over HTTP (create/duplicate/drop/restore), guarded only by the master password. Keep a strong master password and a dbfilter.": "El gestor de bases de datos quedará accesible por HTTP (crear/duplicar/eliminar/restaurar), protegido solo por la contraseña maestra. Mantén una contraseña maestra fuerte y un dbfilter.",
+ "Database manager disabled (list_db = False). Create the first database via CLI (odoo-bin -d -i base --stop-after-init) or by temporarily re-enabling it.": "Gestor de bases de datos desactivado (list_db = False). Crea la primera base de datos por CLI (odoo-bin -d -i base --stop-after-init) o reactivándolo temporalmente.",
+ "dbfilter (binds host/database)": "dbfilter (vincula host/base de datos)",
+ "Restrict the instance to specific database(s) with a dbfilter (recommended)?": "¿Restringir la instancia a una o varias bases de datos con un dbfilter (recomendado)?",
+ "No dbfilter set: the instance will not filter databases (all are reachable). Recommended only when the manager is disabled or a single database is served.": "Sin dbfilter: la instancia no filtrará bases de datos (todas quedan accesibles). Recomendado solo si el gestor está desactivado o se sirve una única base de datos.",
+ "Detected {} CPU / {} RAM -> suggested workers={}, max_cron_threads={}.": "Detectados {} CPU / {} RAM -> workers sugeridos={}, max_cron_threads={}.",
+ "Odoo workers": "Workers de Odoo",
+ "PostgreSQL SSL mode (remote DB host)": "Modo SSL de PostgreSQL (DB remota)",
+ "require (recommended)": "require (recomendado)",
+ "verify-full (needs a CA)": "verify-full (requiere CA)",
+ "prefer (allows cleartext fallback)": "prefer (permite tráfico en claro)",
+ "This SSL mode allows unencrypted Odoo<->PostgreSQL traffic across the network.": "Este modo SSL permite tráfico Odoo<->PostgreSQL sin cifrar por la red.",
# wkhtmltopdf
- "Los informes PDF de Odoo (facturas, presupuestos, etc.) requieren wkhtmltopdf.": "Odoo PDF reports (invoices, quotations, etc.) require wkhtmltopdf.",
- "Instalación de wkhtmltopdf": "wkhtmltopdf installation",
- "Parcheado 0.12.6 (recomendado, verificado por checksum)": "Patched 0.12.6 (recommended, checksum-verified)",
- "Paquete de la distribución (sin parchear, fidelidad reducida)": "Distribution package (un-patched, reduced fidelity)",
- "Omitir (los informes PDF fallarán hasta instalarlo)": "Skip (PDF reports will fail until installed)",
- "wkhtmltopdf no instalado: la generación de informes PDF fallará hasta instalarlo.": "wkhtmltopdf not installed: PDF report generation will fail until it is.",
- "Instalar wkhtmltopdf de la distribución (sin parchear, fidelidad reducida)": "Install distro wkhtmltopdf (un-patched, reduced fidelity)",
- "Asegurar que curl está disponible": "Ensure curl is available",
- "Descargar wkhtmltopdf parcheado ({})": "Download patched wkhtmltopdf ({})",
- "Verificar SHA-256 de wkhtmltopdf (aborta si no coincide)": "Verify wkhtmltopdf SHA-256 (aborts on mismatch)",
- "Instalar el .deb de wkhtmltopdf verificado": "Install verified wkhtmltopdf .deb",
- "Eliminar el .deb de wkhtmltopdf descargado": "Remove downloaded wkhtmltopdf .deb",
+ "Odoo PDF reports (invoices, quotations, etc.) require wkhtmltopdf.": "Los informes PDF de Odoo (facturas, presupuestos, etc.) requieren wkhtmltopdf.",
+ "wkhtmltopdf installation": "Instalación de wkhtmltopdf",
+ "Patched 0.12.6 (recommended, checksum-verified)": "Parcheado 0.12.6 (recomendado, verificado por checksum)",
+ "Distribution package (un-patched, reduced fidelity)": "Paquete de la distribución (sin parchear, fidelidad reducida)",
+ "Skip (PDF reports will fail until installed)": "Omitir (los informes PDF fallarán hasta instalarlo)",
+ "wkhtmltopdf not installed: PDF report generation will fail until it is.": "wkhtmltopdf no instalado: la generación de informes PDF fallará hasta instalarlo.",
+ "Install distro wkhtmltopdf (un-patched, reduced fidelity)": "Instalar wkhtmltopdf de la distribución (sin parchear, fidelidad reducida)",
+ "Ensure curl is available": "Asegurar que curl está disponible",
+ "Download patched wkhtmltopdf ({})": "Descargar wkhtmltopdf parcheado ({})",
+ "Verify wkhtmltopdf SHA-256 (aborts on mismatch)": "Verificar SHA-256 de wkhtmltopdf (aborta si no coincide)",
+ "Install verified wkhtmltopdf .deb": "Instalar el .deb de wkhtmltopdf verificado",
+ "Remove downloaded wkhtmltopdf .deb": "Eliminar el .deb de wkhtmltopdf descargado",
# in-code labels migrated to English-canonical
- "Disco (home)": "Disk (home)",
- "Disco (data dir)": "Disk (data dir)",
+ "Disk (home)": "Disco (home)",
+ "Disk (data dir)": "Disco (data dir)",
# --- data-safety hardening ---
- "dominio no válido. Usa un nombre DNS como erp.example.com (opcionalmente *.example.com).": "invalid domain. Use a DNS name such as erp.example.com (optionally *.example.com).",
- "rama del repo no válida. Usa un nombre de rama como 18.0.": "invalid repo branch. Use a branch name such as 18.0.",
- "versión de Odoo no válida. Usa una versión mayor como 18 o 18.0.": "invalid Odoo version. Use a major such as 18 or 18.0.",
- "dirección IP no válida. Usa una dirección como 10.0.0.5.": "invalid IP address. Use an address such as 10.0.0.5.",
- "host de DB no válido. Usa un nombre de host, una dirección IP o un directorio de socket.": "invalid DB host. Use a host name, an IP address or a socket directory.",
- "nombre de DB no válido. Usa letras, dígitos, '_', '.' y '-' (2-63, sin símbolo inicial).": "invalid DB name. Use letters, digits, '_', '.' and '-' (2-63, no leading symbol).",
- "{} (nombres antiguos)": "{} (old names)",
- "Dar propiedad del data dir al usuario de la instancia (filestore, sessions, …)": "Own the data dir by the instance user (filestore, sessions, …)",
- "La copia por template mantiene el dueño de origen ({}) en cada tabla, así que el rol destino {} no podría usarlas. Elige la copia con pg_dump.": "The template copy keeps the source owner ({}) on every table, so the target role {} could not use them. Choose the pg_dump copy.",
- "La base de datos {} pertenece al rol {}, no al rol destino {}: no es la base de datos del destino y no se eliminará.": "The database {} belongs to role {}, not to the target role {}: it is not the target's database and will not be dropped.",
- "db_user no válido en {}: {}": "Invalid db_user in {}: {}",
- "La BD destino {} existe y se eliminará y sustituirá por una copia de {}. ¿Continuar?": "The target DB {} exists and will be dropped and replaced by a copy of {}. Continue?",
- "Una instancia nueva tiene su propio rol ({}); la copia por template dejaría todas las tablas a nombre del rol de origen. Elige la copia con pg_dump.": "A new instance gets its own role ({}); the template copy would leave every table owned by the source role. Choose the pg_dump copy.",
- "La instancia destino debe ser distinta de la instancia origen.": "The target instance must differ from the source instance.",
- "Conservar el data dir (filestores) fuera del home: moverlo a {}": "Keep the data dir (filestores) out of the home: move it to {}",
- "[INFO] No seleccionadas — su nombre empieza por '{}' pero el rol {} no es su dueño: {}. Añade abajo las que pertenezcan a esta instancia.": "[INFO] Not selected — their name starts with '{}' but role {} does not own them: {}. Add any that belong to this instance below.",
- "[ERROR] Nombre de base de datos no válido, ignorado: {}": "[ERROR] Invalid database name, ignored: {}",
- "Eliminar la jail de fail2ban de la instancia": "Remove the instance fail2ban jail",
- "Usa una ruta de directorio absoluta.": "Use an absolute directory path.",
+ "invalid domain. Use a DNS name such as erp.example.com (optionally *.example.com).": "dominio no válido. Usa un nombre DNS como erp.example.com (opcionalmente *.example.com).",
+ "invalid repo branch. Use a branch name such as 18.0.": "rama del repo no válida. Usa un nombre de rama como 18.0.",
+ "invalid Odoo version. Use a major such as 18 or 18.0.": "versión de Odoo no válida. Usa una versión mayor como 18 o 18.0.",
+ "invalid IP address. Use an address such as 10.0.0.5.": "dirección IP no válida. Usa una dirección como 10.0.0.5.",
+ "invalid DB host. Use a host name, an IP address or a socket directory.": "host de DB no válido. Usa un nombre de host, una dirección IP o un directorio de socket.",
+ "invalid DB name. Use letters, digits, '_', '.' and '-' (2-63, no leading symbol).": "nombre de DB no válido. Usa letras, dígitos, '_', '.' y '-' (2-63, sin símbolo inicial).",
+ "{} (old names)": "{} (nombres antiguos)",
+ "Own the data dir by the instance user (filestore, sessions, …)": "Dar propiedad del data dir al usuario de la instancia (filestore, sessions, …)",
+ "The template copy keeps the source owner ({}) on every table, so the target role {} could not use them. Choose the pg_dump copy.": "La copia por template mantiene el dueño de origen ({}) en cada tabla, así que el rol destino {} no podría usarlas. Elige la copia con pg_dump.",
+ "The database {} belongs to role {}, not to the target role {}: it is not the target's database and will not be dropped.": "La base de datos {} pertenece al rol {}, no al rol destino {}: no es la base de datos del destino y no se eliminará.",
+ "Invalid db_user in {}: {}": "db_user no válido en {}: {}",
+ "The target DB {} exists and will be dropped and replaced by a copy of {}. Continue?": "La BD destino {} existe y se eliminará y sustituirá por una copia de {}. ¿Continuar?",
+ "A new instance gets its own role ({}); the template copy would leave every table owned by the source role. Choose the pg_dump copy.": "Una instancia nueva tiene su propio rol ({}); la copia por template dejaría todas las tablas a nombre del rol de origen. Elige la copia con pg_dump.",
+ "The target instance must differ from the source instance.": "La instancia destino debe ser distinta de la instancia origen.",
+ "Keep the data dir (filestores) out of the home: move it to {}": "Conservar el data dir (filestores) fuera del home: moverlo a {}",
+ "[INFO] Not selected — their name starts with '{}' but role {} does not own them: {}. Add any that belong to this instance below.": "[INFO] No seleccionadas — su nombre empieza por '{}' pero el rol {} no es su dueño: {}. Añade abajo las que pertenezcan a esta instancia.",
+ "[ERROR] Invalid database name, ignored: {}": "[ERROR] Nombre de base de datos no válido, ignorado: {}",
+ "Remove the instance fail2ban jail": "Eliminar la jail de fail2ban de la instancia",
+ "Use an absolute directory path.": "Usa una ruta de directorio absoluta.",
# --- install per version ---
- "Origen de Odoo": "Odoo source",
- "Odoo (oficial)": "Odoo (official)",
- "OCB (backports de la OCA)": "OCB (OCA backports)",
- "Odoo {} no está soportado. Versiones soportadas: {}.": "Odoo {} is not supported. Supported versions: {}.",
- "La rama {} no es de Odoo {}: la configuración y el servicio se escriben para {}.": "The branch {} is not Odoo {}: the config and service are written for {}.",
- "Odoo {} admite Python {}; el python3 del host ({}) construirá el venv.": "Odoo {} supports Python {}; the host python3 ({}) will build the venv.",
- "Odoo {} admite Python {}; el python3 del host ({}) no puede construirlo, así que se instalará Python {} con uv {} en {}.": "Odoo {} supports Python {}; the host python3 ({}) cannot build it, so Python {} will be installed with uv {} into {}.",
- "No hay un uv fijado para esta arquitectura ({}).": "No pinned uv build for this architecture ({}).",
- "[Limpieza] Eliminar el data dir nuevo (si no tiene filestore)": "[Cleanup] Remove the new data dir (if it holds no filestore)",
- "se interrumpió (Ctrl+C)": "was interrupted (Ctrl+C)",
- "Crear el data dir {} (filestores, sesiones)": "Create the data dir {} (filestores, sessions)",
- "Clonar {} {} si falta": "Clone {} {} if missing",
- "Crear el venv con Python {} (uv)": "Create the venv with Python {} (uv)",
- "Crear el venv con el python3 del host": "Create the venv with the host python3",
- "Instalar pip, wheel y {} en el venv": "Install pip, wheel and {} in the venv",
- "Instalar los requirements de Odoo {}": "Install the Odoo {} requirements",
- "Instalar uv {} (verificado por checksum) si falta": "Install uv {} (checksum-verified) if missing",
- "Instalar Python {} con uv en {}": "Install Python {} with uv into {}",
- "Comprobar que PostgreSQL es {} o posterior (requisito de Odoo {})": "Check PostgreSQL is {} or newer (Odoo {} requirement)",
- "Poner la nueva contraseña en el rol local de PostgreSQL": "Set the new password on the local PostgreSQL role",
- "Reiniciar el servicio Odoo para cargar la configuración": "Restart the Odoo service to load the configuration",
- "¿Poner una nueva contraseña de DB?": "Set a new DB password?",
- "¿Poner una nueva contraseña maestra de Odoo (admin_passwd)?": "Set a new Odoo master password (admin_passwd)?",
- "La DB es remota: pon la misma contraseña en su rol allí antes del próximo reinicio.": "The DB is remote: set the same password on its role there before the next restart.",
- "Origen": "Source",
- "Destino del backup": "Backup destination",
- "core no válido. Usa odoo u ocb.": "invalid core. Use odoo or ocb.",
- "versión de Python no válida. Usa p. ej. 3.12.": "invalid Python version. Use e.g. 3.12.",
- "data_dir no válido. Usa una ruta absoluta.": "invalid data_dir. Use an absolute path.",
- "[WARN] El rol {} también lo usa: {}. Sus bases de datos no se seleccionan por dueño y el rol no se elimina.": "[WARN] Role {} is also used by: {}. Its databases are not selected by owner and the role is not dropped.",
+ "Odoo source": "Origen de Odoo",
+ "Odoo (official)": "Odoo (oficial)",
+ "OCB (OCA backports)": "OCB (backports de la OCA)",
+ "Odoo {} is not supported. Supported versions: {}.": "Odoo {} no está soportado. Versiones soportadas: {}.",
+ "The branch {} is not Odoo {}: the config and service are written for {}.": "La rama {} no es de Odoo {}: la configuración y el servicio se escriben para {}.",
+ "Odoo {} supports Python {}; the host python3 ({}) will build the venv.": "Odoo {} admite Python {}; el python3 del host ({}) construirá el venv.",
+ "Odoo {} supports Python {}; the host python3 ({}) cannot build it, so Python {} will be installed with uv {} into {}.": "Odoo {} admite Python {}; el python3 del host ({}) no puede construirlo, así que se instalará Python {} con uv {} en {}.",
+ "No pinned uv build for this architecture ({}).": "No hay un uv fijado para esta arquitectura ({}).",
+ "[Cleanup] Remove the new data dir (if it holds no filestore)": "[Limpieza] Eliminar el data dir nuevo (si no tiene filestore)",
+ "was interrupted (Ctrl+C)": "se interrumpió (Ctrl+C)",
+ "Create the data dir {} (filestores, sessions)": "Crear el data dir {} (filestores, sesiones)",
+ "Clone {} {} if missing": "Clonar {} {} si falta",
+ "Create the venv with Python {} (uv)": "Crear el venv con Python {} (uv)",
+ "Create the venv with the host python3": "Crear el venv con el python3 del host",
+ "Install pip, wheel and {} in the venv": "Instalar pip, wheel y {} en el venv",
+ "Install the Odoo {} requirements": "Instalar los requirements de Odoo {}",
+ "Install uv {} (checksum-verified) if missing": "Instalar uv {} (verificado por checksum) si falta",
+ "Install Python {} with uv into {}": "Instalar Python {} con uv en {}",
+ "Check PostgreSQL is {} or newer (Odoo {} requirement)": "Comprobar que PostgreSQL es {} o posterior (requisito de Odoo {})",
+ "Set the new password on the local PostgreSQL role": "Poner la nueva contraseña en el rol local de PostgreSQL",
+ "Restart the Odoo service to load the configuration": "Reiniciar el servicio Odoo para cargar la configuración",
+ "Set a new DB password?": "¿Poner una nueva contraseña de DB?",
+ "Set a new Odoo master password (admin_passwd)?": "¿Poner una nueva contraseña maestra de Odoo (admin_passwd)?",
+ "The DB is remote: set the same password on its role there before the next restart.": "La DB es remota: pon la misma contraseña en su rol allí antes del próximo reinicio.",
+ "Source": "Origen",
+ "Backup destination": "Destino del backup",
+ "invalid core. Use odoo or ocb.": "core no válido. Usa odoo u ocb.",
+ "invalid Python version. Use e.g. 3.12.": "versión de Python no válida. Usa p. ej. 3.12.",
+ "invalid data_dir. Use an absolute path.": "data_dir no válido. Usa una ruta absoluta.",
+ "[WARN] Role {} is also used by: {}. Its databases are not selected by owner and the role is not dropped.": "[WARN] El rol {} también lo usa: {}. Sus bases de datos no se seleccionan por dueño y el rol no se elimina.",
+ # --- labels moved to English (phase 5) ---
+ 'Owner config Odoo': 'Propietario del config de Odoo',
+ 'Owner config dir': 'Propietario del directorio de config',
+ 'Owner fullchain': 'Propietario del fullchain',
+ '{} (detected {} CPU → suggested {})': '{} (detectadas {} CPU → sugerido {})',
+ 'Only internal/private IPs were detected in the log (e.g.: {}). Risk of banning the gateway/proxy.': 'Solo se detectaron IPs internas/privadas en el log (ej.: {}). Riesgo de banear el gateway/proxy.',
+ 'IP': 'IP',
+ 'tcp': 'tcp',
+ 'udp': 'udp',
+ 'HTTP {} on {}': 'HTTP {} en {}',
+ 'max_cron_threads': 'max_cron_threads',
+ 'Private key (KEY)': 'Clave privada (KEY)',
+ 'Intermediate chain (CA bundle / intermediate)': 'Cadena intermedia (CA bundle / intermediate)',
+ 'weekly': 'semanal',
+ 'daily': 'diaria',
+ 'monthly': 'mensual',
+ '{} (not configured)': '{} (no configurada)',
+ 'No': 'No',
+ 'Requirements file (TXT/IN)': 'Archivo requirements (TXT/IN)',
+ '- requests': '- requests',
+ '- psycopg2-binary==2.9.10': '- psycopg2-binary==2.9.10',
+ '- babel>=2.14,<3': '- babel>=2.14,<3',
+ 'Python path': 'Ruta de Python',
+ 'Odoo home': 'Home de Odoo',
+ 'Config hint': 'Pista de config',
+ 'Type': 'Tipo',
+ 'Count': 'Cantidad',
+ 'Sample': 'Muestra',
+ 'Odoo': 'Odoo',
+ 'HTTP': 'HTTP',
+ 'gevent': 'gevent',
+ 'Config Odoo': 'Config Odoo',
+ 'Data dir': 'Data dir',
+ 'Filestores': 'Filestores',
+ 'Local DBs': 'DBs locales',
+ 'Python': 'Python',
+ 'Workers': 'Workers',
+ 'Addons': 'Addons',
+ 'server_name': 'server_name',
+ 'TLS type': 'Tipo TLS',
+ 'Nginx cfgs': 'Configs Nginx',
+ 'Filestore roots': 'Raíces de filestore',
+ 'Config Nginx': 'Config Nginx',
+ 'Filestore root': 'Raíz de filestore',
+ 'DB dirs': 'Dirs de DB',
+ 'list_db': 'list_db',
+ 'admin_passwd': 'admin_passwd',
+ 'wkhtmltopdf': 'wkhtmltopdf',
+ 'workers': 'workers',
+ 'db_sslmode': 'db_sslmode',
+ 'dbfilter': 'dbfilter',
+ 'TLS cert': 'Certificado TLS',
+ 'TLS key': 'Clave TLS',
+ 'Issuer': 'Emisor',
+ 'Subject': 'Sujeto',
+ 'Expires': 'Expira',
+ 'Certificate': 'Certificado',
+ 'Result': 'Resultado',
+ 'file': 'archivo',
+ 'fail2ban client': 'Cliente fail2ban',
+ 'Not configured': 'No configurado',
+ 'Custom (CA)': 'Personalizado (CA)',
+ 'Custom (external)': 'Personalizado (externo)',
+ 'DB admin access': 'Acceso admin DB',
+ 'Commands to run': 'Comandos a ejecutar',
+ 'OS': 'SO',
+ 'Architecture': 'Arquitectura',
+ 'certificate not found': 'certificado no encontrado',
+ 'Custom': 'Personalizado',
+ 'Incomplete TLS': 'TLS incompleto',
}
-
-# Runtime lookup: English (the in-code source) → Spanish.
-_ES: dict[str, str] = {english: spanish for spanish, english in _ES_TO_EN.items()}
diff --git a/instance_manager/prompts.py b/instance_manager/prompts.py
index d88fb95..032c27d 100644
--- a/instance_manager/prompts.py
+++ b/instance_manager/prompts.py
@@ -36,7 +36,7 @@ def _validate_selected_path_extension(
return True
expected = ", ".join(allowed_extensions)
- target = requested_label or "archivo"
+ target = requested_label or 'file'
print(
level_text(
"WARN",
@@ -118,9 +118,9 @@ def ask_bool(label: str, default: bool = True) -> bool:
def choose(label: str, options: list[str], default_index: int | None = None) -> str:
"""Render a numbered menu with a consistent ``0)`` cancel entry.
- If ``options`` already contains a cancel-like entry (``Cancelar``/``Volver``/
- ``Salir``), that is the ``0`` option and selecting it returns that string.
- Otherwise a synthetic ``0) Cancelar`` is shown and selecting it (or pressing
+ If ``options`` already contains a cancel-like entry (``Cancel``/``Back``/
+ ``Exit``), that is the ``0`` option and selecting it returns that string.
+ Otherwise a synthetic ``0) Cancel`` is shown and selecting it (or pressing
Enter with no default) returns ``""`` — the sentinel every caller treats as
"cancelled".
"""
@@ -132,7 +132,7 @@ def choose(label: str, options: list[str], default_index: int | None = None) ->
indexed_options = [option for option in options if option != zero_option]
# Options are shown translated but the ORIGINAL string is returned, so caller
- # comparisons against the source (Spanish) options keep working.
+ # comparisons against the source (English) options keep working.
print(f" {style('0)', 'blue', 'bold')} {t(zero_label)}")
for index, option in enumerate(indexed_options, start=1):
diff --git a/instance_manager/workflows/fail2ban.py b/instance_manager/workflows/fail2ban.py
index b040ed5..384da64 100644
--- a/instance_manager/workflows/fail2ban.py
+++ b/instance_manager/workflows/fail2ban.py
@@ -115,7 +115,7 @@ def _assess_fail2ban_log_ip_quality(log_path: str) -> tuple[str, str]:
sample_private = ", ".join(sorted(private_ips)[:3])
return (
"private-only",
- f"Solo se detectaron IPs internas/privadas en log (ej.: {sample_private}). Risk of banning the gateway/proxy.",
+ tf('Only internal/private IPs were detected in the log (e.g.: {}). Risk of banning the gateway/proxy.', sample_private),
)
@@ -141,7 +141,7 @@ def _show_fail2ban_status() -> None:
rows: list[list[str]] = [
['Active service', service_state.stdout.strip() if service_state.returncode == 0 else 'inactive/not installed'],
['Autostart', enabled_state.stdout.strip() if enabled_state.returncode == 0 else "unknown"],
- ["Cliente fail2ban", client_value],
+ ['fail2ban client', client_value],
]
print(render_table(['Check', 'Value'], rows))
diff --git a/instance_manager/workflows/health.py b/instance_manager/workflows/health.py
index 15e480c..1eea430 100644
--- a/instance_manager/workflows/health.py
+++ b/instance_manager/workflows/health.py
@@ -27,10 +27,10 @@ def _http_probe(port: str) -> tuple[bool, str]:
url = f"http://127.0.0.1:{port}{path}"
try:
with urllib.request.urlopen(url, timeout=5) as resp: # noqa: S310 (local only)
- return 200 <= resp.status < 400, f"HTTP {resp.status} en {path}"
+ return 200 <= resp.status < 400, tf('HTTP {} on {}', resp.status, path)
except urllib.error.HTTPError as error:
# A 3xx/4xx still means the server answered.
- return 200 <= error.code < 500, f"HTTP {error.code} en {path}"
+ return 200 <= error.code < 500, tf('HTTP {} on {}', error.code, path)
except (urllib.error.URLError, OSError):
continue
return False, 'no response on 127.0.0.1'
diff --git a/instance_manager/workflows/install.py b/instance_manager/workflows/install.py
index ac3624c..80d0643 100644
--- a/instance_manager/workflows/install.py
+++ b/instance_manager/workflows/install.py
@@ -438,7 +438,7 @@ def _maybe_plan_certs(config: InstanceConfig) -> list[Command]:
print(level_text("INFO", 'Select the private key (server.key)'))
key_src = select_file_path(
".",
- "Clave privada (KEY)",
+ 'Private key (KEY)',
(".key", ".pem"),
)
use_intermediate = ask_bool('Do you have an intermediate file?', True)
@@ -447,7 +447,7 @@ def _maybe_plan_certs(config: InstanceConfig) -> list[Command]:
print(level_text("INFO", 'Select the intermediate chain / CA bundle'))
intermediate_src = select_file_path(
".",
- "Cadena intermedia (CA bundle / intermediate)",
+ 'Intermediate chain (CA bundle / intermediate)',
(".crt", ".pem", ".cer", ".bundle", ".ca-bundle"),
)
diff --git a/instance_manager/workflows/logrotate.py b/instance_manager/workflows/logrotate.py
index d7b5189..05e11f3 100644
--- a/instance_manager/workflows/logrotate.py
+++ b/instance_manager/workflows/logrotate.py
@@ -37,7 +37,7 @@ def _query_log_rotation(config: InstanceConfig) -> None:
if odoo_active
else level_text("MISSING", 'INACTIVE'),
],
- ['logrotate.d policy', lr_file if lr_present else f"{lr_file} (no configurada)"],
+ ['logrotate.d policy', lr_file if lr_present else tf('{} (not configured)', lr_file)],
]
print(render_table(['Item', 'Value'], rows))
diff --git a/instance_manager/workflows/manage.py b/instance_manager/workflows/manage.py
index 6de0b36..1362623 100644
--- a/instance_manager/workflows/manage.py
+++ b/instance_manager/workflows/manage.py
@@ -91,7 +91,7 @@ def _read_nginx_https_ssl_paths(config: InstanceConfig) -> tuple[str, str]:
def _detect_certificate_mode(config: InstanceConfig) -> tuple[str, bool]:
cert_path, key_path = _read_nginx_https_ssl_paths(config)
if not cert_path and not key_path:
- return "No configurado", False
+ return 'Not configured', False
if "/etc/letsencrypt/" in cert_path or "/etc/letsencrypt/" in key_path:
return "Let's Encrypt", path_exists(cert_path) and path_exists(key_path)
@@ -102,10 +102,10 @@ def _detect_certificate_mode(config: InstanceConfig) -> tuple[str, bool]:
)
if _is_self_signed_certificate(config.ssl_cert_file):
return 'Self-signed', has_expected_files
- return "Personalizado (CA)", has_expected_files
+ return 'Custom (CA)', has_expected_files
if cert_path and key_path:
- return "Personalizado (externo)", path_exists(cert_path) and path_exists(key_path)
+ return 'Custom (external)', path_exists(cert_path) and path_exists(key_path)
return 'Incomplete TLS configuration', False
@@ -269,7 +269,7 @@ def _install_python_packages_in_instance_venv(config: InstanceConfig) -> None:
print(level_text("INFO", 'Select the requirements file to install.'))
req_path = select_file_path(
".",
- "Archivo requirements (TXT/IN)",
+ 'Requirements file (TXT/IN)',
(".txt", ".in"),
)
commands.append(
diff --git a/instance_manager/workflows/purge.py b/instance_manager/workflows/purge.py
index 60597aa..cd696e3 100644
--- a/instance_manager/workflows/purge.py
+++ b/instance_manager/workflows/purge.py
@@ -373,9 +373,9 @@ def purge_instance_superuser() -> None:
['Filestore root detected', f"{'yes' if path_exists(filestore_root) else 'no'} ({filestore_root})"],
['DBs by filestore', ", ".join(filestore_dbs) if filestore_dbs else '(none)'],
['DBs by owner/name', ", ".join(dbs_by_prefix) if dbs_by_prefix else '(none)'],
- ["Acceso admin DB", session.mode if session else 'unavailable (local cleanup only)'],
+ ['DB admin access', session.mode if session else 'unavailable (local cleanup only)'],
['DBs to remove', ", ".join(db_names) if db_names else '(none detected)'],
- ["Comandos a ejecutar", str(len(commands))],
+ ['Commands to run', str(len(commands))],
]
print(render_table(['Field', 'Value'], summary_rows))
diff --git a/instance_manager/workflows/report.py b/instance_manager/workflows/report.py
index f01a67f..7aeb583 100644
--- a/instance_manager/workflows/report.py
+++ b/instance_manager/workflows/report.py
@@ -14,7 +14,7 @@
import socket
from dataclasses import dataclass
-from ..i18n import tf
+from ..i18n import t, tf
from ..models import InstanceConfig
from ..planners import _is_local_db_host, _sql_literal, posture_rows
from ..prompts import ask_bool, ask_int, ask_text
@@ -49,9 +49,9 @@ def _collect_system_overview() -> list[list[str]]:
rows = [
["Hostname", hostname],
- ["SO", pretty_name or 'not detected'],
+ ['OS', pretty_name or 'not detected'],
["Kernel", _command_output("uname -r") or 'not detected'],
- ["Arquitectura", _command_output("uname -m") or 'not detected'],
+ ['Architecture', _command_output("uname -m") or 'not detected'],
['Virtualization', _command_output("systemd-detect-virt") or 'not detected'],
["Uptime", _command_output("uptime -p") or 'not detected'],
["IP(s)", _command_output("hostname -I") or 'not detected'],
@@ -436,7 +436,7 @@ def _certificate_metadata(cert_path: str) -> dict[str, str]:
def _certificate_expiry_status(cert_path: str, threshold_days: int) -> tuple[str, str]:
if not cert_path or not path_exists(cert_path):
- return "MISSING", "certificado no encontrado"
+ return "MISSING", 'certificate not found'
result = run(
f"openssl x509 -in {_quote(cert_path)} -noout -checkend {threshold_days * 86400}",
@@ -486,8 +486,8 @@ def _detect_tls_cert_type(cert_path: str, key_path: str) -> str:
if cert_path and _is_self_signed_certificate(cert_path):
return 'Self-signed'
if cert_path and key_path:
- return "Personalizado"
- return "TLS incompleto"
+ return 'Custom'
+ return 'Incomplete TLS'
def _nginx_matches_instance(
@@ -810,7 +810,7 @@ def external_server_report() -> None:
report_sections.append('Detected Odoo services\n' + strip_ansi(services_table))
artifacts_table = render_table(
- ["Tipo", "Cantidad", "Muestra"],
+ ['Type', 'Count', 'Sample'],
[
["Dirs with 'odoo'", str(len(named_dirs)), ", ".join(named_dirs[:3]) or "-"],
["Configs Odoo", str(len(conf_paths)), ", ".join(conf_paths[:3]) or "-"],
@@ -918,7 +918,7 @@ def external_server_report() -> None:
"Config Odoo",
"Data dir",
"Filestores",
- "DBs locales",
+ 'Local DBs',
],
odoo_rows if odoo_rows else [['(no instances detected)', "", "", "", "", "", "", "", "", "", "", "", ""]],
)
@@ -933,7 +933,7 @@ def external_server_report() -> None:
report_sections.append('Instances: Python\n' + strip_ansi(python_table))
nginx_table_by_instance = render_table(
- ['Instance', "server_name", "HTTP", "gevent", "TLS tipo", "Nginx cfgs", "Filestore roots"],
+ ['Instance', "server_name", "HTTP", "gevent", 'TLS type', "Nginx cfgs", "Filestore roots"],
nginx_rows if nginx_rows else [['(no instances detected)', "", "", "", "", "", ""]],
)
print(f"\n{title('Instances: Nginx / ports')}\n{nginx_table_by_instance}")
@@ -1043,10 +1043,10 @@ def external_server_report() -> None:
[
"TLS cert",
"TLS key",
- "Tipo",
+ 'Type',
"Issuer",
"Subject",
- "Expira",
+ 'Expires',
'Instances',
"server_name",
],
@@ -1074,13 +1074,13 @@ def external_server_report() -> None:
status, detail = _certificate_expiry_status(cert_path, threshold_days)
check_rows.append([level_tag(status), cert_path, detail])
- checks_table = render_table(['State', "Certificado", "Resultado"], check_rows)
+ checks_table = render_table(['State', 'Certificate', 'Result'], check_rows)
print(f"\n{title('Active TLS checks')}\n{checks_table}")
- report_sections.append("Comprobaciones activas TLS\n" + strip_ansi(checks_table))
+ report_sections.append(t('Active TLS checks') + "\n" + strip_ansi(checks_table))
else:
info_message = level_text("INFO", 'No TLS certificate paths detected for active checking.')
print(info_message)
- report_sections.append("Comprobaciones activas TLS\n" + strip_ansi(info_message))
+ report_sections.append(t('Active TLS checks') + "\n" + strip_ansi(info_message))
export_report = ask_bool('Export the report to a file?', True)
if not export_report:
diff --git a/openspec/changes/harden-data-operations/proposal.md b/openspec/changes/archive/2026-10-08-harden-data-operations/proposal.md
similarity index 100%
rename from openspec/changes/harden-data-operations/proposal.md
rename to openspec/changes/archive/2026-10-08-harden-data-operations/proposal.md
diff --git a/openspec/changes/harden-data-operations/specs/data-backup-restore/spec.md b/openspec/changes/archive/2026-10-08-harden-data-operations/specs/data-backup-restore/spec.md
similarity index 100%
rename from openspec/changes/harden-data-operations/specs/data-backup-restore/spec.md
rename to openspec/changes/archive/2026-10-08-harden-data-operations/specs/data-backup-restore/spec.md
diff --git a/openspec/changes/harden-data-operations/specs/disk-usage/spec.md b/openspec/changes/archive/2026-10-08-harden-data-operations/specs/disk-usage/spec.md
similarity index 100%
rename from openspec/changes/harden-data-operations/specs/disk-usage/spec.md
rename to openspec/changes/archive/2026-10-08-harden-data-operations/specs/disk-usage/spec.md
diff --git a/openspec/changes/harden-data-operations/specs/execution-safety/spec.md b/openspec/changes/archive/2026-10-08-harden-data-operations/specs/execution-safety/spec.md
similarity index 100%
rename from openspec/changes/harden-data-operations/specs/execution-safety/spec.md
rename to openspec/changes/archive/2026-10-08-harden-data-operations/specs/execution-safety/spec.md
diff --git a/openspec/changes/harden-data-operations/specs/instance-configuration/spec.md b/openspec/changes/archive/2026-10-08-harden-data-operations/specs/instance-configuration/spec.md
similarity index 100%
rename from openspec/changes/harden-data-operations/specs/instance-configuration/spec.md
rename to openspec/changes/archive/2026-10-08-harden-data-operations/specs/instance-configuration/spec.md
diff --git a/openspec/changes/harden-data-operations/specs/instance-removal/spec.md b/openspec/changes/archive/2026-10-08-harden-data-operations/specs/instance-removal/spec.md
similarity index 100%
rename from openspec/changes/harden-data-operations/specs/instance-removal/spec.md
rename to openspec/changes/archive/2026-10-08-harden-data-operations/specs/instance-removal/spec.md
diff --git a/openspec/changes/harden-data-operations/specs/scheduled-backups/spec.md b/openspec/changes/archive/2026-10-08-harden-data-operations/specs/scheduled-backups/spec.md
similarity index 100%
rename from openspec/changes/harden-data-operations/specs/scheduled-backups/spec.md
rename to openspec/changes/archive/2026-10-08-harden-data-operations/specs/scheduled-backups/spec.md
diff --git a/openspec/changes/harden-data-operations/tasks.md b/openspec/changes/archive/2026-10-08-harden-data-operations/tasks.md
similarity index 100%
rename from openspec/changes/harden-data-operations/tasks.md
rename to openspec/changes/archive/2026-10-08-harden-data-operations/tasks.md
diff --git a/openspec/changes/harden-operations/proposal.md b/openspec/changes/archive/2026-10-08-harden-operations/proposal.md
similarity index 100%
rename from openspec/changes/harden-operations/proposal.md
rename to openspec/changes/archive/2026-10-08-harden-operations/proposal.md
diff --git a/openspec/changes/harden-operations/specs/fail2ban-protection/spec.md b/openspec/changes/archive/2026-10-08-harden-operations/specs/fail2ban-protection/spec.md
similarity index 100%
rename from openspec/changes/harden-operations/specs/fail2ban-protection/spec.md
rename to openspec/changes/archive/2026-10-08-harden-operations/specs/fail2ban-protection/spec.md
diff --git a/openspec/changes/harden-operations/specs/firewall-ufw/spec.md b/openspec/changes/archive/2026-10-08-harden-operations/specs/firewall-ufw/spec.md
similarity index 100%
rename from openspec/changes/harden-operations/specs/firewall-ufw/spec.md
rename to openspec/changes/archive/2026-10-08-harden-operations/specs/firewall-ufw/spec.md
diff --git a/openspec/changes/harden-operations/specs/web-proxy-tls/spec.md b/openspec/changes/archive/2026-10-08-harden-operations/specs/web-proxy-tls/spec.md
similarity index 100%
rename from openspec/changes/harden-operations/specs/web-proxy-tls/spec.md
rename to openspec/changes/archive/2026-10-08-harden-operations/specs/web-proxy-tls/spec.md
diff --git a/openspec/changes/harden-operations/tasks.md b/openspec/changes/archive/2026-10-08-harden-operations/tasks.md
similarity index 100%
rename from openspec/changes/harden-operations/tasks.md
rename to openspec/changes/archive/2026-10-08-harden-operations/tasks.md
diff --git a/openspec/changes/install-per-version/proposal.md b/openspec/changes/archive/2026-10-08-install-per-version/proposal.md
similarity index 100%
rename from openspec/changes/install-per-version/proposal.md
rename to openspec/changes/archive/2026-10-08-install-per-version/proposal.md
diff --git a/openspec/changes/install-per-version/specs/data-backup-restore/spec.md b/openspec/changes/archive/2026-10-08-install-per-version/specs/data-backup-restore/spec.md
similarity index 100%
rename from openspec/changes/install-per-version/specs/data-backup-restore/spec.md
rename to openspec/changes/archive/2026-10-08-install-per-version/specs/data-backup-restore/spec.md
diff --git a/openspec/changes/install-per-version/specs/instance-configuration/spec.md b/openspec/changes/archive/2026-10-08-install-per-version/specs/instance-configuration/spec.md
similarity index 100%
rename from openspec/changes/install-per-version/specs/instance-configuration/spec.md
rename to openspec/changes/archive/2026-10-08-install-per-version/specs/instance-configuration/spec.md
diff --git a/openspec/changes/install-per-version/specs/instance-provisioning/spec.md b/openspec/changes/archive/2026-10-08-install-per-version/specs/instance-provisioning/spec.md
similarity index 100%
rename from openspec/changes/install-per-version/specs/instance-provisioning/spec.md
rename to openspec/changes/archive/2026-10-08-install-per-version/specs/instance-provisioning/spec.md
diff --git a/openspec/changes/install-per-version/tasks.md b/openspec/changes/archive/2026-10-08-install-per-version/tasks.md
similarity index 100%
rename from openspec/changes/install-per-version/tasks.md
rename to openspec/changes/archive/2026-10-08-install-per-version/tasks.md
diff --git a/openspec/changes/neutralise-copies/proposal.md b/openspec/changes/archive/2026-10-08-neutralise-copies/proposal.md
similarity index 100%
rename from openspec/changes/neutralise-copies/proposal.md
rename to openspec/changes/archive/2026-10-08-neutralise-copies/proposal.md
diff --git a/openspec/changes/neutralise-copies/specs/data-backup-restore/spec.md b/openspec/changes/archive/2026-10-08-neutralise-copies/specs/data-backup-restore/spec.md
similarity index 100%
rename from openspec/changes/neutralise-copies/specs/data-backup-restore/spec.md
rename to openspec/changes/archive/2026-10-08-neutralise-copies/specs/data-backup-restore/spec.md
diff --git a/openspec/changes/neutralise-copies/tasks.md b/openspec/changes/archive/2026-10-08-neutralise-copies/tasks.md
similarity index 100%
rename from openspec/changes/neutralise-copies/tasks.md
rename to openspec/changes/archive/2026-10-08-neutralise-copies/tasks.md
diff --git a/openspec/changes/secrets-out-of-sight/proposal.md b/openspec/changes/archive/2026-10-08-secrets-out-of-sight/proposal.md
similarity index 100%
rename from openspec/changes/secrets-out-of-sight/proposal.md
rename to openspec/changes/archive/2026-10-08-secrets-out-of-sight/proposal.md
diff --git a/openspec/changes/secrets-out-of-sight/specs/addon-inventory/spec.md b/openspec/changes/archive/2026-10-08-secrets-out-of-sight/specs/addon-inventory/spec.md
similarity index 100%
rename from openspec/changes/secrets-out-of-sight/specs/addon-inventory/spec.md
rename to openspec/changes/archive/2026-10-08-secrets-out-of-sight/specs/addon-inventory/spec.md
diff --git a/openspec/changes/secrets-out-of-sight/specs/execution-safety/spec.md b/openspec/changes/archive/2026-10-08-secrets-out-of-sight/specs/execution-safety/spec.md
similarity index 100%
rename from openspec/changes/secrets-out-of-sight/specs/execution-safety/spec.md
rename to openspec/changes/archive/2026-10-08-secrets-out-of-sight/specs/execution-safety/spec.md
diff --git a/openspec/changes/secrets-out-of-sight/tasks.md b/openspec/changes/archive/2026-10-08-secrets-out-of-sight/tasks.md
similarity index 100%
rename from openspec/changes/secrets-out-of-sight/tasks.md
rename to openspec/changes/archive/2026-10-08-secrets-out-of-sight/tasks.md
diff --git a/openspec/specs/addon-inventory/spec.md b/openspec/specs/addon-inventory/spec.md
index 827e8bb..13301d8 100644
--- a/openspec/specs/addon-inventory/spec.md
+++ b/openspec/specs/addon-inventory/spec.md
@@ -1,8 +1,10 @@
# addon-inventory Specification
## Purpose
-TBD - created by archiving change add-addon-inventory. Update Purpose after archive.
+List an instance's modules by origin (Odoo core, OCA, custom) with their manifest and installed versions, and the Python packages their manifests declare, checked in the instance's venv the way Odoo checks them; exportable to a file.
+
## Requirements
+
### Requirement: Addon inventory by origin
The tool SHALL list an instance's addon modules grouped by origin (Odoo core, OCA, custom, and any other
@@ -75,3 +77,14 @@ part of the rendered inventory and its export.
- **WHEN** no discovered addon declares a Python external dependency
- **THEN** the audit reports that there are no additional Python packages required
+### Requirement: Python dependencies checked the way Odoo checks them
+
+The addon inventory SHALL report a declared Python dependency as present when the instance venv has a
+distribution of that name, or else can import a module of that name — Odoo's own order
+(`check_python_external_dependency`) — so a dependency declared by its distribution name (`python-stdnum`,
+`pdfminer.six`) is not reported missing.
+
+#### Scenario: A distribution name is found
+
+- **WHEN** an addon declares `python-stdnum` and the venv has that distribution
+- **THEN** the inventory reports it present
diff --git a/openspec/specs/data-backup-restore/spec.md b/openspec/specs/data-backup-restore/spec.md
index c9e169b..0b87657 100644
--- a/openspec/specs/data-backup-restore/spec.md
+++ b/openspec/specs/data-backup-restore/spec.md
@@ -7,36 +7,47 @@ restore a dump and/or filestore into a target, and duplicate an instance's
database (and optionally filestore) from a template. Data operations honor
Odoo's copied-vs-moved semantics (UUID regeneration) and optional neutralization
of the target.
+
## Requirements
+
### Requirement: Backup
The tool SHALL back up an instance's database (as a compressed custom-format dump) and/or its filestore (as a
-gzipped tar) into the chosen backup directory, using a **single timestamp for the whole operation** and
-writing each artifact **atomically** (a temporary file promoted only on success).
+gzipped tar) into the chosen backup directory, using a **single timestamp for the whole operation**, naming
+each artifact `----`, and writing each artifact **atomically** (a temporary file
+promoted only on success). The backup directory SHALL be private to root (`700`) and every artifact SHALL be
+written private (`umask 077`): a dump holds password hashes, API keys and mail/payment secrets.
#### Scenario: Database backup produces an atomic timestamped custom dump
- **WHEN** the operator selects a backup that includes the database
- **THEN** the plan runs `pg_dump -Fc` to a temporary file and renames it to
- `/_.dump` only on success, removing the temporary file and failing the step
- otherwise
+ `/----.dump` only on success, removing the temporary file and failing
+ the step otherwise
#### Scenario: Filestore backup archives the resolved filestore path atomically
- **WHEN** the operator selects a backup that includes the filestore
- **THEN** the plan tars the resolved filestore directory to a temporary file and renames it to
- `/_.filestore.tar.gz` only on success
+ `/----.filestore.tar.gz` only on success; a file that changed while
+ being read (GNU tar exit 1) does not fail the archive, any other tar failure does
#### Scenario: DB dump and filestore archive share one timestamp
- **WHEN** the operator selects a "DB + Filestore" backup
- **THEN** the `.dump` and `.filestore.tar.gz` names carry the **same** timestamp so the pair can be matched
+#### Scenario: Backups are private
+
+- **WHEN** a backup is written
+- **THEN** the backup directory is mode `700` and the artifacts are readable by root only
+
### Requirement: Restore
Restoring SHALL create the target database from a selected dump and/or restore a filestore archive, refusing to
clobber an existing target database, and require phrase confirmation before applying. The pre-restore
-existence check for the target database is evaluated against the **local** PostgreSQL server.
+existence check for the target database is evaluated against the **local** PostgreSQL server. An existing
+target filestore SHALL be moved aside, never deleted, and the restored files SHALL belong to the instance user.
#### Scenario: Existing target database blocks restore
@@ -52,8 +63,14 @@ existence check for the target database is evaluated against the **local** Postg
#### Scenario: Existing target filestore requires explicit overwrite
- **WHEN** the restore includes the filestore and the target filestore exists
-- **THEN** the operator must confirm overwrite; on confirmation the previous filestore contents are cleared
- before extracting, otherwise the restore is cancelled
+- **THEN** the operator must confirm overwrite; on confirmation the previous filestore is moved to
+ `.replaced-` before extracting, otherwise the restore is cancelled
+
+#### Scenario: Restored files belong to the instance user
+
+- **WHEN** a filestore archive is extracted
+- **THEN** tar does not restore the archive's owners (`--no-same-owner`) and the plan chowns the instance's data
+ dir to the instance user, so Odoo can write attachments and sessions
#### Scenario: Restore is phrase-confirmed
@@ -64,11 +81,14 @@ existence check for the target database is evaluated against the **local** Postg
The tool SHALL duplicate a source instance's database — and optionally its filestore — into a target,
end-to-end and existence-aware, requiring phrase confirmation and validating the source and target database
-names as safe before using them in SQL.
+names as safe before using them in SQL. The target instance SHALL differ from the source instance, and the
+target database SHALL differ from the source database.
-The operator SHALL choose the database copy method: a fast PostgreSQL **template** copy (frees the source of
-sessions first, best when the target uses the same role), or a robust **`pg_dump | pg_restore --no-owner`**
-that reassigns ownership to the target role (correct for a cross-user target such as production→development).
+The operator SHALL choose the database copy method: a fast PostgreSQL **template** copy, or a robust
+**`pg_dump | pg_restore --no-owner`** that reassigns ownership to the target role. A template copy keeps the
+source's role as owner of every table, so the tool SHALL refuse it when the target role differs from the source
+database's owner (always the case for a new replica). The template copy SHALL refuse new connections to the
+source, terminate its sessions, copy, and reopen the source whatever the outcome.
When the **target instance does not exist**, duplication SHALL provision it fully before seeding: create the
target role, run the base setup (system user, home, Odoo checkout at the source's version, virtualenv,
@@ -82,13 +102,16 @@ source installed beyond `requirements.txt` are present in the replica.
When the **target instance already exists**, duplication SHALL refresh it in place: stop the target service,
drop and recreate its database from the source and replace its filestore, apply the migration semantics, and
-restart — **without** recreating the target's config, service, or system user.
+restart — **without** recreating the target's config, service, or system user. It SHALL drop an existing
+target database only when that database belongs to the target's own role (read from its `odoo.conf`) and the
+operator explicitly confirms the overwrite.
Migration semantics (copied vs moved, neutralize) SHALL apply in both cases, and the duplicated filestore SHALL
be placed under the **target** instance's data directory, which SHALL be owned by the target system user (so
Odoo can create its `sessions`/`filestore` entries). Every database the tool seeds SHALL have its access
**restricted to its owner** — `CONNECT` revoked from `PUBLIC` and granted to the owning role — so an instance's
-database role cannot reach other instances' databases.
+database role cannot reach other instances' databases. Local drops SHALL use `dropdb --force`, which closes the
+database's sessions and refuses new ones in one statement.
#### Scenario: Replica replicates the source venv Python packages
@@ -101,7 +124,7 @@ database role cannot reach other instances' databases.
- **WHEN** the target instance does not exist
- **THEN** the plan creates the target role, runs the same production-hardening prompts as a fresh install with
auto-suggested non-colliding ports, provisions the target (base setup without starting, optional Nginx),
- seeds the database and filestore from the source, and then starts the target service
+ seeds the database and filestore from the source with the `pg_dump` copy, and then starts the target service
#### Scenario: Replica domain must not collide with another vhost
@@ -115,11 +138,22 @@ database role cannot reach other instances' databases.
- **THEN** the plan stops the target service, drops and recreates its database from the source, replaces its
filestore, applies the migration semantics, and restarts the service without recreating its config or unit
+#### Scenario: A database that is not the target's is never dropped
+
+- **WHEN** the target database exists and belongs to a role other than the target's, or the target equals the
+ source instance or the source database
+- **THEN** the tool refuses with a descriptive error and builds no plan
+
+#### Scenario: Overwriting the target's database is confirmed
+
+- **WHEN** the target database exists and belongs to the target's role
+- **THEN** the operator must explicitly confirm that it will be dropped and replaced before the plan is built
+
#### Scenario: Operator selects the database copy method
- **WHEN** the duplication plan is assembled
- **THEN** the operator chooses a template copy or a `pg_dump | pg_restore --no-owner` copy, and the plan uses
- the selected method
+ the selected method, refusing a template copy across roles
#### Scenario: Template copy frees the source; dump copy leaves it untouched
@@ -131,7 +165,7 @@ database role cannot reach other instances' databases.
- **WHEN** duplication runs
- **THEN** copied/moved and neutralize semantics are applied to the target and execution proceeds only after
- the operator types the exact `DUPLICAR ` phrase
+ the operator types the exact `DUPLICATE ` phrase
#### Scenario: Seeded database is restricted to its owner
@@ -152,30 +186,46 @@ database role cannot reach other instances' databases.
### Requirement: Copied vs moved database semantics
-Restore and duplication SHALL apply Odoo migration semantics: in "copied" mode
-regenerate the target's `database.uuid`; when neutralization is requested,
-deactivate crons, outgoing mail servers, and fetchmail servers in the target.
+Restore and duplication SHALL apply Odoo migration semantics: in "copied" mode give the target its own
+`database.uuid`, `database.secret` and `database.create_date`, as Odoo's own copy does; when neutralisation is
+requested, apply every rule of the neutralisation catalogue (Odoo's `neutralize.sql` 16.0-19.0, extended to
+12.0-19.0 and the OCA modules it lists), each guarded by the existence of its table and columns, as one statement
+that stops the plan on failure, and then verify that nothing can still act on the outside, failing the plan when
+something can. The neutralisation SHALL leave exactly one active outgoing mail server, pointing at a host that
+does not resolve, so Odoo never falls back to the `smtp_server` of `odoo.conf`, and SHALL drop production's SMTP
+credentials from the copy.
#### Scenario: Copied mode regenerates the database UUID
- **WHEN** the operator selects the copied mode
-- **THEN** the plan upserts a fresh `database.uuid` into `ir_config_parameter` on the target database
+- **THEN** the plan writes a fresh `database.uuid`, `database.secret` and `database.create_date` into
+ `ir_config_parameter` on the target database
#### Scenario: Neutralization deactivates automation in the target
- **WHEN** the operator opts to neutralize the target
-- **THEN** the plan deactivates `ir_cron`, `ir_mail_server`, and `fetchmail_server` rows (tolerating tables that do not exist)
+- **THEN** the plan deactivates crons (except Odoo's autovacuum and queue_job's cleanup), mail servers (dropping
+ their credentials), fetchmail, payment providers, external carriers and their production mode, OAuth
+ providers, calendar tokens, webhooks, IAP tokens, EDI/SII/TicketBAI/Peppol production modes and queued jobs,
+ points `web.base.url` at the target, adds the mail sink, and sets `database.is_neutralized`
+
+#### Scenario: A failed or incomplete neutralisation stops the plan
+
+- **WHEN** the neutralisation statement fails, or the check finds something that can still act on the outside
+- **THEN** the step fails and the plan stops; no step tolerates its own failure
### Requirement: Database name path safety
-An operator-entered database name SHALL be validated as a safe single path component before it is interpolated
-into a filestore path that is created, archived, or deleted.
+An operator-entered database name SHALL be a name Odoo's own database manager accepts
+(`^[a-zA-Z0-9][a-zA-Z0-9_.-]+$`, at most 63 characters) before it is interpolated into SQL, a shell command or a
+filestore path that is created, archived, or deleted. Such a name holds no path separator, quote, `$` or space,
+and cannot start with `-` (an option to `createdb`/`dropdb`/`pg_dump`) or `.`.
#### Scenario: Traversal in a database name is refused
-- **WHEN** a database name used for backup, restore, or filestore deletion contains a path separator or a
- `.`/`..` traversal component
-- **THEN** the operation is refused with a descriptive error and no filestore command is built or executed
+- **WHEN** a database name used for backup, restore, scheduled backup, or filestore deletion contains a path
+ separator, starts with `.` or `-`, or holds any character outside Odoo's pattern
+- **THEN** the operation is refused with a descriptive error and no command is built or executed
### Requirement: Standalone database duplication
@@ -184,8 +234,9 @@ PostgreSQL server, reusing the selectable copy method (fast template copy, or ro
`pg_dump | pg_restore --role` that reassigns ownership), the copied/moved and neutralize migration semantics,
and an optional filestore copy placed under the **current instance's** data directory. It SHALL NOT provision
or modify any instance service, config, or system user. It SHALL validate the source and target database names
-as safe, require phrase confirmation, and — when the target database already exists — require an explicit
-overwrite before dropping and recreating it.
+as safe, require phrase confirmation, refuse a target database owned by another role than the instance's and a
+template copy across roles, and — when the target database already exists — require an explicit overwrite
+before dropping and recreating it.
#### Scenario: A database is duplicated with the chosen method and semantics
@@ -195,13 +246,55 @@ overwrite before dropping and recreating it.
#### Scenario: Existing target database requires an explicit overwrite
-- **WHEN** the target database already exists
+- **WHEN** the target database already exists and belongs to the instance's role
- **THEN** the tool requires an explicit overwrite confirmation and, only then, drops and recreates it;
otherwise it cancels without changes
+#### Scenario: Another role's database is not overwritten
+
+- **WHEN** the target database exists and belongs to another role
+- **THEN** the tool refuses with a descriptive error and builds no plan
+
#### Scenario: No instance service or config is touched
- **WHEN** the database duplication runs
- **THEN** only database and (optional) filestore operations are planned — no systemd unit, `odoo.conf`, or
system user is created or modified
+### Requirement: Replica runtime follows the source and the version
+
+A replica created by instance duplication SHALL clone the same core as the source (OCB when the source's
+checkout comes from OCA's OCB, else official Odoo), SHALL be built with the interpreter the support matrix picks
+for its version on this host, and SHALL get its own data dir `/var/lib/odoo/`.
+
+#### Scenario: An OCB source gives an OCB replica
+
+- **WHEN** the source instance's checkout has OCA's OCB as origin
+- **THEN** the replica's base setup clones OCB at the same branch
+
+### Requirement: A copy stays invisible until neutralised
+
+A database seeded on the local server SHALL be owned by `postgres` until its migration semantics are applied, and
+only then handed to its role: an Odoo lists only the databases its own role owns, so no cron worker can start on
+the copy before it is neutralised. A restore that neutralises SHALL stop the instance's running service before
+creating the database and start it again after the neutralisation.
+
+#### Scenario: The copy is handed over after neutralisation
+
+- **WHEN** a database is duplicated
+- **THEN** it is created by postgres, neutralised, and only then `ALTER DATABASE … OWNER TO` the target role
+
+#### Scenario: A restore keeps the service stopped meanwhile
+
+- **WHEN** a database is restored with neutralisation while the instance's service runs
+- **THEN** the plan stops the service first and starts it again after the check
+
+### Requirement: Neutralisation check
+
+The tool SHALL offer a read-only check of a database that lists, per rule, what can still act on the outside and
+whether the mail sink is in place.
+
+#### Scenario: An armed database is reported
+
+- **WHEN** the operator checks a database whose crons or mail servers are active
+- **THEN** the tool lists each such rule with its row count and examples, and changes nothing
diff --git a/openspec/specs/disk-usage/spec.md b/openspec/specs/disk-usage/spec.md
index c3e7fe8..7e336e8 100644
--- a/openspec/specs/disk-usage/spec.md
+++ b/openspec/specs/disk-usage/spec.md
@@ -1,8 +1,10 @@
# disk-usage Specification
## Purpose
-TBD - created by archiving change add-disk-usage. Update Purpose after archive.
+Show what an instance occupies on disk (home, data dir, logs, backups) and the free space where its data lives, read-only, and prune old backups per database and kind without touching another instance's or another database's files.
+
## Requirements
+
### Requirement: Disk usage report
The tool SHALL report an instance's disk footprint read-only: the size of its home, data directory
@@ -17,16 +19,25 @@ The tool SHALL report an instance's disk footprint read-only: the size of its ho
### Requirement: Backup retention cleanup
The tool SHALL remove an instance's oldest backup artifacts while keeping the operator-chosen number of most
-recent ones of each kind (DB dumps and filestore archives), through the standard preview/confirm/apply flow.
+recent ones **per database** and kind (DB dumps and filestore archives), through the standard
+preview/confirm/apply flow. Backups SHALL be matched by their exact name pattern
+(`----` plus the kind's suffix), so another instance's or another database's backups
+are never removed. Backups named before the database was part of the name (`_`) SHALL be
+pruned as one more group, matched exactly.
#### Scenario: Retention keeps the N newest of each kind
- **WHEN** the operator runs retention cleanup keeping N backups
-- **THEN** the plan keeps the N newest `*.dump` and the N newest `*.filestore.tar.gz` for the instance and
- removes the older ones, previewed before applying
+- **THEN** for each database the instance has backups of, the plan keeps the N newest dumps and the N newest
+ filestore archives and removes the older ones, previewed before applying
+
+#### Scenario: Look-alike backups are never pruned
+
+- **WHEN** the backup directory also holds backups of an instance whose name starts with this instance's name
+ (`shop_eu` next to `shop`) or of another database of this instance
+- **THEN** none of them is removed by this instance's or this database's retention
#### Scenario: Missing backup directory is a no-op
- **WHEN** the backup directory does not exist
- **THEN** the tool reports it and performs no cleanup
-
diff --git a/openspec/specs/execution-safety/spec.md b/openspec/specs/execution-safety/spec.md
index e4f69e2..4f705a5 100644
--- a/openspec/specs/execution-safety/spec.md
+++ b/openspec/specs/execution-safety/spec.md
@@ -6,7 +6,9 @@ Cross-cutting safety controls that every system-mutating action in the manager
MUST pass through: privilege enforcement, a preview-before-apply gate, explicit
confirmation for sensitive operations, strict identifier validation, automatic
port allocation, and best-effort cleanup when a provisioning run fails partway.
+
## Requirements
+
### Requirement: Root privilege enforcement
The tool SHALL require root privileges to run, and SHALL re-check for root
@@ -53,11 +55,13 @@ steps are not silent.
### Requirement: Phrase confirmation for sensitive actions
Destructive or data-altering actions SHALL require the operator to type an exact
-confirmation phrase that names the operation and target instance.
+confirmation phrase that names the operation and target instance. The phrases are English, like the rest of
+the canonical interface.
#### Scenario: Correct phrase authorizes execution
-- **WHEN** the operator types the exact required phrase (e.g. `ELIMINAR `, `RESTORE `, `DUPLICAR `)
+- **WHEN** the operator types the exact required phrase (e.g. `DELETE `, `DELETE-ALL `,
+ `RESTORE `, `DUPLICATE `)
- **THEN** the plan proceeds to execution
#### Scenario: Wrong phrase cancels execution
@@ -67,10 +71,14 @@ confirmation phrase that names the operation and target instance.
### Requirement: Identifier validation
-Instance and PostgreSQL identifiers SHALL be validated against safe patterns before they are used to build any
-command or configuration. This applies to **every** flow that acts on an instance — provisioning,
-configuration, removal, purge, and duplication — including instances selected or typed manually and
-duplication target names.
+Every operator value SHALL be validated against a safe pattern before it is used to build any command or
+configuration — instance and PostgreSQL identifiers, and every other value that reaches a shell command, SQL or
+a configuration file. This applies to **every** flow that acts on an instance — provisioning, configuration, removal,
+purge, backup, restore, and duplication — including instances selected or typed manually and duplication target
+names. The values are: the instance name, the database user, the Odoo version, the repo branch, the public
+domain, the DB host, the app-server IP, and every database name (Odoo's own `DBNAME_PATTERN`,
+`^[a-zA-Z0-9][a-zA-Z0-9_.-]+$`, at most 63 characters). Prompts SHALL ask again when a value is refused.
+Existence probes, which run before any plan is previewed, SHALL quote the value they receive.
#### Scenario: Invalid instance name is rejected
@@ -82,6 +90,17 @@ duplication target names.
- **WHEN** a database user does not match the PostgreSQL identifier pattern `[a-z_][a-z0-9_]{0,62}`
- **THEN** validation fails with a descriptive error before any plan is built
+#### Scenario: A value that could break out of a shell word is refused
+
+- **WHEN** the operator enters a repo branch, domain, DB host, app-server IP or database name containing a
+ quote, `$`, a backtick, a space, a `;` or a leading `-`
+- **THEN** the prompt refuses it with a descriptive error and asks again, and no command is built from it
+
+#### Scenario: Probes quote their argument
+
+- **WHEN** an existence probe (path, user, service, database, role) runs before a plan is previewed
+- **THEN** the value is passed as one quoted shell word or one escaped SQL literal
+
#### Scenario: Manually selected instance is validated before any destructive plan
- **WHEN** an instance name is typed or selected for the manage, delete, or total-purge flows
@@ -155,3 +174,32 @@ to the menu rather than terminating with an uncaught error.
raises an error on a failing command
- **THEN** the tool reports the failure and returns to the main menu, keeping the session alive
+### Requirement: Secrets out of sight
+
+A secret — a database password, the master password, a file holding them — SHALL never be part of a plan step's
+command text: it SHALL travel in the step's environment (which only root can read), a libpq client SHALL take
+its password from `PGPASSWORD` there, and SQL holding a password SHALL be fed to `psql` on stdin. The plan
+preview SHALL show such a step with its secrets masked, and a failed step's error SHALL name the step rather than
+print its command. Database probes SHALL give up connecting after 10 seconds (`PGCONNECT_TIMEOUT`).
+
+#### Scenario: A password is not visible to other users while a step runs
+
+- **WHEN** a step connects to PostgreSQL with a password
+- **THEN** the password is in the step's environment and in no process's arguments
+
+#### Scenario: The preview masks secrets
+
+- **WHEN** the plan writes `odoo.conf` or sets a role's password
+- **THEN** the preview shows the file or statement with `admin_passwd`, `db_password` and the role password as
+ `********`
+
+#### Scenario: Files are written atomically
+
+- **WHEN** a plan writes a file
+- **THEN** it writes a private temporary file in the same directory, sets the mode, and renames it over the
+ target, so the file is never seen half-written or with a wider mode
+
+#### Scenario: A failure does not print the command
+
+- **WHEN** a step fails
+- **THEN** the error names the step's description
diff --git a/openspec/specs/fail2ban-protection/spec.md b/openspec/specs/fail2ban-protection/spec.md
index 400ac4f..8f398c5 100644
--- a/openspec/specs/fail2ban-protection/spec.md
+++ b/openspec/specs/fail2ban-protection/spec.md
@@ -6,20 +6,25 @@ Install and operate Fail2ban to protect the server and individual Odoo
instances: a secure base configuration, per-instance Odoo auth jails, assessment
of whether the Odoo log carries the real client IP, and operational actions
(status, jail detail, unban, regex testing).
+
## Requirements
+
### Requirement: Secure base setup
-The tool SHALL install Fail2ban and write a base jail configuration enabling `sshd`, `nginx-http-auth`,
-`nginx-botsearch`, and `recidive`, with `ufw` as the ban action and operator-tunable timing parameters. Because
-the ban action is `ufw`, effective banning SHALL require UFW to be installed and active on the host; the tool
-does not install UFW.
+The tool SHALL install Fail2ban when missing and write a base jail configuration enabling `sshd` and
+`recidive`, and `nginx-http-auth` and `nginx-botsearch` only when the host has nginx logs (fail2ban refuses the
+whole configuration when a jail's log is missing), with `ufw` as the ban action (`banaction_allports` too, so
+`recidive` uses it) and operator-tunable timing parameters. The web jails SHALL ban only the web ports, through
+ufw's `Nginx Full` application profile. The configuration SHALL be kept only if `fail2ban-client -t` accepts it;
+otherwise the previous one is restored. Because the ban action is `ufw`, effective banning SHALL require UFW to
+be installed and active on the host; the tool does not install UFW.
#### Scenario: Base jails are configured and the service is verified ready
- **WHEN** the operator runs the base setup
-- **THEN** the plan installs Fail2ban, writes the base config (including operator-supplied ignore IPs plus
- loopback), validates with `fail2ban-client -t`, enables and restarts the service, and waits for the Fail2ban
- socket to respond before succeeding
+- **THEN** the plan installs Fail2ban if missing, writes the base config (including operator-supplied ignore IPs
+ plus loopback) through a staged step validated with `fail2ban-client -t`, enables the service, reloads it, and
+ waits for the Fail2ban socket to respond before succeeding
#### Scenario: UFW is a runtime prerequisite for banning
@@ -27,16 +32,31 @@ does not install UFW.
- **THEN** the jails validate and run, but bans do not take effect until UFW is installed and active (a
documented prerequisite, not installed by the tool)
+#### Scenario: No nginx jail without nginx logs
+
+- **WHEN** the host has no `/var/log/nginx`
+- **THEN** the base configuration enables no nginx jail
+
+#### Scenario: A refused configuration is rolled back
+
+- **WHEN** `fail2ban-client -t` refuses the written configuration
+- **THEN** the previous files are restored (new ones removed) and the step fails
+
### Requirement: Per-instance Odoo jail
-The tool SHALL enable a dedicated `odoo-auth-` jail bound to the
-instance log, installing the shared Odoo auth filter and testing the filter
-against the log before activation.
+The tool SHALL enable a dedicated `odoo-auth-` jail bound to the instance log, installing the shared
+Odoo auth filter, keeping both only if `fail2ban-client -t` accepts them, and testing the filter against Odoo's
+login-failure line of every supported version (12-18 `Login failed for db: login: from `, 19
+`Login failed for login: from `, both from the `odoo.addons.base.models.res_users` logger and
+followed by the request's perf info) — a test that fails unless each line matches. The jail SHALL ban only the
+web ports (ufw's `Nginx Full` profile), so an Odoo login failure never bans SSH.
#### Scenario: Instance jail is created and filter-tested
- **WHEN** the operator activates protection for an instance and supplies its log path
-- **THEN** the plan installs the `odoo-auth` filter, writes the `odoo-auth-` jail for that log, verifies the log exists, runs `fail2ban-regex` against it, validates the config, and (re)starts Fail2ban
+- **THEN** the plan verifies the log exists, writes the `odoo-auth` filter and the `odoo-auth-` jail
+ through a validated staged step, runs `fail2ban-regex` on Odoo's line of 12-18 and of 19 requiring one match
+ each, and reloads Fail2ban
### Requirement: Real-client-IP assessment
@@ -79,4 +99,3 @@ jail's detail, unban an IP, and test the Odoo regex against a log.
- **WHEN** the service is active but the socket has not yet come up
- **THEN** the status view reports a waiting state rather than an error
-
diff --git a/openspec/specs/firewall-ufw/spec.md b/openspec/specs/firewall-ufw/spec.md
index b091543..8e14238 100644
--- a/openspec/specs/firewall-ufw/spec.md
+++ b/openspec/specs/firewall-ufw/spec.md
@@ -1,13 +1,17 @@
# firewall-ufw Specification
## Purpose
-TBD - created by archiving change add-firewall-ufw. Update Purpose after archive.
+Put a UFW baseline on the host without locking the operator out (SSH allowed on the port it listens on, before UFW is enabled) and operate its rules safely, including deleting a rule only while it is still the one shown.
+
## Requirements
+
### Requirement: UFW secure baseline
The tool SHALL install UFW when missing and apply a secure baseline — default deny incoming, allow outgoing,
allow SSH before enabling (to avoid lock-out), and allow HTTP/HTTPS — optionally allowing PostgreSQL from a
-single app-server IP, then enable UFW.
+single app-server IP, then enable UFW. The SSH port SHALL default to the one SSH listens on (`sshd -T`, and
+`ssh.socket` on socket-activated hosts), and a port SSH does not listen on SHALL require an explicit
+confirmation.
#### Scenario: Baseline is applied in a lock-out-safe order
@@ -21,10 +25,17 @@ single app-server IP, then enable UFW.
- **WHEN** HTTP, HTTPS, or the PostgreSQL allow are declined
- **THEN** the corresponding rules are not added
+#### Scenario: The detected SSH port is the default
+
+- **WHEN** SSH listens on port 2222
+- **THEN** the baseline proposes 2222, and allowing 22 instead requires confirming that new SSH sessions would
+ be locked out
+
### Requirement: UFW operations
The tool SHALL provide read-only status and operations to allow a port, delete a rule by number, and enable or
-disable UFW, each mutating action through the preview/confirm/apply flow.
+disable UFW, each mutating action through the preview/confirm/apply flow. A delete SHALL run only if the rule at
+that number is still the line the operator was shown (fail2ban prepends its bans, shifting the numbers).
#### Scenario: Status is read-only
@@ -34,6 +45,10 @@ disable UFW, each mutating action through the preview/confirm/apply flow.
#### Scenario: A rule can be allowed and deleted
- **WHEN** the operator allows a port or deletes a numbered rule
-- **THEN** the plan runs the matching `ufw allow /` or `ufw --force delete ` after preview and
- confirmation
+- **THEN** the plan runs the matching `ufw allow /`, or checks that the numbered line is unchanged
+ and then runs `ufw --force delete `, after preview and confirmation
+
+#### Scenario: A shifted list deletes nothing
+- **WHEN** the rule list changed between the listing and the delete
+- **THEN** the step fails without deleting any rule
diff --git a/openspec/specs/instance-configuration/spec.md b/openspec/specs/instance-configuration/spec.md
index df2e572..8cfb291 100644
--- a/openspec/specs/instance-configuration/spec.md
+++ b/openspec/specs/instance-configuration/spec.md
@@ -6,13 +6,15 @@ Inspect and adjust an already-installed instance without destroying data:
discover instances under `/opt/odoo`, show a technical status summary, update
the instance configuration (with a pre-update backup), repair Nginx per-instance
log files, and install Python packages into the instance virtualenv.
+
## Requirements
+
### Requirement: Instance discovery and selection
The tool SHALL discover instances as directories under `/opt/odoo` and let the operator select a detected
instance or type a known name, and SHALL optionally query PostgreSQL to list available databases for
-validation, **scoped to the instance's database role** (databases owned by that role or named after it) rather
-than every database on the server.
+validation, **scoped to the instance's database role** (databases owned by that role or named exactly like it)
+rather than every database on the server. A name prefix SHALL NOT widen the listing.
#### Scenario: Detected instances are listed for selection
@@ -22,9 +24,9 @@ than every database on the server.
#### Scenario: Optional database listing is scoped to the instance role
- **WHEN** the operator opts to connect to PostgreSQL during management
-- **THEN** the tool lists only the databases owned by the connected instance role (or whose name starts with
- it), letting the operator pick one as the validation target, or reports the connection error without blocking
- management
+- **THEN** the tool lists only the databases owned by the connected instance role or named exactly like it
+ (instance `shop` does not list `shop2`), letting the operator pick one as the validation target, or reports
+ the connection error without blocking management
### Requirement: Instance status inspection
@@ -54,29 +56,6 @@ mode, and optional database existence.
dir, TLS mode, and optional database) is marked present or missing, and the TLS certificate mode is
classified (self-signed / custom-CA / external / Let's Encrypt / incomplete / not configured)
-### Requirement: Configuration update with pre-update backup
-
-Updating an existing instance's configuration SHALL first back up the current config, systemd unit, and Nginx
-vhosts into a single timestamped directory, then **replay the full Odoo base setup** to regenerate the config
-and unit, and optionally regenerate the Nginx vhost.
-
-#### Scenario: Existing files are backed up before regeneration
-
-- **WHEN** the operator updates an instance configuration
-- **THEN** the plan copies the current config, unit, and Nginx vhosts into a single
- `/var/backups//config_preupdate//` directory before writing new versions
-
-#### Scenario: Update replays the full base setup
-
-- **WHEN** the configuration update is applied
-- **THEN** it runs the same base-setup plan as provisioning (package install, user/dir creation, repo clone if
- absent, venv creation and `pip install -r requirements.txt`), not only a config rewrite
-
-#### Scenario: Autostart state is preserved across update
-
-- **WHEN** the configuration is regenerated
-- **THEN** the service autostart choice mirrors whether the service is currently enabled at boot
-
### Requirement: Nginx log repair
The tool SHALL recreate the per-instance Nginx access and error log files with
@@ -157,3 +136,39 @@ short. Selecting a group SHALL open a submenu of its actions, each of which beha
- **WHEN** the operator selects Delete instance from the top menu
- **THEN** the destructive delete flow (with its phrase confirmation) runs directly, not nested in a submenu
+### Requirement: Configuration update merges and applies
+
+Updating an existing instance's configuration SHALL first back up the current config, systemd unit, and Nginx
+vhosts into a single private timestamped directory, then rewrite `odoo.conf` **merged** with the current one and
+rewrite the unit — without reinstalling anything — and optionally regenerate the Nginx vhost. The keys an
+operator tunes by hand (`addons_path`, `data_dir`, `logfile`, `http_interface`, `without_demo`) SHALL keep their
+current value, and keys the tool does not write SHALL be carried over. The Odoo version SHALL be read from the
+instance's checkout and the domain from its vhost. A new DB password SHALL be set on the local role as well; a
+running service SHALL be restarted so the change is live.
+
+#### Scenario: Existing files are backed up before regeneration
+
+- **WHEN** the operator updates an instance configuration
+- **THEN** the plan copies the current config, unit, and Nginx vhosts into a single
+ `/var/backups//config_preupdate//` directory (mode `700`) before writing new versions
+
+#### Scenario: The current configuration is merged, not replaced
+
+- **WHEN** the current `odoo.conf` holds `data_dir`, extra `addons_path` entries, `smtp_*` or other keys
+- **THEN** the rewritten file keeps them
+
+#### Scenario: Nothing is reinstalled
+
+- **WHEN** the configuration update is applied
+- **THEN** the plan runs no package install, clone or `pip install`
+
+#### Scenario: The change is live when the plan ends
+
+- **WHEN** the service is running
+- **THEN** the plan restarts it after writing the configuration; and when a new DB password was entered for a
+ local database, the plan sets it on the role before the restart
+
+#### Scenario: Autostart state is preserved across update
+
+- **WHEN** the configuration is regenerated
+- **THEN** the service's enabled-at-boot state is left as it was
diff --git a/openspec/specs/instance-health/spec.md b/openspec/specs/instance-health/spec.md
index d6ec256..5ccf553 100644
--- a/openspec/specs/instance-health/spec.md
+++ b/openspec/specs/instance-health/spec.md
@@ -1,7 +1,7 @@
# instance-health Specification
## Purpose
-TBD - created by archiving change add-instance-health. Update Purpose after archive.
+Answer "is this instance working?" in one read-only view: its service, its local HTTP port, its database login and the disk holding its data.
## Requirements
### Requirement: Instance health check
diff --git a/openspec/specs/instance-provisioning/spec.md b/openspec/specs/instance-provisioning/spec.md
index d1e31bc..84c2581 100644
--- a/openspec/specs/instance-provisioning/spec.md
+++ b/openspec/specs/instance-provisioning/spec.md
@@ -6,11 +6,14 @@ Install and provision Odoo Community instances and their PostgreSQL backing on
an Ubuntu server: an Odoo-only instance, a PostgreSQL-only setup, or both
together. Provisioning is idempotent where possible (create-if-missing) and
always renders a plan before applying.
+
## Requirements
+
### Requirement: Install modes
The tool SHALL offer three provisioning modes: Odoo only, PostgreSQL only, and
-Odoo + PostgreSQL together.
+Odoo + PostgreSQL together. When Odoo and PostgreSQL are installed together on one host, they SHALL talk over
+loopback and the tool SHALL NOT open PostgreSQL to the network.
#### Scenario: Install Odoo only
@@ -25,26 +28,30 @@ Odoo + PostgreSQL together.
#### Scenario: Install Odoo and PostgreSQL together
- **WHEN** the operator chooses the combined install
-- **THEN** the plan performs the DB setup (with remote access) followed by the Odoo base setup, and optionally configures Nginx
+- **THEN** the plan performs the DB setup without remote access (no `listen_addresses` change, no `pg_hba`
+ rule) followed by the Odoo base setup, and optionally configures Nginx
### Requirement: Odoo base setup
The Odoo base setup SHALL install OS dependencies, create the instance system user and directory layout, clone
-the Odoo repository at the requested branch, build a virtualenv with requirements, write the instance config
-and systemd unit, and register the service.
+the chosen core (official Odoo or OCB) at the requested branch, build a virtualenv with the interpreter chosen
+for the version, install pip, wheel, the setuptools the version needs and its requirements, write the instance
+config and systemd unit, and register the service.
#### Scenario: Instance directories and user are created
- **WHEN** the base setup runs for a new instance
- **THEN** it creates the system user (if missing), the `/opt/odoo/` home with `odoo`, `addons-oca`,
- `addons-custom` subdirs, the `/etc/odoo/` config dir, and `/var/log/odoo`, with correct ownership
- and a `750` config dir
+ `addons-custom` subdirs, the `/etc/odoo/` config dir, `/var/log/odoo`, and the data dir
+ `/var/lib/odoo/` (mode `750`, owned by the instance user), with correct ownership and a `750`
+ config dir
#### Scenario: Odoo repo and venv are prepared
- **WHEN** the base setup runs
-- **THEN** it clones `odoo` at the requested branch only if absent, and creates/updates the venv installing
- `requirements.txt`
+- **THEN** it clones the chosen core at the requested branch only if absent, creates the venv with the chosen
+ interpreter, installs pip, wheel and the version's setuptools requirement, and installs `requirements.txt`
+ (with the version's substitutes)
#### Scenario: Config and unit files are written with restrictive permissions
@@ -291,3 +298,78 @@ what it assumed.
- **WHEN** the detected PostgreSQL version does not support `scram-sha-256` (older than 10)
- **THEN** the tool reports it rather than silently writing an unsupported `pg_hba` auth method
+### Requirement: Python interpreter per Odoo version
+
+The tool SHALL know, for each supported Odoo version (12-19), the Python range it accepts — with the evidence
+behind each bound (official, or derived from the branch's `requirements.txt`) — and SHALL build the venv with
+the host `python3` only when that interpreter can build the version: inside the range; for a version with no
+stated maximum, not newer than the interpreter the matrix recommends; and never Python 3.10 for Odoo 16-19,
+whose 3.10 row pins a gevent pip cannot build. Otherwise it SHALL install the matrix's interpreter with uv,
+pinned to one release and verified against its published SHA-256, into a shared root-owned directory the
+instance users can read but not write. The operator SHALL see the range and the choice before the plan.
+
+#### Scenario: An out-of-range host gets uv's interpreter
+
+- **WHEN** Odoo 14 is installed on a host whose `python3` is 3.12
+- **THEN** the plan installs the pinned uv (checksum-verified), installs CPython 3.8 with it, and builds the
+ venv with that interpreter
+
+#### Scenario: An in-range host interpreter is used
+
+- **WHEN** Odoo 18 is installed on a host whose `python3` is 3.12
+- **THEN** the venv is built with the host `python3` and nothing is downloaded
+
+#### Scenario: setuptools follows the version
+
+- **WHEN** the venv is prepared
+- **THEN** it installs `setuptools<58` for Odoo <= 13 (`vatnumber` uses `use_2to3`), `setuptools<81` for Odoo
+ <= 16 (they import `pkg_resources` at startup), and the current setuptools otherwise
+
+### Requirement: Odoo core choice
+
+The operator SHALL choose, at install, between official Odoo and OCA's OCB (the same branches with backported
+fixes); the base setup SHALL clone the chosen repository. Only these two cores SHALL be accepted.
+
+#### Scenario: OCB is cloned from OCA
+
+- **WHEN** the operator chooses OCB
+- **THEN** the plan clones `https://github.com/OCA/OCB.git` at the requested branch
+
+### Requirement: Production defaults for a new instance
+
+A new instance's `odoo.conf` SHALL disable demo data for Odoo <= 18 (`without_demo = all`; Odoo 19 loads none
+unless asked), and SHALL set `data_dir` to `/var/lib/odoo/`, outside the instance home. The systemd
+unit SHALL follow Odoo's own (`KillMode=mixed`) and start after the network is online and, for a local
+database, after PostgreSQL. A failed install's cleanup SHALL remove the new data dir only while it holds no
+filestore.
+
+#### Scenario: A production database gets no demo data
+
+- **WHEN** an instance of Odoo 18 or older is configured
+- **THEN** its `odoo.conf` holds `without_demo = all`
+
+#### Scenario: The data dir lives outside the home
+
+- **WHEN** a new instance is configured
+- **THEN** its `odoo.conf` holds `data_dir = /var/lib/odoo/`
+
+### Requirement: Unattended package installation
+
+Every `apt-get install` the tool plans SHALL run non-interactively (`DEBIAN_FRONTEND=noninteractive`, keeping
+existing configuration files) and SHALL wait for the dpkg lock rather than fail when another apt run holds it.
+
+#### Scenario: A package install cannot stop on a prompt
+
+- **WHEN** a plan installs a package
+- **THEN** the command sets `DEBIAN_FRONTEND=noninteractive`, `Dpkg::Options::=--force-confold` and a
+ `DPkg::Lock::Timeout`
+
+### Requirement: PostgreSQL version floor
+
+When the tool installs PostgreSQL for an Odoo version whose documentation states a floor, the plan SHALL
+check the local server against it and stop with an explanation when the server is older.
+
+#### Scenario: Odoo 19 requires PostgreSQL 13
+
+- **WHEN** PostgreSQL is set up for Odoo 19
+- **THEN** the plan checks `server_version_num` is at least 130000 before creating the role
diff --git a/openspec/specs/instance-removal/spec.md b/openspec/specs/instance-removal/spec.md
index 634e1c4..2ee4370 100644
--- a/openspec/specs/instance-removal/spec.md
+++ b/openspec/specs/instance-removal/spec.md
@@ -7,25 +7,36 @@ of an instance's service, config, home, Nginx vhosts, and SSL (optionally its
database and filestore), and a total superuser purge that additionally removes
the Linux user, logs, all databases matching the instance, and PostgreSQL roles.
Both are gated by an exact confirmation phrase.
+
## Requirements
+
### Requirement: Scoped instance delete
-The tool SHALL remove an instance's systemd service, Odoo config, home, Nginx vhosts (available and enabled),
-and SSL directory, and MAY additionally drop the database and remove the filestore when the operator opts in.
-When a database drop is requested for a database that does not exist, the tool SHALL warn and skip the drop
-rather than fail the operation.
+The tool SHALL remove an instance's systemd service, its scheduled-backup timer, Odoo config, home, Nginx
+vhosts (available and enabled), and SSL directory, and MAY additionally drop the database and remove one
+database's filestore when the operator opts in. Removing the home SHALL NOT remove filestores the operator did
+not ask to remove: when the instance's data dir lies inside its home (no `data_dir` outside it in `odoo.conf`),
+the plan SHALL first move the data dir to a private `/var/backups//kept-data-dir-`. When a
+database drop is requested for a database that does not exist, the tool SHALL warn and skip the drop rather
+than fail the operation.
#### Scenario: System residues are removed and Nginx reloaded
- **WHEN** the operator deletes an instance
-- **THEN** the plan stops and disables the service, removes the unit and reloads systemd, removes the config
- dir, home, both Nginx vhosts, and the SSL dir, then validates and reloads Nginx
+- **THEN** the plan stops and disables the service, removes the unit and reloads systemd, removes the backup
+ timer, the config dir, home, both Nginx vhosts, and the SSL dir, then validates and reloads Nginx
+
+#### Scenario: The data dir survives the removal of the home
+
+- **WHEN** the instance's data dir lies inside its home
+- **THEN** the plan moves it to `/var/backups//kept-data-dir-` before removing the home,
+ so every filestore the operator did not ask to remove is kept
#### Scenario: Optional database and filestore removal
-- **WHEN** the operator opts to drop the database and/or remove the filestore
-- **THEN** the plan adds a `dropdb --if-exists` for the named database and/or an `rm -rf` of the resolved
- filestore path
+- **WHEN** the operator opts to drop the database and/or remove a filestore
+- **THEN** the plan adds a `dropdb --if-exists` for the named database and/or an `rm -rf` of that database's
+ resolved filestore path (a name Odoo accepts as a database name), before the data dir is moved
#### Scenario: Non-existent database is skipped with a warning
@@ -37,30 +48,51 @@ rather than fail the operation.
#### Scenario: Delete is phrase-confirmed
- **WHEN** the delete plan is assembled
-- **THEN** it executes only after the operator types the exact `ELIMINAR ` phrase
+- **THEN** it executes only after the operator types the exact `DELETE ` phrase
### Requirement: Total superuser purge
The tool SHALL provide a total purge that, in addition to the scoped removal, deletes the instance's Linux
-user, its Odoo/Nginx logs, the filestore root, all databases discovered for the instance, and the instance's
-PostgreSQL roles. Database discovery SHALL find the instance's databases by **owner** (the instance's DB user,
-which the tool prompts for) as well as by name prefix, so databases associated with the instance are cleaned
-even when their name does not start with the instance name.
+user, its Odoo/Nginx logs, its fail2ban jail, its backup timer, the filestore root, the instance's databases,
+and the instance's PostgreSQL roles. Database discovery SHALL select a database only when the instance's DB
+role (which the tool prompts for and validates) owns it or its name equals the instance name. Databases whose
+name merely starts with the instance name SHALL be reported to the operator and SHALL NOT be selected; the
+operator may add any of them as an extra.
#### Scenario: Databases are discovered from filestore, by prefix, and by owner
- **WHEN** the purge collects databases to remove
-- **THEN** it gathers filestore-derived database names and, when admin DB access is available, databases whose
- name matches the `%` prefix **or** that are owned by the instance's DB role (which the operator is
- prompted for), plus any operator-supplied extras
+- **THEN** it gathers filestore-derived database names and, when admin DB access is available, the databases
+ owned by the instance's DB role or named exactly like the instance, plus any operator-supplied extras that are
+ valid database names
+
+#### Scenario: Look-alike databases are reported, not selected
+
+- **WHEN** a database's name starts with the instance name (with `_` and `%` matched literally) but the
+ instance's role does not own it
+- **THEN** the tool lists it as not selected, and it is dropped only if the operator adds it as an extra
+
+#### Scenario: A role shared with another instance selects nothing and is kept
+
+- **WHEN** another instance's `odoo.conf` connects as the same DB role
+- **THEN** the tool warns, selects no database by owner (only the one named like the instance), and does not
+ drop that role
#### Scenario: Admin DB access enables role and database deletion
- **WHEN** admin PostgreSQL access is resolved (local `sudo -u postgres` or validated remote admin credentials)
-- **THEN** the plan terminates active connections and drops each candidate database, and drops the instance/db-user roles; without admin access it warns and performs local cleanup only
+- **THEN** the plan drops each candidate database (locally with `dropdb --force`; remotely after terminating
+ its sessions), and drops the role the operator named and the instance-named role; without admin access it
+ warns and performs local cleanup only
+
+#### Scenario: The fail2ban jail goes with the log
+
+- **WHEN** the purge removes the instance's Odoo log
+- **THEN** it also removes the instance's fail2ban jail and reloads fail2ban when it is running, since fail2ban
+ refuses to start with a jail whose log file is missing
#### Scenario: Purge shows a summary and is phrase-confirmed
- **WHEN** the purge plan is assembled
-- **THEN** it presents a summary of detected resources and executes only after the operator types the exact `ELIMINAR-TODO ` phrase
-
+- **THEN** it presents a summary of detected resources and executes only after the operator types the exact
+ `DELETE-ALL ` phrase
diff --git a/openspec/specs/log-rotation/spec.md b/openspec/specs/log-rotation/spec.md
index 5cace75..fb813cb 100644
--- a/openspec/specs/log-rotation/spec.md
+++ b/openspec/specs/log-rotation/spec.md
@@ -1,7 +1,7 @@
# log-rotation Specification
## Purpose
-TBD - created by archiving change add-log-rotation. Update Purpose after archive.
+Keep an instance's Odoo log, and optionally its nginx logs, bounded with a system logrotate policy suited to each (copytruncate for Odoo, reopen for nginx), validated before it is kept.
## Requirements
### Requirement: Configure system log rotation
diff --git a/openspec/specs/scheduled-backups/spec.md b/openspec/specs/scheduled-backups/spec.md
index 31ceb04..dff60f1 100644
--- a/openspec/specs/scheduled-backups/spec.md
+++ b/openspec/specs/scheduled-backups/spec.md
@@ -1,12 +1,18 @@
# scheduled-backups Specification
## Purpose
-TBD - created by archiving change add-scheduled-backups. Update Purpose after archive.
+Back up an instance's database, and optionally its filestore, on a systemd timer: private files, a run that fails whenever the dump, its check or the archive fails, and retention per database — with the timer's status and removal at hand.
+
## Requirements
+
### Requirement: Configure a scheduled backup
The tool SHALL install a systemd service and timer that back up an instance's database (via local
`sudo -u postgres pg_dump`) and, optionally, its filestore, applying retention, on an operator-chosen schedule.
+The script SHALL take every value shell-quoted, SHALL write private files (`umask 077`, directory `700`, unit
+`UMask=0077`), SHALL leave no partial file behind, and SHALL exit non-zero when the dump fails, when the dump has
+no readable table of contents (`pg_restore --list`), when the filestore directory is missing, or when the
+archive fails — so the unit shows failed instead of reporting a backup that is not there.
#### Scenario: A timer and backup script are installed
@@ -15,6 +21,11 @@ The tool SHALL install a systemd service and timer that back up an instance's da
an `odoo-backup-.timer` with the chosen `OnCalendar`, reloads systemd, and enables and starts the
timer
+#### Scenario: A failed dump fails the run
+
+- **WHEN** `pg_dump` fails or produces a dump `pg_restore --list` cannot read
+- **THEN** the script exits non-zero, removes the partial file, and writes no `.dump`
+
#### Scenario: Filestore is optional
- **WHEN** the operator declines including the filestore
@@ -23,7 +34,9 @@ The tool SHALL install a systemd service and timer that back up an instance's da
#### Scenario: Retention prunes old backups
- **WHEN** the scheduled backup runs
-- **THEN** it keeps the chosen number of newest dumps (and filestore archives) and removes the older ones
+- **THEN** it keeps the chosen number of newest dumps (and filestore archives) named
+ `----` and removes the older ones, never touching other instances' or other
+ databases' backups
### Requirement: Inspect and remove a scheduled backup
@@ -39,4 +52,3 @@ units and script).
- **WHEN** the operator removes the schedule
- **THEN** the plan disables/stops the timer and deletes the timer, service, and script, then reloads systemd
-
diff --git a/openspec/specs/ui-localization/spec.md b/openspec/specs/ui-localization/spec.md
index 1ed1ea9..085c89c 100644
--- a/openspec/specs/ui-localization/spec.md
+++ b/openspec/specs/ui-localization/spec.md
@@ -1,7 +1,7 @@
# ui-localization Specification
## Purpose
-TBD - created by archiving change add-ui-localization. Update Purpose after archive.
+Offer the interface in English (canonical) or Spanish: every operator-facing string is an English key with a Spanish entry in one catalog, translated at a few display and input chokepoints, and a missing entry falls back to English.
## Requirements
### Requirement: UI language selection
diff --git a/openspec/specs/web-proxy-tls/spec.md b/openspec/specs/web-proxy-tls/spec.md
index 63894ea..a37aa65 100644
--- a/openspec/specs/web-proxy-tls/spec.md
+++ b/openspec/specs/web-proxy-tls/spec.md
@@ -6,35 +6,50 @@ Configure the Nginx reverse proxy that fronts an Odoo instance, in HTTP or HTTPS
mode, and manage the TLS material for HTTPS: self-signed generation, copying
operator-supplied certificates (with validation), or deferring to externally
managed Let's Encrypt.
+
## Requirements
+
### Requirement: Nginx proxy modes
The tool SHALL support three Nginx modes per instance: leave Nginx untouched,
configure HTTP, or configure HTTPS. Selecting HTTP or HTTPS SHALL make the two
-modes mutually exclusive by enabling one vhost and removing the other.
+modes mutually exclusive by enabling one vhost and removing the other. The change SHALL be kept only if
+`nginx -t` accepts the whole configuration; otherwise the vhost file and both links are restored, so a broken
+vhost is never left enabled for the next nginx restart.
#### Scenario: HTTP mode enables the HTTP vhost only
- **WHEN** the operator selects HTTP mode
-- **THEN** the plan writes and enables the `-http.conf` vhost, removes any enabled `-https.conf`, validates with `nginx -t`, and reloads Nginx
+- **THEN** the plan writes and enables the `-http.conf` vhost, removes any enabled
+ `-https.conf`, validates with `nginx -t` (restoring on failure), and reloads Nginx
#### Scenario: HTTPS mode enables the HTTPS vhost only
- **WHEN** the operator selects HTTPS mode
-- **THEN** the plan writes and enables the `-https.conf` vhost (HTTP→HTTPS redirect plus TLS server), removes any enabled `-http.conf`, validates with `nginx -t`, and reloads Nginx
+- **THEN** the plan writes and enables the `-https.conf` vhost (HTTP→HTTPS redirect plus TLS
+ server), removes any enabled `-http.conf`, validates with `nginx -t` (restoring on failure), and
+ reloads Nginx
#### Scenario: Untouched mode changes nothing
- **WHEN** the operator selects to not touch Nginx
- **THEN** no Nginx command is added to the plan
+#### Scenario: A refused vhost is rolled back
+
+- **WHEN** `nginx -t` refuses the configuration (e.g. the certificate is missing)
+- **THEN** the previous vhost file and links are restored and the step fails
+
### Requirement: Proxy vhost contents
Generated vhosts SHALL proxy to the instance's internal HTTP and gevent ports, include a dedicated
-live-chat/bus upstream with connection-upgrade handling, and set forwarded headers for proxy mode. The
-vhost SHALL adapt to the detected environment: the HTTP/2 form matches the detected nginx version
-(`listen … ssl http2` on nginx < 1.25.1, `listen … ssl` + `http2 on;` on ≥ 1.25.1), and the live-chat
-location matches the Odoo major (`/websocket` on Odoo ≥ 16, `/longpolling/poll` on Odoo ≤ 15).
+live-chat/bus upstream with connection-upgrade handling, set forwarded headers for proxy mode, accept uploads
+up to 2048 MB and compress with gzip. The HTTPS vhost SHALL follow Odoo's deployment guide: its TLS settings
+(TLS 1.2 and 1.3, its cipher list, `ssl_prefer_server_ciphers off`, `ssl_session_timeout 30m`), HSTS, and the
+`session_id` cookie marked `secure` with `proxy_cookie_flags` on nginx ≥ 1.19.8. The vhost SHALL adapt to the
+detected environment: the HTTP/2 form matches the detected nginx version (`listen … ssl http2` on nginx <
+1.25.1, `listen … ssl` + `http2 on;` on ≥ 1.25.1), and the live-chat location matches the Odoo major
+(`/websocket` on Odoo ≥ 16, `/longpolling/poll` on Odoo ≤ 15).
#### Scenario: Websocket and forwarded headers are configured
@@ -54,6 +69,12 @@ location matches the Odoo major (`/websocket` on Odoo ≥ 16, `/longpolling/poll
- **THEN** Odoo ≥ 16 gets a `/websocket` location and Odoo ≤ 15 gets a `/longpolling/poll` location,
both proxying to the instance gevent/longpolling upstream
+#### Scenario: The HTTPS vhost follows Odoo's deployment guide
+
+- **WHEN** an HTTPS vhost is generated for nginx ≥ 1.19.8
+- **THEN** each location sends HSTS and marks the `session_id` cookie `secure`, and the server uses the guide's
+ TLS settings
+
### Requirement: TLS certificate modes
For HTTPS, the tool SHALL offer four certificate strategies: do not touch
@@ -85,4 +106,3 @@ the certificate, and that the private key matches the certificate before use.
- **WHEN** the supplied private key's public key does not match the certificate's public key
- **THEN** the corresponding validation command fails and execution stops before Nginx is reconfigured
-
diff --git a/pyproject.toml b/pyproject.toml
index e07d9d4..250a204 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -53,3 +53,4 @@ ignore = ["E501"]
[tool.pytest.ini_options]
testpaths = ["tests"]
+pythonpath = ["."]
diff --git a/tests/test_i18n.py b/tests/test_i18n.py
index 7a165a2..119bf1e 100644
--- a/tests/test_i18n.py
+++ b/tests/test_i18n.py
@@ -67,3 +67,70 @@ def test_choose_shows_translation_but_returns_original(self) -> None:
if __name__ == "__main__":
unittest.main()
+
+
+# --- every operator-facing string has a Spanish entry ------------------------
+# The same check odoo_dwg runs (its tests/test_i18n.py): an AST scan of the calls
+# whose argument the UI translates at a chokepoint.
+
+import ast # noqa: E402
+from pathlib import Path # noqa: E402
+
+from instance_manager import i18n # noqa: E402
+
+PACKAGE = Path(__file__).resolve().parent.parent / "instance_manager"
+_FIRST_ARG = {"t", "tf", "ask_text", "ask_bool", "ask_int", "ask_secret", "prompt_label", "title",
+ "confirm_with_phrase", "choose", "Command", "select_file_path"}
+
+
+def _call_name(func: ast.expr) -> str | None:
+ if isinstance(func, ast.Name):
+ return func.id
+ return func.attr if isinstance(func, ast.Attribute) else None
+
+
+def _ui_literals() -> dict[str, str]:
+ """Every string literal the UI translates, mapped to where it appears."""
+ found: dict[str, str] = {}
+ for path in sorted(PACKAGE.rglob("*.py")):
+ if path.name == "i18n.py":
+ continue
+ for node in ast.walk(ast.parse(path.read_text(encoding="utf-8"))):
+ if not isinstance(node, ast.Call):
+ continue
+ name = _call_name(node.func)
+ candidates: list[ast.expr] = []
+ if name in _FIRST_ARG and node.args:
+ candidates.append(node.args[0])
+ if name == "select_file_path" and len(node.args) > 1:
+ candidates.append(node.args[1])
+ if name == "level_text" and len(node.args) > 1:
+ candidates.append(node.args[1])
+ if name in ("choose", "render_table"):
+ listed = node.args[1] if name == "choose" and len(node.args) > 1 else (
+ node.args[0] if name == "render_table" and node.args else None
+ )
+ if isinstance(listed, ast.BinOp):
+ listed = listed.left
+ if isinstance(listed, ast.List):
+ candidates += listed.elts
+ for candidate in candidates:
+ if isinstance(candidate, ast.Constant) and isinstance(candidate.value, str):
+ if candidate.value.strip() and any(ch.isalpha() for ch in candidate.value):
+ found.setdefault(candidate.value, f"{path.name}:{candidate.lineno}")
+ return found
+
+
+class CatalogTests(unittest.TestCase):
+ def test_every_ui_string_has_a_spanish_translation(self) -> None:
+ literals = _ui_literals()
+ self.assertGreater(len(literals), 300) # the extractor still sees the UI
+ missing = {text: where for text, where in literals.items() if text not in i18n._ES}
+ self.assertFalse(missing, f"add these to i18n._ES: {missing}")
+
+ def test_the_catalog_is_authored_in_the_direction_it_is_read(self) -> None:
+ """English keys, Spanish values — the direction t() looks up."""
+ self.assertGreater(len(i18n._ES), 500)
+ spanish_only = {"á", "é", "í", "ó", "ú", "¿", "¡", "ñ"}
+ suspicious = [k for k in i18n._ES if k != "Español" and any(ch in k for ch in spanish_only)]
+ self.assertFalse(suspicious, f"these keys look Spanish: {suspicious}")
diff --git a/tools/verify_data_safety.py b/tools/verify_data_safety.py
index 53c26b1..bd93597 100644
--- a/tools/verify_data_safety.py
+++ b/tools/verify_data_safety.py
@@ -231,6 +231,8 @@ def value_in(self, db: str, sql: str) -> str:
def _against_a_server(root: Path) -> None:
bindir = _postgres_bindir()
if bindir is None:
+ # In CI a skip would pass silently: there it is a failure.
+ check("PostgreSQL binaries found (initdb)", not os.environ.get("CI"))
print("skip PostgreSQL binaries not found — the server-backed checks need initdb")
return
if os.geteuid() == 0:
diff --git a/tools/verify_ops_configs.py b/tools/verify_ops_configs.py
index c52b01d..e22546a 100644
--- a/tools/verify_ops_configs.py
+++ b/tools/verify_ops_configs.py
@@ -20,6 +20,7 @@
import argparse
import glob
+import os
import shutil
import subprocess
import sys
@@ -57,6 +58,7 @@ def _nginx_binary(root: Path, given: str | None) -> Path | None:
result = _run(["apt-get", "download", "nginx"], cwd=root)
debs = sorted(root.glob("nginx_*.deb"))
if result.returncode != 0 or not debs:
+ check("the nginx package can be downloaded", not os.environ.get("CI"), result.stderr[-200:])
print(f"skip could not download the nginx package: {result.stderr.strip()[-200:]}")
return None
_run(["dpkg-deb", "-x", str(debs[0]), str(root / "pkg")])
@@ -161,6 +163,7 @@ def _fail2ban_src(root: Path, given: str | None) -> Path | None:
try:
urllib.request.urlretrieve(url, archive) # noqa: S310 - fixed https URL
except OSError as error:
+ check("fail2ban's source can be downloaded", not os.environ.get("CI"), str(error))
print(f"skip could not download fail2ban: {error}")
return None
_run(["tar", "-xzf", str(archive), "-C", str(root)])
diff --git a/tools/verify_secrets.py b/tools/verify_secrets.py
index b4e7800..23d5e7f 100644
--- a/tools/verify_secrets.py
+++ b/tools/verify_secrets.py
@@ -97,6 +97,7 @@ def _errors() -> None:
def _role(root: Path) -> None:
bindir = _postgres_bindir()
if bindir is None or os.geteuid() == 0:
+ check("initdb and a non-root user are available", not os.environ.get("CI"))
print("skip the role check needs initdb and a non-root user")
return
stubs = root / "stubs"