How OpNix manages secrets and services
mainOpNix acts as a bridge between the 1Password Service and your local system services.
The Workflow
- Authentication: OpNix uses a secure token (stored in
tokenFile) to authenticate with the 1Password Service via its API. - Deployment: OpNix retrieves the secrets and deploys them to the specified
pathwith the configuredownerandmode. - Service Integration: OpNix manages systemd (Linux) or launchd (macOS) services. When a secret is updated, OpNix detects the change and automatically restarts the services listed in the
servicesarray for that secret.
Reliability Features (V1)
- Graceful Degradation: If the token is missing, the system will still boot, preventing complete system lockouts.
- Change Detection: Secrets are only updated and services restarted if the content actually changes.
- Error Handling: Uses proper system services instead of activation scripts to ensure robust error recovery and rollback capabilities.