45 lines
1.8 KiB
Desktop File
45 lines
1.8 KiB
Desktop File
[Unit]
|
|
Description=AIOS trusted candidate builder
|
|
Requires=aios-trusted-candidate-builder.socket
|
|
After=aios-trusted-candidate-builder.socket
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=root
|
|
Group=root
|
|
UMask=0077
|
|
LoadCredentialEncrypted=signing_private_key:/etc/credstore.encrypted/aios-trusted-candidate-builder/signing_private_key
|
|
LoadCredentialEncrypted=builder_hmac:/etc/credstore.encrypted/aios-trusted-candidate-builder/builder_hmac
|
|
Environment=AIOS_TRUSTED_BUILDER_POLICY=/opt/aios/trusted-candidate-builder/current/config/gitops/trusted-candidate-builder-policy.json
|
|
Environment=AIOS_TRUSTED_BUILDER_GIT_DIR=/data/aios-gitops/repo.git
|
|
Environment=AIOS_TRUSTED_BUILDER_EVIDENCE_ROOT=/var/lib/aios-trusted-candidate-builder/evidence
|
|
Environment=AIOS_TRUSTED_BUILDER_NONCE_LEDGER=/var/lib/aios-trusted-candidate-builder/nonce-ledger.json
|
|
Environment=AIOS_TRUSTED_BUILDER_KEY_ID=builder-attestation-ed25519-g1
|
|
Environment=AIOS_TRUSTED_BUILDER_KEY_GENERATION=1
|
|
Environment=PYTHONDONTWRITEBYTECODE=1
|
|
ExecStart=/usr/bin/python3 -B /opt/aios/trusted-candidate-builder/current/app/aios_trusted_candidate_builder.py --socket-fd 3 --policy ${AIOS_TRUSTED_BUILDER_POLICY}
|
|
Restart=on-failure
|
|
RestartSec=2
|
|
StateDirectory=aios-trusted-candidate-builder
|
|
StateDirectoryMode=0700
|
|
NoNewPrivileges=true
|
|
PrivateTmp=true
|
|
PrivateNetwork=true
|
|
ProtectSystem=strict
|
|
ProtectHome=true
|
|
ProtectControlGroups=true
|
|
ProtectKernelTunables=true
|
|
ProtectKernelModules=true
|
|
ProtectKernelLogs=true
|
|
RestrictAddressFamilies=AF_UNIX
|
|
LockPersonality=true
|
|
MemoryDenyWriteExecute=true
|
|
RestrictSUIDSGID=true
|
|
SystemCallArchitectures=native
|
|
CapabilityBoundingSet=
|
|
ReadOnlyPaths=/opt/aios/trusted-candidate-builder /data/aios-gitops/repo.git /var/lib/aios-trusted-candidate-builder/evidence
|
|
ReadWritePaths=/var/lib/aios-trusted-candidate-builder
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|