3.1 KiB
OfficeCom Sentinel Deployment
Goal
Deploy and update the endpoint client through NinjaOne while hosting release artifacts in Gitea.
Release Assets
Each Gitea release should publish:
OCSentinelClient-win-x64.zipOCSentinelClient-win-x64.zip.sha256version.json
Build these locally with:
powershell -ExecutionPolicy Bypass -File .\build\build-client-package.ps1
powershell -ExecutionPolicy Bypass -File .\build\build-release-manifest.ps1 `
-ArtifactUrl "https://gitea.officecom.cloud/officecom/oc-sentinel/releases/download/v1.2.3/OCSentinelClient-win-x64.zip"
Installed Layout
app\OCSentinelCli.exescripts\run-ocsentinel.ps1scripts\run-ocsentinel-monitor.ps1scripts\update-ocsentinel.ps1scripts\protect-ocsentinel-secret.ps1config\ocsentinel-settings.jsonconfig\ocsentinel-client.json
NinjaOne Tasks
Create a PowerShell script in NinjaOne named OCSentinel - Installieren oder aktualisieren.
Run it as SYSTEM in 64-bit PowerShell and copy the content of
scripts/bootstrap-ocsentinel-ninja.ps1 into the NinjaOne script editor.
It is idempotent: new devices install the current package, while installed devices
only update when a newer manifest version is published.
Use it for the one-time rollout and, later, as the monthly update task. For an
initial validation scan, add -RunInitialStatusScan to the script parameters.
Installed-client update only:
& "C:\Program Files\OCSentinel\scripts\update-ocsentinel.ps1" `
-ManifestUrl "https://gitea.officecom.cloud/officecom/oc-sentinel/raw/main/release/stable/version.json" `
-Force
Routine update:
& "C:\Program Files\OCSentinel\scripts\update-ocsentinel.ps1" `
-ManifestUrl "https://gitea.officecom.cloud/officecom/oc-sentinel/raw/main/release/stable/version.json"
Runtime:
& "C:\Program Files\OCSentinel\scripts\run-ocsentinel-monitor.ps1" `
-Mode status `
-OutputPath "..\reports\ocsentinel-summary.json"
Secret Bootstrap
& "C:\Program Files\OCSentinel\scripts\protect-ocsentinel-secret.ps1" `
-SecretValue "<shared-ingest-secret>"
This writes:
C:\ProgramData\OCSentinel\secrets\ocsentinel-upload-secret.dat
Current Manual Release State
As of July 16, 2026, the first manual release is already published:
- tag:
v1.2.3 - release URL:
https://gitea.officecom.cloud/officecom/oc-sentinel/releases/tag/v1.2.3 - stable manifest URL:
https://gitea.officecom.cloud/officecom/oc-sentinel/raw/main/release/stable/version.json
The manifest is intentionally version-independent for NinjaOne. Only the JSON content changes per release; the NinjaOne task URL stays the same.
This means NinjaOne rollout can start immediately without waiting for a Gitea runner.
Later Automation
When a Gitea runner is added later, the usual next step is:
- connect to the runner host through SSH or RDP, depending on the server type
- install and register the Gitea runner
- let
.gitea/workflows/client-build.ymlpublish future release artifacts automatically - update
release/stable/version.jsonautomatically as part of the release flow