[Unit] Description=Materialize HAN VM1 service secrets (%i) Documentation=file:/usr/local/share/doc/han-secrets/SELECTEL_RUNBOOK.ru.md Wants=network-online.target After=network-online.target Before=han-stack@%i.service ConditionPathIsDirectory=/opt/han-chat/current/backend [Service] Type=oneshot User=root Group=root UMask=0077 RuntimeDirectory=han-chat han-chat/secrets RuntimeDirectoryMode=0700 ExecStart=/usr/bin/python3 /usr/local/lib/han-secrets/han-secrets sync --config /etc/han/vm1.env LoadCredentialEncrypted=selectel-service-user-password:/etc/han/credentials/%i.selectel-password.cred RemainAfterExit=yes StandardOutput=null StandardError=journal SyslogIdentifier=han-secrets-%i NoNewPrivileges=yes PrivateTmp=yes PrivateDevices=yes ProtectSystem=strict ProtectHome=yes ProtectKernelTunables=yes ProtectKernelModules=yes ProtectKernelLogs=yes ProtectControlGroups=yes ProtectClock=yes RestrictRealtime=yes RestrictSUIDSGID=yes LockPersonality=yes MemoryDenyWriteExecute=yes LimitCORE=0 SystemCallArchitectures=native RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 CapabilityBoundingSet= AmbientCapabilities= [Install] WantedBy=multi-user.target