[Feature] Let the Server take the initial admin password without a properties-file round trip
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 45/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- java
- Área
- authentication, backend
Línea de trabajo
Start with ServerOptions.java:483 and HugeConfig.java:218 to trace how auth.admin_pa is defined and loaded; also read the referenced Docker entrypoint and Helm schema restrictions. Compare the proposed raw-password source with the compatibility option, then identify the tests covering configuration loading and initial admin setup. Done means the chosen behavior preserves the exact configured password and existing auth.admin_pa compatibility is addressed.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Feature Description (功能描述)
The initial admin password reaches the Server only through auth.admin_pa in rest-server.properties (ServerOptions.java:483). HugeConfig loads that file with Configurations.properties() (HugeConfig.java:218), so the value goes through the properties grammar. The password the Server stores can then differ from the one the operator set.
Measured 2026-10-07 with commons-configuration2 2.10.1 (the version in hugegraph-commons/pom.xml), reading a file through new Configurations().properties(file):
| Written to the file | Read back |
|---|---|
padded |
padded (trimmed) |
two\\back |
two\back (escape processed) |
x\ty |
x, a tab, y |
pässword (UTF-8 bytes) |
pässword (read as ISO-8859-1) |
The Docker entrypoint writes PASSWORD into this file (docker-entrypoint.sh:184), so PASSWORD=pässword creates an admin whose password is pässword.
Proposal, either of:
- Read the initial admin password from a source that is not parsed as properties, for example an environment variable or a file path read as raw UTF-8 (
auth.admin_pa_file), and keepauth.admin_pafor compatibility. - Keep the file and document the contract: printable ASCII, no leading or trailing space, backslashes escaped.
The Helm chart refuses padded, backslash and non-ASCII admin passwords in values.schema.json:824 and its Server wrapper until this changes. The TODO at ServerOptions.java:483 (from #3260) points here.
Related: non-ASCII passwords also fail at Basic login, tracked separately in #3284. #3133 / #3192 cover the entrypoint's own escaping.
Not proposed for 1.8.0: the chart guard covers it, and option 1 adds a config surface.
- Lenguaje dominante
- Java
- Estrellas
- 3.2k
- Forks
- 641
- Merge medio
- 1 d 11 h
- PR fusionados (30 d)
- 48
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
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 apache/hugegraph
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
apache/hugegraph#3231 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
[Bug] Prometheus metrics format bugQuizá libre de nuevo @cui2022 la tomó hace 63 días y no hay ningún pull request abierto. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
apache/hugegraph#3142 · 7 comentarios ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 3/5 1-2 días Aptitud para principiantes 66/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 52/100
Los mantenedores suelen responder en 1 día
-
[Bug] CI accepts obsolete PR targets after retargeting or force-pushQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 25/100
Los mantenedores suelen responder en 1 día
Todos los issues de apache/hugegraph
Issues similares
-
[BUG] 增量 SSE 解析器未识别单独 CR 换行,导致事件无法及时交付Posiblemente ocupada @king-wwwhhh la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
langchain4j/langchain4j#6669 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
OpenAPITools/openapi-generator#25237 ·
Los mantenedores suelen responder en 1 día
-
needs-area-label
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
quelea-projection/Quelea#711 ·
-
bug pdd
Dificultad 2/5 Menos de una hora Aptitud para principiantes 67/100
objectionary/eo#9450 ·
Los mantenedores suelen responder en 1 día