Cloud push rejects an identical encryption key supplied from another path
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 76/100
Línea de trabajo
Empieza en lean/components/util/encryption_helper.py, en _validate_key_state_for_local_project, y luego busca las pruebas de preparación de archivos locales para el envío a la nube. Reproduce el caso con el mismo contenido de clave en distintas rutas y comprueba que se siga rechazando una clave realmente distinta. La tarea está completa cuando pase la prueba de regresión y el envío con la clave copiada tenga éxito.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Observed
An encrypted project configured with /keys/original.txt cannot be pushed with --encrypt --key /keys/backup.txt even when the two files have identical contents. Cloud-key validation accepts the matching hash, but local file preparation rejects the different path.
Reproduced on master at 3842533 with real push/encryption helpers and config storage, a fake filesystem, and a mocked API. Both synthetic files had the same contents and hash; the cloud project had that hash. The push returned False, made no project update, and reported:
Registered encryption key /keys/original.txt is different from the one provided /keys/backup.txt
Reproduction
- Encrypt a project using a synthetic key and push it successfully.
- Copy the key to another filesystem path without changing its contents.
- Run
lean cloud push --project Example --encrypt --key /path/to/copied-key.txt.
Cause and required result
_validate_key_state_for_local_project in lean/components/util/encryption_helper.py compares filesystem paths rather than key identity. An explicitly supplied identical key should remain usable from another path; genuinely different keys must still be rejected. Add a regression test for identical contents at different paths.
Priority P2: a valid-key operation fails, with a workaround of using the configured path.
- Lenguaje dominante
- Python
- Estrellas
- 335
- Forks
- 172
- Merge medio
- 6 h 54 min
- PR fusionados (30 d)
- 37
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de QuantConnect/lean-cli
-
priority:P2
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
QuantConnect/lean-cli#792 ·
Los mantenedores suelen responder en 1 día
-
priority:P2
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
QuantConnect/lean-cli#786 ·
Los mantenedores suelen responder en 1 día
-
priority:P2
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
QuantConnect/lean-cli#785 ·
Los mantenedores suelen responder en 1 día
-
A partially written live command result aborts polling with JSONDecodeErrorPosiblemente ocupada @pcbeingused333 la tomó hace 3 días. Abiertopriority:P2
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
QuantConnect/lean-cli#784 ·
Los mantenedores suelen responder en 1 día
-
Container lookup failures during result polling are masked by UnboundLocalErrorPosiblemente ocupada @pcbeingused333 la tomó hace 5 días. Abiertopriority:P2
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
QuantConnect/lean-cli#783 ·
Los mantenedores suelen responder en 1 día
Todos los issues de QuantConnect/lean-cli
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
pimutils/vdirsyncer#1242 ·
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
open-webui/open-webui#35360 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
-
Suggest link: Destiny Verify (MIT zero-dependency pre-commit security, citation & link hygiene CLI)Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 68/100
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día