vsenatorov/auditvision
GitHub: vsenatorov/auditvision
Stars: 14 | Forks: 1
# Audit Radar
### 5. Open the UI
oc get route audit-ui -n audit-vision
### 6. Get the admin password
oc get secret audit-ui-basic-secret -n audit-vision \
-o jsonpath='{.data.AUTH_BASIC_PASS}' | base64 -d && echo
Login with `admin` and the password above.
## Install on Kubernetes / k3s
### Prerequisites
- Kubernetes 1.24+ or k3s with cluster-admin
- Helm 3.x
- Audit logging enabled on kube-apiserver
### 1. Enable audit logging
Audit Radar requires the kube-apiserver to write audit logs to a file on the node. Refer to your distribution's documentation. The audit log path must match `vector.auditLogPath` in values (default: `/var/log/k3s-audit.log`).
Example audit policy is included in `deploy-k8s/audit-policy.yaml`.
### 2. Deploy Audit Radar
helm install audit-radar ./Helm/audit-radar-k8s \
--set ui.ingress.host=audit.192.168.10.30.nip.io
### 3. Open the UI
kubectl get ingress -n audit-vision
### 4. Get the admin password
kubectl get secret audit-ui-basic-secret -n audit-vision \
-o jsonpath='{.data.AUTH_BASIC_PASS}' | base64 -d && echo
Login with `admin` and the password above.
## Default Credentials
The Helm chart auto-generates a password on install. Retrieve it with the commands in the install section above, or:
# OpenShift
oc get secret audit-ui-basic-secret -n audit-vision \
-o jsonpath='{.data.AUTH_BASIC_PASS}' | base64 -d && echo
# Kubernetes
kubectl get secret audit-ui-basic-secret -n audit-vision \
-o jsonpath='{.data.AUTH_BASIC_PASS}' | base64 -d && echo
When installed **without Helm**, default credentials are `admin` / `changeme` — change immediately.
## Role Mapping
### OpenShift
| Source | Role | Access |
|--------|------|--------|
| OCP group `audit-radar-admins` | admin | Full access including settings |
| OCP group `audit-radar-editors` | editor | Alert rules, no settings |
| Any authenticated OCP user | viewer | Read-only event stream |
| Basic auth user | admin | Full access |
oc adm groups add-users audit-radar-admins alice
oc adm groups add-users audit-radar-editors bob
### Kubernetes
## Configuration
### Key parameters — OpenShift
| Parameter | Default | Description |
|-----------|---------|-------------|
| `collector.retentionDays` | `30` | Event retention in days |
| `ui.auth.adminGroup` | `audit-radar-admins` | OCP group for admin role |
| `ollama.enabled` | `true` | Deploy AI analyzer |
| `ollama.model` | `granite3.2:2b` | Model (~1.5GB) |
| `alerter.slack.webhookUrl` | `""` | Slack incoming webhook URL |
### Key parameters — Kubernetes
| Parameter | Default | Description |
|-----------|---------|-------------|
| `ui.ingress.host` | `audit.192.168.10.30.nip.io` | Ingress hostname — **change this** |
| `vector.auditLogPath` | `/var/log/k3s-audit.log` | Path to audit log on host |
| `ollama.enabled` | `true` | Deploy AI analyzer |
### Disable AI analyzer (resource-constrained clusters)
helm install audit-radar ./Helm/audit-radar-k8s \
--set ollama.enabled=false \
--set analyzer.enabled=false
## Exclusion Filters
Drop noisy service account traffic in **Settings → Exclusion Filters**. Wildcard matching supported:
system:serviceaccount:cert-manager:*
system:serviceaccount:openshift-*
Rules reload every 30 seconds — no restart required.
## Upgrade / Uninstall
# Upgrade
helm upgrade audit-radar ./Helm/audit-radar-openshift # or audit-radar-k8s
# Uninstall — OpenShift
helm uninstall audit-radar
oc delete namespace audit-vision
oc delete clusterrole audit-ui-groups-reader audit-ui-oauth-sync audit-vision-collector
oc delete clusterrolebinding audit-ui-groups-reader audit-ui-oauth-sync audit-vision-collector
oc delete oauthclient audit-radar
# Uninstall — Kubernetes
helm uninstall audit-radar
kubectl delete namespace audit-vision
kubectl delete clusterrole audit-vision-collector
kubectl delete clusterrolebinding audit-vision-collector
## Docker Images
| Image | Link |
|-------|------|
| audit-ui | [hybrid2k3/audit-ui](https://hub.docker.com/r/hybrid2k3/audit-ui) |
| audit-collector | [hybrid2k3/audit-collector](https://hub.docker.com/r/hybrid2k3/audit-collector) |
| audit-analyzer | [hybrid2k3/audit-analyzer](https://hub.docker.com/r/hybrid2k3/audit-analyzer) |
| audit-alerter | [hybrid2k3/audit-alerter](https://hub.docker.com/r/hybrid2k3/audit-alerter) |
## License
Apache 2.0
Real-time audit log explorer for OpenShift and Kubernetes
Who did what, when — across your entire cluster. With AI risk scoring and login tracking.
🌐 audit-radar.com · Docker Hub · Apache 2.0
标签:EVTX分析