aienos.com
Source of www.aienos.com, served from my own hardware
Brought by drakestapleton
aienos.com / scripts / allen / pusher / omega-projects-pusher.service
| 1 | [Unit] |
| 2 | Description=omega-projects-pusher: file confirmed Allen items on aien-dev/omega-projects |
| 3 | Documentation=https://github.com/aien-dev/omega-projects |
| 4 | After=network-online.target |
| 5 | Wants=network-online.target |
| 6 | |
| 7 | [Service] |
| 8 | Type=oneshot |
| 9 | User=omega-pusher |
| 10 | Group=omega-pusher |
| 11 | SupplementaryGroups=allen-spool |
| 12 | UMask=0027 |
| 13 | Nice=19 |
| 14 | IOSchedulingClass=idle |
| 15 | Environment=PATH=/usr/bin:/bin |
| 16 | # Fine-grained token for aien-dev/omega-projects only, sealed with systemd-creds |
| 17 | # (host+tpm2) at /etc/credstore.encrypted/omega-projects-token by |
| 18 | # omega-projects-pusher-activate. Missing: the pusher only queues. |
| 19 | ImportCredential=omega-projects-token |
| 20 | # PID1 decrypts host+tpm2 credentials inside the unit's device cgroup; PrivateDevices |
| 21 | # still hides the node from the service itself. |
| 22 | DeviceAllow=/dev/tpmrm0 rw |
| 23 | ExecStart=/usr/bin/python3 -I /opt/omega-projects-pusher/omega_projects_pusher.py |
| 24 | TimeoutStartSec=120 |
| 25 | StateDirectory=omega-pusher |
| 26 | StateDirectoryMode=0700 |
| 27 | ReadWritePaths=/var/lib/allen-chat/spool-in /var/lib/allen-chat/spool-status |
| 28 | NoNewPrivileges=yes |
| 29 | ProtectSystem=strict |
| 30 | ProtectHome=yes |
| 31 | PrivateTmp=yes |
| 32 | PrivateUsers=yes |
| 33 | PrivateDevices=yes |
| 34 | PrivateIPC=yes |
| 35 | ProtectKernelTunables=yes |
| 36 | ProtectKernelModules=yes |
| 37 | ProtectKernelLogs=yes |
| 38 | ProtectControlGroups=yes |
| 39 | ProtectClock=yes |
| 40 | ProtectHostname=yes |
| 41 | ProtectProc=invisible |
| 42 | ProcSubset=pid |
| 43 | RestrictNamespaces=yes |
| 44 | RestrictRealtime=yes |
| 45 | RestrictSUIDSGID=yes |
| 46 | RemoveIPC=yes |
| 47 | CapabilityBoundingSet= |
| 48 | AmbientCapabilities= |
| 49 | RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX |
| 50 | LockPersonality=yes |
| 51 | MemoryDenyWriteExecute=yes |
| 52 | SystemCallArchitectures=native |
| 53 | SystemCallFilter=@system-service |
| 54 | SystemCallFilter=~@privileged @resources |
| 55 | SystemCallErrorNumber=EPERM |
| 56 | MemoryMax=256M |
| 57 | TasksMax=16 |