render squid's users file from this hive's proxy credentials
This commit is contained in:
parent
ec06a91deb
commit
52d532ff5a
1 changed files with 562 additions and 6 deletions
|
|
@ -505,6 +505,21 @@ let
|
|||
&& builtins.elem "cache deny all" lines
|
||||
&& lib.last (lib.filter (l: l != "") lines) == "http_access deny all";
|
||||
}
|
||||
{
|
||||
# The file hive-c0re renders exists, owned by it and readable by squid's
|
||||
# group, from boot; hive-c0re gets its path only on a host with a store
|
||||
# identity.
|
||||
name = "squid's users file exists for hive-c0re to write, and hive-c0re is told where it is";
|
||||
ok =
|
||||
let
|
||||
users = hiveOtel.services.hyperhive.squid.usersFile;
|
||||
rules = hiveOtel.systemd.tmpfiles.rules;
|
||||
in
|
||||
users == "/var/lib/hive-squid/users"
|
||||
&& builtins.elem "d /var/lib/hive-squid 2750 hive-core squid - -" rules
|
||||
&& builtins.elem "f ${users} 0640 hive-core squid - -" rules
|
||||
&& hiveOtelAllLocal.systemd.services.hive-c0re.environment.HIVE_SQUID_USERS_FILE == users;
|
||||
}
|
||||
{
|
||||
name = "squid's port is open on the bridge interface and on no other";
|
||||
ok =
|
||||
|
|
|
|||
Loading…
Reference in a new issue