dynacov-safety-automation
OpenShift Resilience Testing Platform — executes chaos/resilience scenario tests against Deployments and DeploymentConfigs with live log streaming and PDF audit report generation.
About this chart
DynaCov Safety Automation — OpenShift Resilience Testing Platform
DynaCov Safety Automation executes chaos and resilience scenario tests against OpenShift Deployments and DeploymentConfigs. It comes with pre-configured test scenarios (pod kill, dependency latency, and more) and requires no cluster-wide or elevated privileges: all permissions are namespace-scoped. Every test run streams logs live, embeds a live Grafana metrics dashboard including automatic annotations, and produces a PDF audit report suitable for compliance and review purposes.
Prerequisites
- OpenShift 4.12 or later
- Helm 3.x
- Istio / OpenShift Service Mesh (OSSM) with Prometheus scraping workload metrics
- An Oracle database accessible from the cluster (Easy Connect, Local Naming / TNS, or Oracle Cloud Autonomous Database with mTLS wallet)
- A Grafana instance (Grafana 10+) reachable from the cluster (with a Public organisation and a service account token set up as described in the Grafana setup section below)
- A DynaCov license file (
sa-key.json) — required to pull the container image. A free trial is available — simply register at https://www.safetyautomation.ai/contact to receive yours.
Image pull secret (license)
The DynaCov Safety Automation container image is distributed from a private registry. Access is controlled
by a GCP Service Account key file (sa-key.json) issued by DynaCov as part of the license.
A free trial license is available — simply register at https://www.safetyautomation.ai/contact to receive yours.
Before installing the chart, create the pull secret in your target namespace:
oc create secret docker-registry gar-pull-secret \
--docker-server=europe-west6-docker.pkg.dev \
--docker-username=_json_key \
--docker-password="$(cat sa-key.json)" \
-n <your-namespace>
_json_keyis not an actual username — it is a fixed string required by Google's registry authentication protocol to signal that the password field contains a JSON service account key. Always use exactly_json_key, regardless of the service account name.
Then reference the secret in the Helm install command via --set image.pullSecrets[0].name=gar-pull-secret
as shown in the installation examples below.
Air-gapped / private mirror installations If you mirror the container image to an internal registry and manage registry authentication at the cluster level (cluster-wide pull secret or OpenShift
ImageContentSourcePolicy), setimage.repositoryto your mirror URL and omitimage.pullSecrets. The chart enforces the pull secret requirement only when the default DynaCov registry is in use — overridingimage.repositorydisables the check.
Grafana setup
Grafana integration is required. DynaCov Safety Automation will not install without all three required Grafana parameters (grafana.url, grafana.token, grafana.prometheusDatasourceUid).
It is used for:
- Posting test-run annotations to the dashboard at run start and end (visible as vertical markers)
- Embedding the live metrics dashboard in the run detail page as an iframe
- Querying the Prometheus scrape interval at run startup to compute correct warm-up waits
Step 1 — Create a Public organisation
Grafana's default "Main Organisation" uses session cookies for access control, which are blocked by browser SameSite policy when the iframe is served cross-origin from OpenShift. A Public org allows anonymous iframe access without authentication.
- Log in to Grafana as admin
- Go to Administration → Organizations → New org
- Name it e.g.
Public - Switch into the new org (user menu → Switch organization)
Note, DynaCov Safety Automation auto-discovers the numeric org ID at startup via the Grafana API — you do not need to supply it.
Step 2 — Import the DynaCov Safety Automation dashboard
The dashboard JSON is bundled with this chart at grafana/hoplon-resilience-dashboard.json.
Extract it from the chart archive or copy it from the repository.
- While in the Public org, go to Dashboards → Import
- Upload
grafana/hoplon-resilience-dashboard.json - Select your Istio Prometheus datasource when prompted
Step 3 — Create a service account token
Annotations must be posted to the Public org. A Main Org. token silently misroutes them — they appear to succeed in the logs but never appear on the dashboard.
- Still in the Public org, go to Administration → Service accounts → Add service account
- Set role to Editor (required to write annotations)
- Add a token and copy it — it is shown only once
Step 4 — Find the Prometheus datasource UID
- Go to Connections → Data sources and click your Istio Prometheus datasource
- The UID is in the browser URL e.g.
/connections/datasources/edit/<uid>
Once you have the token and datasource UID, use them in the installation commands below.
Installation
Each example below is a complete, copy-paste-ready installation command. Choose the mode that matches your Oracle setup.
Database connection mode 1 — Oracle Easy Connect (no config files):
oc create secret docker-registry gar-pull-secret \
--docker-server=europe-west6-docker.pkg.dev \
--docker-username=_json_key \
--docker-password="$(cat sa-key.json)" \
-n <your-namespace>
helm upgrade --install dynacov-safety-automation \
oci://europe-west6-docker.pkg.dev/automation-safety-485518/dynacov-safety-automation-public/dynacov-safety-automation \
--set image.pullSecrets[0].name=gar-pull-secret \
--set oracle.dsn="user/password@//host:1521/service_name" \
--set app.sessionSecret="$(openssl rand -hex 32)" \
--set app.sessionEncryptKey="$(openssl rand -hex 16)" \
--set grafana.url="https://grafana.<namespace>.apps.<cluster-domain>" \
--set grafana.token="<service-account-token>" \
--set grafana.prometheusDatasourceUid="<datasource-uid>" \
-n <your-namespace>
Database connection mode 2 — Oracle TNS:
oc create secret docker-registry gar-pull-secret \
--docker-server=europe-west6-docker.pkg.dev \
--docker-username=_json_key \
--docker-password="$(cat sa-key.json)" \
-n <your-namespace>
helm upgrade --install dynacov-safety-automation \
oci://europe-west6-docker.pkg.dev/automation-safety-485518/dynacov-safety-automation-public/dynacov-safety-automation \
--set image.pullSecrets[0].name=gar-pull-secret \
--set oracle.dsn="user/password@myalias" \
--set oracle.localNaming.enabled=true \
--set oracle.localNaming.tnsnames="..." \
--set oracle.localNaming.sqlnet="..." \
--set app.sessionSecret="$(openssl rand -hex 32)" \
--set app.sessionEncryptKey="$(openssl rand -hex 16)" \
--set grafana.url="https://grafana.<namespace>.apps.<cluster-domain>" \
--set grafana.token="<service-account-token>" \
--set grafana.prometheusDatasourceUid="<datasource-uid>" \
-n <your-namespace>
Database connection mode 3 — Oracle TNS with mTLS wallet (for example for Oracle Cloud Autonomous Database):
oc create secret docker-registry gar-pull-secret \
--docker-server=europe-west6-docker.pkg.dev \
--docker-username=_json_key \
--docker-password="$(cat sa-key.json)" \
-n <your-namespace>
helm upgrade --install dynacov-safety-automation \
oci://europe-west6-docker.pkg.dev/automation-safety-485518/dynacov-safety-automation-public/dynacov-safety-automation \
--set image.pullSecrets[0].name=gar-pull-secret \
--set oracle.dsn="user/password@service_high" \
--set oracle.localNaming.enabled=true \
--set oracle.localNaming.tnsnames="..." \
--set oracle.localNaming.sqlnet="SSL_SERVER_DN_MATCH=yes" \
--set oracle.localNaming.wallet.enabled=true \
--set oracle.localNaming.wallet.cwalletSso="<base64>" \
--set oracle.localNaming.wallet.ewalletP12="<base64>" \
--set app.sessionSecret="$(openssl rand -hex 32)" \
--set app.sessionEncryptKey="$(openssl rand -hex 16)" \
--set grafana.url="https://grafana.<namespace>.apps.<cluster-domain>" \
--set grafana.token="<service-account-token>" \
--set grafana.prometheusDatasourceUid="<datasource-uid>" \
-n <your-namespace>
Use the HTTPS external Route URL for grafana.url when DynaCov Safety Automation is deployed on OpenShift
(e.g. https://grafana-grafana.apps.<cluster-domain>). OpenShift Routes are HTTPS by default,
and browsers silently block HTTP iframes inside HTTPS pages (mixed content). Because the Grafana
dashboard is embedded as an iframe, a plain http:// URL will cause the panel to appear blank
with no error shown. The startup log will print a WARN [Grafana probe] warning if an http://
URL is detected.
Verifying the setup
Check the DynaCov Safety Automation startup log for the Grafana probe result:
oc logs deployment/dynacov-safety-automation -n <namespace> | grep "Grafana"
A successful probe logs:
Grafana reachable at <url>, token accepted (HTTP 200), org ID auto-discovered: 2.
Grafana dashboard istio-workload-overview-version-two found and accessible.
Any WARN [Grafana probe] line identifies the specific misconfiguration — fix the
reported issue before running scenarios.
Configuration
All required values must be supplied at install time. No sensitive defaults exist.
| Parameter | Description | Required |
|---|---|---|
image.repository | Container image registry path. Override only when mirroring the image to a private registry. | No |
image.tag | Image tag. Defaults to the chart release version; generally should not be overridden too. | No |
image.pullSecrets | List of pull secret names for the image registry (e.g. GAR Service Account secret). Required when using the default DynaCov registry — the chart aborts with a clear error at install time if omitted. Not required for air-gapped / mirrored installations that override image.repository. | Yes (default registry) / No (mirrored) |
oracle.dsn | Oracle connection string — see Oracle connection modes below | Yes |
oracle.localNaming.enabled | Mount tnsnames.ora / sqlnet.ora into the pod. Required for Mode 2 (Local Naming) and Mode 3 (mTLS wallet) | No (default: false) |
oracle.localNaming.tnsnames | Full content of tnsnames.ora | Required when localNaming.enabled=true |
oracle.localNaming.sqlnet | Full content of sqlnet.ora | Required when localNaming.enabled=true |
oracle.localNaming.wallet.enabled | Also mount binary wallet files for mTLS. Required for Mode 3 (Oracle Cloud / TCPS) | No (default: false) |
oracle.localNaming.wallet.cwalletSso | Base64-encoded cwallet.sso | Required when wallet.enabled=true |
oracle.localNaming.wallet.ewalletP12 | Base64-encoded ewallet.p12 | Required when wallet.enabled=true |
oracle.localNaming.wallet.ewalletPem | Content of ewallet.pem | No |
oracle.localNaming.wallet.ojdbcProperties | Content of ojdbc.properties | No |
| `app.sessionS |
Deploy dynacov-safety-automation with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has dynacov-safety-automation on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartdynacov-safety-automation is pinned at v0.1.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply