Watch
0
0
Fork
You've already forked hyperhive
0

move the c0re host options to deploy.hive-controller

This commit is contained in:
atlas 2026-10-29 01:02:45 +01:00
commit 74f463c40e

View file

@ -27,7 +27,8 @@ fn connect_hint(kind: ErrorKind, socket: &Path) -> String {
ErrorKind::PermissionDenied => format!(
"permission denied opening the host admin socket {path} — reaching it requires \
membership in the `hive-admin` group. Add your user to \
`services.hyperhive.adminUsers`, then log out and back in: secondary group \
`services.hyperhive.deploy.hive-controller.adminUsers`, then log out and back \
in: secondary group \
membership is applied at login, so a shell opened before the change still \
cannot connect. `id -nG` shows what the running shell actually has; \
`newgrp hive-admin` picks the group up without a full re-login"
@ -128,7 +129,10 @@ mod tests {
fn permission_denied_names_the_group_and_the_relogin() {
let h = hint(ErrorKind::PermissionDenied);
assert!(h.contains("hive-admin"), "{h}");
assert!(h.contains("adminUsers"), "{h}");
assert!(
h.contains("services.hyperhive.deploy.hive-controller.adminUsers"),
"{h}"
);
assert!(h.contains("log out"), "{h}");
assert!(
!h.contains("not running"),