rocketdoo 3.14.0__tar.gz → 3.14.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (162) hide show
  1. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/LICENSE +2 -2
  2. {rocketdoo-3.14.0/rocketdoo.egg-info → rocketdoo-3.14.2}/PKG-INFO +4 -4
  3. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/README.md +1 -1
  4. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/pyproject.toml +1 -1
  5. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/core/deploy/config_manager.py +23 -1
  6. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/core/deploy/vps.py +6 -7
  7. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/core/instance/config_manager.py +3 -1
  8. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/core/instance/preflight.py +72 -3
  9. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/core/instance/ssh_utils.py +2 -3
  10. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/core/ssh_manager.py +48 -1
  11. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/gui/static/index.html +13 -5
  12. {rocketdoo-3.14.0 → rocketdoo-3.14.2/rocketdoo.egg-info}/PKG-INFO +4 -4
  13. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/tests/test_deploy_config_manager.py +71 -0
  14. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/tests/test_instance_preflight.py +180 -7
  15. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/tests/test_ssh_manager.py +80 -0
  16. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/MANIFEST.in +0 -0
  17. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/__init__.py +0 -0
  18. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/ci_cli.py +0 -0
  19. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/cli.py +0 -0
  20. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/cli_output.py +0 -0
  21. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/core/__init__.py +0 -0
  22. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/core/addons_path.py +0 -0
  23. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/core/compose.py +0 -0
  24. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/core/deploy/__init__.py +0 -0
  25. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/core/deploy/base.py +0 -0
  26. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/core/deploy/module_packager.py +0 -0
  27. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/core/deploy/odoo_sh.py +0 -0
  28. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/core/edition_setup.py +0 -0
  29. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/core/generator.py +0 -0
  30. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/core/gitignore_manager.py +0 -0
  31. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/core/gitman_config.py +0 -0
  32. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/core/instance/__init__.py +0 -0
  33. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/core/instance/db_seed.py +0 -0
  34. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/core/instance/deployer_docker.py +0 -0
  35. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/core/instance/deployer_native.py +0 -0
  36. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/core/instance/enterprise.py +0 -0
  37. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/core/instance/gitman_remote.py +0 -0
  38. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/core/instance/proxy.py +0 -0
  39. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/core/instance/secrets_store.py +0 -0
  40. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/core/instance/seeding.py +0 -0
  41. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/core/mailpit.py +0 -0
  42. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/core/models/__init__.py +0 -0
  43. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/core/models/deploy.py +0 -0
  44. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/core/models/instance.py +0 -0
  45. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/core/models/profiles.py +0 -0
  46. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/core/models/project.py +0 -0
  47. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/core/module_scanner.py +0 -0
  48. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/core/odoo_conf.py +0 -0
  49. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/core/odoo_db.py +0 -0
  50. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/core/pack.py +0 -0
  51. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/core/port_validation.py +0 -0
  52. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/core/project_info.py +0 -0
  53. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/core/service.py +0 -0
  54. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/core/traefik.py +0 -0
  55. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/core/unpack.py +0 -0
  56. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/deploy_cli.py +0 -0
  57. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/docker_cli.py +0 -0
  58. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/easter_egg.py +0 -0
  59. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/gui/__init__.py +0 -0
  60. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/gui/api/__init__.py +0 -0
  61. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/gui/api/deploy_ops.py +0 -0
  62. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/gui/api/docker_ops.py +0 -0
  63. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/gui/api/gitman.py +0 -0
  64. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/gui/api/instances.py +0 -0
  65. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/gui/api/mail.py +0 -0
  66. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/gui/api/modules.py +0 -0
  67. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/gui/api/odoo.py +0 -0
  68. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/gui/api/pack_ops.py +0 -0
  69. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/gui/api/project.py +0 -0
  70. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/gui/api/setup.py +0 -0
  71. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/gui/api/traefik_ops.py +0 -0
  72. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/gui/api/workspace.py +0 -0
  73. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/gui/server.py +0 -0
  74. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/gui/static/vue.global.prod.js +0 -0
  75. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/gui_cli.py +0 -0
  76. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/init_project.py +0 -0
  77. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/instance_cli.py +0 -0
  78. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/mail_cli.py +0 -0
  79. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/pack_environment.py +0 -0
  80. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/scaffold.py +0 -0
  81. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/templates/.devcontainer/devcontainer.json +0 -0
  82. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/templates/.devcontainer/docker-compose.yaml +0 -0
  83. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/templates/.gitignore.jinja +0 -0
  84. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/templates/.vscode/launch.json +0 -0
  85. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/templates/.vscode/launch.json.jinja +0 -0
  86. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/templates/.vscode/settings.json +0 -0
  87. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/templates/Dockerfile.jinja +0 -0
  88. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/templates/addons/.gitkeep +0 -0
  89. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/templates/ci/workflow.yaml.jinja +0 -0
  90. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/templates/config/odoo.conf +0 -0
  91. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/templates/config/odoo.conf.jinja +0 -0
  92. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/templates/deploy/.deployignore +0 -0
  93. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/templates/deploy/deploy.yaml +0 -0
  94. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/templates/deploy/deploy.yaml.jinja +0 -0
  95. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/templates/docker-compose.yaml.jinja +0 -0
  96. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/templates/install_dependencies.sh +0 -0
  97. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/templates/instance/Dockerfile.jinja +0 -0
  98. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/templates/instance/docker-compose.jinja +0 -0
  99. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/templates/instance/odoo.conf.jinja +0 -0
  100. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/templates/odoo_pg_pass +0 -0
  101. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/templates/profiles/README.md +0 -0
  102. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/templates/profiles/odoo15-ce.yaml +0 -0
  103. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/templates/profiles/odoo15-ee.yaml +0 -0
  104. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/templates/profiles/odoo16-ce.yaml +0 -0
  105. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/templates/profiles/odoo16-ee.yaml +0 -0
  106. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/templates/profiles/odoo17-ce.yaml +0 -0
  107. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/templates/profiles/odoo17-ee.yaml +0 -0
  108. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/templates/profiles/odoo18-ce.yaml +0 -0
  109. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/templates/profiles/odoo18-ee.yaml +0 -0
  110. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/templates/profiles/odoo19-ce.yaml +0 -0
  111. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/templates/profiles/odoo19-ee.yaml +0 -0
  112. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/templates/profiles/odoo20-ce.yaml +0 -0
  113. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/templates/profiles/odoo20-ee.yaml +0 -0
  114. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/traefik_cli.py +0 -0
  115. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/unpack_environment.py +0 -0
  116. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo/welcome.py +0 -0
  117. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo.egg-info/SOURCES.txt +0 -0
  118. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo.egg-info/dependency_links.txt +0 -0
  119. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo.egg-info/entry_points.txt +0 -0
  120. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo.egg-info/requires.txt +0 -0
  121. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/rocketdoo.egg-info/top_level.txt +0 -0
  122. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/setup.cfg +0 -0
  123. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/tests/test_addons_path.py +0 -0
  124. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/tests/test_ci_cli.py +0 -0
  125. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/tests/test_cli_output.py +0 -0
  126. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/tests/test_compose.py +0 -0
  127. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/tests/test_core_contract.py +0 -0
  128. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/tests/test_db_seed.py +0 -0
  129. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/tests/test_docker_cli.py +0 -0
  130. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/tests/test_e2e_pack_unpack.py +0 -0
  131. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/tests/test_e2e_scaffold.py +0 -0
  132. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/tests/test_easter_egg.py +0 -0
  133. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/tests/test_edition_setup.py +0 -0
  134. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/tests/test_gitignore_manager.py +0 -0
  135. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/tests/test_gitman_config.py +0 -0
  136. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/tests/test_gitman_remote.py +0 -0
  137. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/tests/test_gui_api.py +0 -0
  138. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/tests/test_gui_mail.py +0 -0
  139. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/tests/test_gui_static.py +0 -0
  140. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/tests/test_imports.py +0 -0
  141. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/tests/test_instance_docker.py +0 -0
  142. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/tests/test_instance_enterprise.py +0 -0
  143. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/tests/test_instance_native.py +0 -0
  144. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/tests/test_instance_proxy.py +0 -0
  145. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/tests/test_instance_remote_dirs.py +0 -0
  146. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/tests/test_instance_seed.py +0 -0
  147. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/tests/test_instance_wizard.py +0 -0
  148. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/tests/test_mail_cli.py +0 -0
  149. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/tests/test_mailpit.py +0 -0
  150. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/tests/test_mailpit_ports.py +0 -0
  151. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/tests/test_models.py +0 -0
  152. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/tests/test_module_scanner.py +0 -0
  153. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/tests/test_odoo_conf.py +0 -0
  154. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/tests/test_odoo_db.py +0 -0
  155. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/tests/test_pack_environment.py +0 -0
  156. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/tests/test_port_validation.py +0 -0
  157. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/tests/test_profiles.py +0 -0
  158. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/tests/test_project_info.py +0 -0
  159. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/tests/test_secrets_hardening.py +0 -0
  160. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/tests/test_templates.py +0 -0
  161. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/tests/test_traefik.py +0 -0
  162. {rocketdoo-3.14.0 → rocketdoo-3.14.2}/tests/test_unpack_environment.py +0 -0
@@ -57,7 +57,7 @@ If the Library as you received it specifies that a proxy can decide whether futu
57
57
  <div RKD as ROCKETDOO V3=""></div>
58
58
 
59
59
  Licencia: LGPL-3.0+
60
- Versión: "3.14.0"
60
+ Versión: "3.14.2"
61
61
  Autor: Horacio Montaño
62
- Fecha: 20/11/2026
62
+ Fecha: 23/11/2026
63
63
  Descripción: Framework to development Odoo
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rocketdoo
3
- Version: 3.14.0
3
+ Version: 3.14.2
4
4
  Summary: Framework for creating Odoo development environments with Docker and custom templates.
5
5
  Author-email: Horacio Montaño <horaciomontano@hdmsoft.com.ar>
6
6
  License: GNU LESSER GENERAL PUBLIC LICENSE
@@ -62,9 +62,9 @@ License: GNU LESSER GENERAL PUBLIC LICENSE
62
62
  <div RKD as ROCKETDOO V3=""></div>
63
63
 
64
64
  Licencia: LGPL-3.0+
65
- Versión: "3.14.0"
65
+ Versión: "3.14.2"
66
66
  Autor: Horacio Montaño
67
- Fecha: 20/11/2026
67
+ Fecha: 23/11/2026
68
68
  Descripción: Framework to development Odoo
69
69
  Requires-Python: >=3.10
70
70
  Description-Content-Type: text/markdown
@@ -97,7 +97,7 @@ Odoo Development Framework
97
97
  - "Horacio Montaño"
98
98
 
99
99
  ## Version:
100
- - "3.14.0"
100
+ - "3.14.2"
101
101
 
102
102
  ----------------------------------------------------------------------------------------------------------------------------------------------------------
103
103
 
@@ -15,7 +15,7 @@ Odoo Development Framework
15
15
  - "Horacio Montaño"
16
16
 
17
17
  ## Version:
18
- - "3.14.0"
18
+ - "3.14.2"
19
19
 
20
20
  ----------------------------------------------------------------------------------------------------------------------------------------------------------
21
21
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "rocketdoo"
3
- version = "3.14.0"
3
+ version = "3.14.2"
4
4
  description = "Framework for creating Odoo development environments with Docker and custom templates."
5
5
  authors = [
6
6
  { name = "Horacio Montaño", email = "horaciomontano@hdmsoft.com.ar" }
@@ -14,6 +14,7 @@ from rich.console import Console
14
14
  from rich.prompt import Confirm, Prompt
15
15
 
16
16
  from rocketdoo.core.models import DeployConfig
17
+ from rocketdoo.core.ssh_manager import list_private_keys
17
18
 
18
19
  console = Console()
19
20
 
@@ -271,7 +272,7 @@ class DeployConfigManager:
271
272
  use_key = Confirm.ask("Use SSH key authentication?", default=True)
272
273
 
273
274
  if use_key:
274
- ssh_key = Prompt.ask("SSH key path", default="~/.ssh/id_rsa")
275
+ ssh_key = self._ask_ssh_key()
275
276
  connection = {"host": host, "port": int(port), "user": user, "ssh_key": ssh_key}
276
277
  else:
277
278
  console.print("[yellow]⚠️ Password will be requested at deploy time[/yellow]")
@@ -316,6 +317,27 @@ class DeployConfigManager:
316
317
 
317
318
  return (target_name, config)
318
319
 
320
+ @staticmethod
321
+ def _ask_ssh_key() -> str:
322
+ """Pick a key from ~/.ssh/, the way `rkd init` and `rkd instance init` do.
323
+
324
+ A free-text prompt took a bare name and wrote it unchanged, which the
325
+ deployer then read as a relative path (#314).
326
+ """
327
+ available_keys = list_private_keys()
328
+ if not available_keys:
329
+ console.print("[yellow]⚠ No SSH keys found in ~/.ssh/[/yellow]")
330
+ console.print("[dim]Generate one with: ssh-keygen -t ed25519[/dim]")
331
+ return Prompt.ask("SSH key path (full)", default="~/.ssh/id_rsa")
332
+
333
+ console.print(f"[dim]Found {len(available_keys)} key(s) in ~/.ssh/[/dim]")
334
+ selected = questionary.select(
335
+ "Select the SSH key configured on this server:", choices=available_keys, style=custom_style
336
+ ).ask()
337
+ if not selected:
338
+ return Prompt.ask("SSH key path (full)", default="~/.ssh/id_rsa")
339
+ return f"~/.ssh/{selected}"
340
+
319
341
  def _configure_odoo_sh_target(self, target_name: str) -> tuple:
320
342
  """
321
343
  Configures an Odoo.sh target
@@ -3,7 +3,6 @@ RocketDoo Deploy - VPS Deployer
3
3
  Deploys Odoo modules to VPS servers (Docker or Native)
4
4
  """
5
5
 
6
- import os
7
6
  import stat
8
7
  import subprocess
9
8
  from getpass import getpass
@@ -13,7 +12,7 @@ from typing import Dict, List
13
12
  from rich.console import Console
14
13
  from rich.progress import BarColumn, Progress, SpinnerColumn, TaskProgressColumn, TextColumn
15
14
 
16
- from rocketdoo.core.ssh_manager import check_sshpass, env_ref_name, resolve_env_ref, sshpass_wrap
15
+ from rocketdoo.core.ssh_manager import check_sshpass, env_ref_name, resolve_env_ref, resolve_key_path, sshpass_wrap
17
16
 
18
17
  from .base import BaseDeployer, DeploymentResult
19
18
  from .module_packager import ModulePackager
@@ -48,7 +47,7 @@ class VPSDeployer(BaseDeployer):
48
47
  self.user = self.connection.get("user")
49
48
 
50
49
  # Authentication credentials
51
- self.ssh_key = self.connection.get("ssh_key")
50
+ self.ssh_key = resolve_key_path(self.connection.get("ssh_key") or "")
52
51
  self.password = self.connection.get("password")
53
52
 
54
53
  # Determine authentication method by presence
@@ -138,7 +137,7 @@ class VPSDeployer(BaseDeployer):
138
137
  if self.auth_method == "ssh_key":
139
138
  if not self.ssh_key:
140
139
  errors.append("SSH key authentication selected but 'ssh_key' not configured")
141
- elif not Path(os.path.expanduser(self.ssh_key)).exists():
140
+ elif not Path(self.ssh_key).exists():
142
141
  errors.append(f"SSH key not found: {self.ssh_key}")
143
142
  elif self.auth_method == "password":
144
143
  if not self.password:
@@ -421,7 +420,7 @@ class VPSDeployer(BaseDeployer):
421
420
 
422
421
  # Add authentication based on method
423
422
  if self.auth_method == "ssh_key" and self.ssh_key:
424
- key_path = os.path.expanduser(self.ssh_key)
423
+ key_path = self.ssh_key
425
424
  ssh_cmd.extend(["-i", key_path])
426
425
 
427
426
  # Add user@host
@@ -461,7 +460,7 @@ class VPSDeployer(BaseDeployer):
461
460
  ssh_opts = f"-p {self.port} -o StrictHostKeyChecking=no"
462
461
 
463
462
  if self.auth_method == "ssh_key" and self.ssh_key:
464
- key_path = os.path.expanduser(self.ssh_key)
463
+ key_path = self.ssh_key
465
464
  ssh_opts += f" -i {key_path}"
466
465
 
467
466
  rsync_cmd.extend(["-e", f"ssh {ssh_opts}"])
@@ -513,7 +512,7 @@ class VPSDeployer(BaseDeployer):
513
512
 
514
513
  # Add authentication based on method
515
514
  if self.auth_method == "ssh_key" and self.ssh_key:
516
- key_path = os.path.expanduser(self.ssh_key)
515
+ key_path = self.ssh_key
517
516
  scp_cmd.extend(["-i", key_path])
518
517
 
519
518
  # Add source and destination
@@ -268,7 +268,9 @@ class InstanceConfigManager:
268
268
  selected = questionary.select(
269
269
  "Select the SSH key configured on this VPS:", choices=available_keys, style=_custom_style
270
270
  ).ask()
271
- ssh_key = f"~/.ssh/{selected}"
271
+ # A cancelled select returns None, and f"~/.ssh/{None}" validates
272
+ # as a str: the deploy then fails on a key named "None".
273
+ ssh_key = f"~/.ssh/{selected}" if selected else Prompt.ask("SSH key path (full)", default="~/.ssh/id_rsa")
272
274
  else:
273
275
  console.print("[dim]Password will be requested at deploy time or read from the env var below.[/dim]")
274
276
  env_var = f"INSTANCE_{env.upper()}_PASSWORD"
@@ -11,9 +11,12 @@ import shlex
11
11
  import subprocess
12
12
  from pathlib import Path
13
13
 
14
+ import yaml
15
+
14
16
  from rocketdoo.core.gitman_config import gitman_has_scripts, gitman_repos
15
17
  from rocketdoo.core.odoo_db import database_bytes, databases_result, filestore_bytes, pg_major_version
16
18
  from rocketdoo.core.project_info import read_docker_compose
19
+ from rocketdoo.core.ssh_manager import resolve_key_path
17
20
 
18
21
  from .config_manager import (
19
22
  CRON_THREADS,
@@ -22,6 +25,7 @@ from .config_manager import (
22
25
  MEMORY_BY_ENV,
23
26
  PG_PROFILES,
24
27
  WORKERS_BY_ENV,
28
+ InstanceConfigManager,
25
29
  invalid_identifiers,
26
30
  )
27
31
  from .enterprise import REPO as ENTERPRISE_REPO
@@ -53,7 +57,7 @@ def gitman_file(cfg: dict) -> str:
53
57
  return cfg.get("gitman_config") or DEFAULT_GITMAN_FILE
54
58
 
55
59
 
56
- def local_facts(project_root: Path, cfg: dict) -> dict:
60
+ def local_facts(project_root: Path, cfg: dict, *, env: str) -> dict:
57
61
  root = Path(project_root)
58
62
  vps = cfg.get("vps", {})
59
63
  use_gitman = bool(cfg.get("use_gitman"))
@@ -67,14 +71,61 @@ def local_facts(project_root: Path, cfg: dict) -> dict:
67
71
  "agent_has_keys": _agent_has_keys(),
68
72
  "ssh_auth_sock": bool(os.environ.get("SSH_AUTH_SOCK")),
69
73
  "build_needs_ssh": build_needs_ssh(root, cfg),
70
- "key_file": None if key is None else os.path.exists(os.path.expanduser(key)),
74
+ "key_file": None if key is None else os.path.exists(resolve_key_path(key)),
71
75
  "invalid_identifiers": invalid_identifiers(cfg.get("db_user", ""), cfg.get("db_name", "")),
76
+ "native_host_clash": _sibling_native_hosts(root, env, cfg),
72
77
  }
73
78
  if cfg.get("seed_database"):
74
79
  facts.update(_seed_facts(root, cfg["seed_database"]))
75
80
  return facts
76
81
 
77
82
 
83
+ def _sibling_native_hosts(root: Path, env: str, cfg: dict) -> list[str]:
84
+ """Other native environments of this project that deploy to the same server.
85
+
86
+ The native path has no per-environment paths: `/opt/odoo/extra-addons` (the
87
+ default `remote_path`, with no environment in it, unlike Docker's
88
+ `/opt/odoo-{env}`), `/etc/odoo/odoo.conf`, the single `odoo` unit,
89
+ `/opt/odoo/enterprise`, `/opt/odoo/gitman` and port 8069 are shared. A
90
+ second native deploy to the same server rewrites the first one's conf,
91
+ points its service at another database and rsyncs `--delete` over its
92
+ addons, and reports success doing it (#319).
93
+
94
+ The file is read through InstanceConfigManager, the same loader the deploy
95
+ uses, and not with a bare safe_load: that normalises `vps: ` with no value
96
+ (which the deploy accepts and a raw read turns into an AttributeError), the
97
+ bare environment map with no `environments:` wrapper, and the flat
98
+ connection fields the GUI used to write. Reading those by hand meant the
99
+ check never fired on two of the three shapes that exist on disk.
100
+
101
+ Server identity is (host, SSH port): the same hostname on two ports is a
102
+ port-forward to two different machines, which NAT makes ordinary. The
103
+ reverse — one machine reached through two ports — goes undetected, and that
104
+ is the right way to be wrong: a false positive here blocks a deploy that
105
+ works.
106
+ """
107
+ if cfg.get("type") != "native":
108
+ return []
109
+ host = str(cfg.get("vps", {}).get("host", "")).strip().lower()
110
+ if not host:
111
+ return []
112
+ target = (host, _int(cfg.get("vps", {}).get("port", 22)))
113
+ try:
114
+ others = InstanceConfigManager(root).load().get("environments", {})
115
+ except (OSError, ValueError, yaml.YAMLError):
116
+ # The deploy loads this same file through this same loader, so it
117
+ # already failed on anything that lands here.
118
+ return []
119
+ clashing = [
120
+ str(name)
121
+ for name, other in others.items()
122
+ if name != env
123
+ and other.get("type") == "native"
124
+ and (str(other.get("vps", {}).get("host", "")).strip().lower(), _int(other.get("vps", {}).get("port", 22))) == target
125
+ ]
126
+ return sorted(clashing)
127
+
128
+
78
129
  def _seed_facts(root: Path, database: str) -> dict:
79
130
  compose = read_docker_compose(root) or {}
80
131
  databases, reason = databases_result(compose)
@@ -524,6 +575,24 @@ def _local_checks(cfg: dict, local: dict) -> list[Check]:
524
575
  "Up to 63 letters, digits and underscores, not starting with a digit.",
525
576
  )
526
577
  ]
578
+ clash = local.get("native_host_clash", [])
579
+ if cfg.get("type") == "native":
580
+ checks.append(
581
+ _check(
582
+ "native host",
583
+ "block",
584
+ not clash,
585
+ "no other native environment targets this host"
586
+ if not clash
587
+ else f"{', '.join(clash)} already deploys natively to this host",
588
+ "A native deploy owns /etc/odoo/odoo.conf, the odoo systemd unit, /opt/odoo/extra-addons "
589
+ "(rsynced with --delete), /opt/odoo/enterprise, /opt/odoo/gitman and port 8069 — none of them "
590
+ "per environment. Deploying this one would overwrite the other's configuration, point its "
591
+ "service at another database and delete its addons. Use a separate host, or type docker, "
592
+ "which isolates each environment under /opt/odoo-{env}. If the other environment is not deployed "
593
+ "there any more, remove it from .rkd/instance.yaml.",
594
+ )
595
+ )
527
596
  if local.get("key_file") is not None:
528
597
  checks.append(
529
598
  _check(
@@ -603,7 +672,7 @@ def blocking(checks: list[Check]) -> list[Check]:
603
672
 
604
673
  def run(project_root: Path, auth: dict, cfg: dict, *, env: str) -> list[Check]:
605
674
  """Local checks first: a failure already known does not wait for a 90 s SSH session."""
606
- local = local_facts(project_root, cfg)
675
+ local = local_facts(project_root, cfg, env=env)
607
676
  checks = evaluate(cfg, local, env=env)
608
677
  if blocking(checks):
609
678
  return checks
@@ -7,13 +7,12 @@ Mirrors the auth pattern from core/deploy/vps.py:
7
7
  - password → sshpass -e (password read from the SSHPASS env var, requires sshpass installed)
8
8
  """
9
9
 
10
- import os
11
10
  from getpass import getpass
12
11
  from pathlib import Path
13
12
 
14
13
  from rich.console import Console
15
14
 
16
- from rocketdoo.core.ssh_manager import check_sshpass, env_ref_name, resolve_env_ref, sshpass_wrap
15
+ from rocketdoo.core.ssh_manager import check_sshpass, env_ref_name, resolve_env_ref, resolve_key_path, sshpass_wrap
17
16
 
18
17
  console = Console()
19
18
 
@@ -38,7 +37,7 @@ def resolve_auth(vps_cfg: dict, env: str, project_path: Path) -> dict:
38
37
 
39
38
  if method == "ssh_key":
40
39
  raw_key = vps_cfg.get("ssh_key", "~/.ssh/id_rsa")
41
- key_path = os.path.expanduser(raw_key)
40
+ key_path = resolve_key_path(raw_key)
42
41
  if not Path(key_path).exists():
43
42
  console.print(f"[yellow]⚠ SSH key not found: {key_path}[/yellow]")
44
43
  return {"method": "ssh_key", "key_path": key_path, "password": None}
@@ -6,10 +6,57 @@ import shutil
6
6
  from pathlib import Path
7
7
 
8
8
 
9
+ def resolve_key_path(value: str) -> str:
10
+ """Absolute path of a configured `ssh_key`.
11
+
12
+ A bare name means a key in ~/.ssh/: that is what every rkd wizard lists and
13
+ what the user types back. `expanduser()` alone leaves it as a path relative
14
+ to the current directory, so the deploy failed with "SSH key not found" for
15
+ a key that was sitting in ~/.ssh/ all along (#314).
16
+ """
17
+ if not value:
18
+ return ""
19
+ expanded = os.path.expanduser(value)
20
+ if os.path.dirname(expanded):
21
+ return expanded
22
+ return str(Path.home() / ".ssh" / expanded)
23
+
24
+
25
+ # What OpenSSH keeps in ~/.ssh/ that is not a key. Matched on the name up to
26
+ # the first dot, case-insensitively, so known_hosts.old and config.bak.20261118
27
+ # go with it and `Config` on a case-insensitive filesystem does too (#318).
28
+ # Offering these in a key picker produces a configuration that fails at deploy
29
+ # time, which is exactly what #314 was about.
30
+ _RESERVED_NAMES = frozenset(
31
+ {
32
+ "config",
33
+ "known_hosts",
34
+ "known_hosts2",
35
+ "authorized_keys",
36
+ # The documented default of AuthorizedKeysFile is the pair
37
+ # `.ssh/authorized_keys .ssh/authorized_keys2`.
38
+ "authorized_keys2",
39
+ # gpg.ssh.allowedSignersFile, increasingly common with SSH commit signing.
40
+ "allowed_signers",
41
+ "environment",
42
+ "rc",
43
+ }
44
+ )
45
+ # .pub is a public key; .ppk is PuTTY's own format, which `ssh -i` does not read.
46
+ _NOT_KEY_SUFFIXES = (".pub", ".ppk")
47
+
48
+
9
49
  def list_private_keys(ssh_dir: Path = Path.home() / ".ssh"):
10
50
  if not ssh_dir.exists():
11
51
  return []
12
- return [p.name for p in ssh_dir.iterdir() if p.is_file() and not p.name.endswith(".pub")]
52
+ keys = []
53
+ for p in ssh_dir.iterdir():
54
+ # An empty stem is a dotfile (.DS_Store, .bash_history): a private key
55
+ # whose name starts with a dot does not happen in practice.
56
+ stem = p.name.split(".", 1)[0].lower()
57
+ if p.is_file() and stem and stem not in _RESERVED_NAMES and not p.name.endswith(_NOT_KEY_SUFFIXES):
58
+ keys.append(p.name)
59
+ return keys
13
60
 
14
61
 
15
62
  def copy_key_to_build_context(key_name: str, dockerfile_dir: Path):
@@ -2404,12 +2404,14 @@ const Deploy = {
2404
2404
  const hasConfig = ref(false)
2405
2405
  const initForm = ref({ target_name:'production', target_type:'vps', host:'', user:'ubuntu', ssh_port:22, ssh_key:'', deployment_type:'docker', force:false })
2406
2406
  const initBusy = ref(false)
2407
+ const sshKeys = ref([])
2407
2408
 
2408
2409
  async function load() {
2409
2410
  busy.value = true
2410
2411
  try {
2411
- const [t,c] = await Promise.all([api.get('/deploy/targets'), api.get('/deploy/config')])
2412
- targets.value = t.targets||[]; hasConfig.value = c.exists
2412
+ const [t,c,k] = await Promise.all([api.get('/deploy/targets'), api.get('/deploy/config'), api.get('/setup/ssh-keys')])
2413
+ targets.value = t.targets||[]; hasConfig.value = c.exists; sshKeys.value = k.keys||[]
2414
+ if (!initForm.value.ssh_key && sshKeys.value.length) initForm.value.ssh_key = '~/.ssh/' + sshKeys.value[0]
2413
2415
  } catch { notify(t('loadFailed'),'err') }
2414
2416
  finally { busy.value = false }
2415
2417
  }
@@ -2441,7 +2443,7 @@ const Deploy = {
2441
2443
  finally { initBusy.value = false }
2442
2444
  }
2443
2445
  onActivated(load)
2444
- return { targets, busy, depBusy, valBusy, validation, output, hasConfig, initForm, initBusy, load, deployTarget, validate, initDeploy, I }
2446
+ return { targets, busy, depBusy, valBusy, validation, output, hasConfig, initForm, initBusy, sshKeys, load, deployTarget, validate, initDeploy, I }
2445
2447
  },
2446
2448
  template: `
2447
2449
  <div class="page fade-in">
@@ -2498,8 +2500,14 @@ const Deploy = {
2498
2500
  <div><label style="font-size:12px;color:var(--mu);display:block;margin-bottom:4px;">{{ $t('deploymentLabel') }}</label>
2499
2501
  <select v-model="initForm.deployment_type" class="input"><option value="docker">docker</option><option value="native">native</option></select></div>
2500
2502
  </div>
2501
- <div><label style="font-size:12px;color:var(--mu);display:block;margin-bottom:4px;">{{ $t('sshKeyPathLabel') }}</label>
2502
- <input v-model="initForm.ssh_key" class="input" :placeholder="$t('sshKeyPathPlaceholder')" /></div>
2503
+ <div v-if="sshKeys.length"><label style="font-size:12px;color:var(--mu);display:block;margin-bottom:4px;">{{ $t('sshKeyFromDir') }}</label>
2504
+ <select v-model="initForm.ssh_key" class="input">
2505
+ <option v-for="k in sshKeys" :key="k" :value="'~/.ssh/' + k">{{ k }}</option>
2506
+ <option v-if="initForm.ssh_key && !sshKeys.some(k => '~/.ssh/' + k === initForm.ssh_key)" :value="initForm.ssh_key">{{ initForm.ssh_key }}</option>
2507
+ </select></div>
2508
+ <div v-else><label style="font-size:12px;color:var(--mu);display:block;margin-bottom:4px;">{{ $t('sshKeyPathLabel') }}</label>
2509
+ <input v-model="initForm.ssh_key" class="input" :placeholder="$t('sshKeyPathPlaceholder')" />
2510
+ <div style="font-size:11px;color:var(--mu);margin-top:5px;" v-html="$t('noSshKeysFoundHint')"></div></div>
2503
2511
  </div>
2504
2512
  <div style="margin-top:14px;border-top:1px solid var(--ln);padding-top:12px;">
2505
2513
  <button @click="initDeploy" class="btn btn-primary" :disabled="initBusy">
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rocketdoo
3
- Version: 3.14.0
3
+ Version: 3.14.2
4
4
  Summary: Framework for creating Odoo development environments with Docker and custom templates.
5
5
  Author-email: Horacio Montaño <horaciomontano@hdmsoft.com.ar>
6
6
  License: GNU LESSER GENERAL PUBLIC LICENSE
@@ -62,9 +62,9 @@ License: GNU LESSER GENERAL PUBLIC LICENSE
62
62
  <div RKD as ROCKETDOO V3=""></div>
63
63
 
64
64
  Licencia: LGPL-3.0+
65
- Versión: "3.14.0"
65
+ Versión: "3.14.2"
66
66
  Autor: Horacio Montaño
67
- Fecha: 20/11/2026
67
+ Fecha: 23/11/2026
68
68
  Descripción: Framework to development Odoo
69
69
  Requires-Python: >=3.10
70
70
  Description-Content-Type: text/markdown
@@ -97,7 +97,7 @@ Odoo Development Framework
97
97
  - "Horacio Montaño"
98
98
 
99
99
  ## Version:
100
- - "3.14.0"
100
+ - "3.14.2"
101
101
 
102
102
  ----------------------------------------------------------------------------------------------------------------------------------------------------------
103
103
 
@@ -206,3 +206,74 @@ class TestValidateExitCode:
206
206
  result = self._run(tmp_path)
207
207
 
208
208
  assert result.exit_code == 0
209
+
210
+
211
+ class TestConfiguredKeyReachesTheDeployer:
212
+ """What the wizard writes under `ssh_key` has to work when the deploy reads it.
213
+
214
+ `rkd deploy init` took the key as free text while `rkd init` and
215
+ `rkd instance init` list ~/.ssh/ by name, so a bare name was the natural
216
+ thing to type — and the deployer then read it as a path relative to the
217
+ current directory (#314).
218
+ """
219
+
220
+ @staticmethod
221
+ def _deployer(tmp_path, ssh_key):
222
+ from rocketdoo.core.deploy.vps import VPSDeployer
223
+
224
+ target = {
225
+ "type": "vps",
226
+ "deployment_type": "docker",
227
+ "connection": {"host": "vps.example.com", "user": "root", "port": 22, "ssh_key": ssh_key},
228
+ "docker": {"container_name": "odoo", "addons_mount": "/mnt/extra-addons"},
229
+ }
230
+ return VPSDeployer("production", target, tmp_path)
231
+
232
+ @pytest.fixture
233
+ def home_with_key(self, tmp_path, monkeypatch):
234
+ home = tmp_path / "home"
235
+ (home / ".ssh").mkdir(parents=True)
236
+ (home / ".ssh" / "hdmsoft").write_text("private")
237
+ monkeypatch.setenv("HOME", str(home))
238
+ return home
239
+
240
+ @pytest.mark.parametrize("configured", ["hdmsoft", "~/.ssh/hdmsoft"])
241
+ def test_name_and_tilde_path_both_validate(self, configured, home_with_key, tmp_path):
242
+ deployer = self._deployer(tmp_path, configured)
243
+
244
+ assert deployer.validate_config() == []
245
+ assert deployer.ssh_key == str(home_with_key / ".ssh" / "hdmsoft")
246
+
247
+ def test_missing_key_still_reported(self, home_with_key, tmp_path):
248
+ deployer = self._deployer(tmp_path, "not-there")
249
+
250
+ errors = deployer.validate_config()
251
+
252
+ assert len(errors) == 1
253
+ assert "SSH key not found" in errors[0]
254
+ # The message names the resolved path, not the bare word that was typed.
255
+ assert str(home_with_key / ".ssh" / "not-there") in errors[0]
256
+
257
+ def test_ssh_command_gets_the_absolute_path(self, home_with_key, tmp_path, monkeypatch):
258
+ from rocketdoo.core.deploy import vps
259
+
260
+ deployer = self._deployer(tmp_path, "hdmsoft")
261
+ calls = []
262
+ monkeypatch.setattr(
263
+ vps.subprocess,
264
+ "run",
265
+ lambda *a, **k: calls.append(a) or type("R", (), {"returncode": 0, "stdout": "", "stderr": ""})(),
266
+ )
267
+
268
+ deployer._run_ssh_command("echo hi")
269
+
270
+ argv = calls[0][0]
271
+ assert argv[argv.index("-i") + 1] == str(home_with_key / ".ssh" / "hdmsoft")
272
+
273
+ def test_wizard_writes_a_path_not_a_name(self, monkeypatch):
274
+ from rocketdoo.core.deploy import config_manager as cm
275
+
276
+ monkeypatch.setattr(cm, "list_private_keys", lambda: ["hdmsoft", "id_rsa"])
277
+ monkeypatch.setattr(cm.questionary, "select", lambda *a, **k: type("Q", (), {"ask": lambda self: "hdmsoft"})())
278
+
279
+ assert cm.DeployConfigManager._ask_ssh_key() == "~/.ssh/hdmsoft"