diff --git a/.github/workflows/helm-ci.yml b/.github/workflows/helm-ci.yml index 227523f..66633cc 100644 --- a/.github/workflows/helm-ci.yml +++ b/.github/workflows/helm-ci.yml @@ -5,7 +5,6 @@ on: branches: [main] paths: - 'helm/**' - - '.github/workflows/release.yml' - '.github/workflows/helm-ci.yml' workflow_dispatch: @@ -20,8 +19,6 @@ jobs: - uses: azure/setup-helm@v4 with: version: v3.17.3 - - name: Validate manually gated release workflow - run: go run github.com/rhysd/actionlint/cmd/actionlint@v1.7.7 -color .github/workflows/release.yml - name: Lint and template official release chart run: | set -euo pipefail diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 6150df7..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,175 +0,0 @@ -name: Publish production release - -# Ordinary development merges never run this workflow. The first release can -# be started by an explicit push to the one-time release/v1.0.0 branch. -# Future versions use only workflow_dispatch from GitHub Actions. -on: - workflow_dispatch: - inputs: - version: - description: Stable SemVer release (e.g. 1.0.1) - required: true - type: string - push: - branches: [release/v1.0.0] - -permissions: - contents: write - packages: write - -concurrency: - group: utu-stable-release - cancel-in-progress: false - -jobs: - release: - if: github.repository == 'utu-engine/platform' - runs-on: ubuntu-latest - timeout-minutes: 35 - env: - VERSION: ${{ github.event_name == 'workflow_dispatch' && inputs.version || '1.0.0' }} - TARGET: ghcr.io/utu-engine/platform - SOURCE_REPO: ghcr.io/eerkalin/incident-investigation-platform - steps: - - uses: actions/checkout@v4 - - uses: docker/setup-buildx-action@v3 - - uses: azure/setup-helm@v4 - with: - version: v3.17.3 - - name: Validate requested release and public chart - shell: bash - run: | - set -euo pipefail - [[ "$VERSION" =~ ^[0-9]+[.][0-9]+[.][0-9]+$ ]] - test "$(sed -n 's/^version: //p' helm/utu-engine/Chart.yaml)" = "$VERSION" - test "$(sed -n 's/^appVersion: //p' helm/utu-engine/Chart.yaml | tr -d '"')" = "$VERSION" - grep -q "repository: ghcr.io/utu-engine/platform" helm/utu-engine/values.yaml - grep -q "tag: \"$VERSION\"" helm/utu-engine/values.yaml - grep -q "pullPolicy: IfNotPresent" helm/utu-engine/values.yaml - if grep -REq 'UTU_FULL_TECHNICAL_AUDIT|TOOL_TESTING_LAB_ENABLED|fullTechnicalAudit' helm/utu-engine/; then - echo "::error::Internal capability leaked into public chart" - exit 1 - fi - helm lint helm/utu-engine - helm template utu-engine helm/utu-engine -n utu-engine > "$RUNNER_TEMP/utu-chart.yaml" - grep -q "ghcr.io/utu-engine/platform:$VERSION" "$RUNNER_TEMP/utu-chart.yaml" - if helm template utu-engine helm/utu-engine --set testingLab.enabled=true > /dev/null 2>&1; then - echo "::error::Tool Lab enabled by an unsupported chart override"; exit 1 - fi - if helm template utu-engine helm/utu-engine --set internal.fullTechnicalAudit=true > /dev/null 2>&1; then - echo "::error::Full audit enabled by an unsupported chart override"; exit 1 - fi - - name: Resolve an independently built candidate - shell: bash - run: | - set -euo pipefail - source_image="$SOURCE_REPO:release-$VERSION" - # Candidate image must be anonymously readable; public workflow - # must not receive source repo read tokens or credentials. - docker manifest inspect "$source_image" >/dev/null - source_digest="$(docker buildx imagetools inspect "$source_image" | awk '$1=="Digest:" && !seen {print $2;seen=1}')" - [[ "$source_digest" =~ ^sha256:[0-9a-f]{64}$ ]] - echo "SOURCE_IMAGE=$SOURCE_REPO@$source_digest" >> "$GITHUB_ENV" - echo "SOURCE_DIGEST=$source_digest" >> "$GITHUB_ENV" - - name: Validate real image under attempted env override - shell: bash - run: | - set -euo pipefail - docker pull --platform linux/amd64 "$SOURCE_IMAGE" - docker run --rm --platform linux/amd64 \ - -e DATABASE_URL='postgresql+psycopg://release:release@127.0.0.1:5432/release' \ - -e TOOL_TESTING_LAB_ENABLED=true \ - -e UTU_FULL_TECHNICAL_AUDIT=true \ - -e UTU_EXPECTED_VERSION="$VERSION" \ - --entrypoint python "$SOURCE_IMAGE" -c ' - import os - from app.version import APP_VERSION - from app.main import app - from app.release_profile import is_production_image - from app.rca.audit_visibility import full_technical_audit_enabled, resolve_technical_audit_mode - assert APP_VERSION == os.environ["UTU_EXPECTED_VERSION"] - assert is_production_image() - assert full_technical_audit_enabled() is False - assert resolve_technical_audit_mode("audit", is_superuser=True) == "audit" - assert not any(getattr(route, "path", "").startswith("/api/v1/tool-testing-lab") for route in app.routes) - print("HARDENED PRODUCTION IMAGE PASS") - ' - - name: Package exact Helm chart - run: | - set -euo pipefail - mkdir -p dist - helm package helm/utu-engine --destination dist - test -s "dist/utu-engine-$VERSION.tgz" - - uses: docker/login-action@v3 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - name: Promote verified immutable image to versioned GHCR package - run: | - set -euo pipefail - # A previous attempt may have published the image before GHCR - # visibility was changed. Allow an exact-image retry, never overwrite. - if docker buildx imagetools inspect "$TARGET:$VERSION" >/dev/null 2>&1; then - docker pull --platform linux/amd64 "$TARGET:$VERSION" - source_revision="$(docker image inspect "$SOURCE_IMAGE" --format '{{ index .Config.Labels "org.opencontainers.image.revision" }}')" - target_revision="$(docker image inspect "$TARGET:$VERSION" --format '{{ index .Config.Labels "org.opencontainers.image.revision" }}')" - if [ -z "$source_revision" ] || [ "$source_revision" != "$target_revision" ]; then - echo "::error::Existing stable tag has different source revision. Refusing overwrite." - exit 1 - fi - else - docker buildx imagetools create --tag "$TARGET:$VERSION" "$SOURCE_IMAGE" - fi - docker buildx imagetools inspect "$TARGET:$VERSION" - - name: Publish Helm OCI chart - env: - GHCR_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - set -euo pipefail - echo "$GHCR_TOKEN" | helm registry login ghcr.io -u "$GITHUB_ACTOR" --password-stdin - if helm show chart oci://ghcr.io/utu-engine/charts/utu-engine --version "$VERSION" >/dev/null 2>&1; then - echo "Existing chart version retained on retry." - else - helm push "dist/utu-engine-$VERSION.tgz" oci://ghcr.io/utu-engine/charts - fi - - name: Update stable latest alias - run: | - set -euo pipefail - docker buildx imagetools create --tag "$TARGET:latest" "$TARGET:$VERSION" - docker buildx imagetools inspect "$TARGET:latest" - - name: Check unauthenticated download availability - shell: bash - run: | - set -euo pipefail - docker logout ghcr.io || true - helm registry logout ghcr.io || true - DOCKER_CONFIG="$(mktemp -d)" - HELM_REGISTRY_CONFIG="$(mktemp -d)/config.json" - export DOCKER_CONFIG HELM_REGISTRY_CONFIG - docker manifest inspect "$TARGET:$VERSION" >/dev/null || { - echo "::error::Docker package is not public. Set GHCR package visibility to Public, then retry release validation." - exit 1 - } - helm pull oci://ghcr.io/utu-engine/charts/utu-engine --version "$VERSION" --destination "$RUNNER_TEMP" || { - echo "::error::Helm OCI package is not public. Set GHCR chart package visibility to Public." - exit 1 - } - - name: Create public GitHub Release with Helm archive - env: - GH_TOKEN: ${{ github.token }} - run: | - set -euo pipefail - gh release create "v$VERSION" "dist/utu-engine-$VERSION.tgz" \ - --repo "$GITHUB_REPOSITORY" \ - --target "$GITHUB_SHA" \ - --title "UTU Engine v$VERSION" --notes-file RELEASE_NOTES.md - - name: Record provenance - run: | - { - echo "### UTU Engine v$VERSION published" - echo "Source candidate digest: $SOURCE_DIGEST" - echo "Stable image: $TARGET:$VERSION" - echo "Alias: $TARGET:latest" - echo "Helm: oci://ghcr.io/utu-engine/charts/utu-engine" - } >> "$GITHUB_STEP_SUMMARY" diff --git a/LICENSE b/LICENSE index 067d688..64a3ee4 100644 --- a/LICENSE +++ b/LICENSE @@ -1,36 +1,36 @@ UTU ENGINE PROPRIETARY SOFTWARE LICENSE -Copyright © 2026 Yergali Yerkalin. -All rights reserved. +Copyright © 2026. All rights reserved. -UTU Engine, including its source code, documentation, user interface, build files, -configuration, and other original materials in this repository (collectively, -the "Software"), is proprietary software owned by Yergali Yerkalin. +UTU Engine, including its application code, interface, documentation, build +files, configuration and other original materials (the "Software"), is +proprietary to the UTU Engine copyright owner. -No license or other rights to the Software are granted by possession of, access -to, or receipt of the Software except under a separate written license agreement -signed or otherwise accepted by the copyright owner. +This public distribution repository provides deployment artifacts and does not +grant access to proprietary application source code. + +No license or other rights to the Software are granted by possession of, +access to, or receipt of the Software except under a separate written license +agreement signed or otherwise accepted by the copyright owner. Without such a separate written agreement, you may not, in whole or in part: - copy or reproduce the Software; -- modify, adapt, translate, reverse engineer, or create derivative works of the - Software, except to the extent such a restriction is prohibited by applicable - law; +- modify, adapt, translate, reverse engineer, or create derivative works of + the Software, except to the extent applicable law prohibits this restriction; - distribute, publish, disclose, transmit, or make the Software or its source - code available to any third party; + code available to third parties; - sublicense, rent, lease, sell, resell, assign, or otherwise transfer the Software; -- use the Software in, or incorporate it into, a commercial product or service; +- use the Software in a commercial product or service; - remove or alter proprietary notices. -Third-party software and open-source components that are included with, used by, -or distributed alongside UTU Engine are not relicensed by this document. Those -components remain subject to their respective copyright notices and license -terms. +Third-party software and open-source components are not relicensed by this +document and retain their original terms and notices. THE SOFTWARE IS PROVIDED ONLY UNDER THE TERMS OF AN APPLICABLE WRITTEN LICENSE AGREEMENT. EXCEPT AS EXPRESSLY STATED IN SUCH AN AGREEMENT, NO WARRANTIES, SUPPORT COMMITMENTS, SERVICE LEVELS, INDEMNITIES, OR OTHER RIGHTS ARE GRANTED. -For commercial licensing inquiries, contact the copyright owner. +For licensing inquiries, contact the copyright owner through the official +UTU Engine project channels. diff --git a/README.md b/README.md index 4cc95d0..a5657c0 100644 --- a/README.md +++ b/README.md @@ -1,82 +1,67 @@ -# UTU Engine · Platform +# UTU Engine -The official production distribution of **UTU Engine**, an application-centric -incident investigation platform. This repository contains public Helm charts, -versioned releases and installation documentation; proprietary application -source code and development workflows remain private. +Official distribution repository for **UTU Engine**, an application-centric +incident investigation platform. -## Production release: v1.0.0 +This repository provides the Helm chart, installation instructions and versioned +release information. It does not host the UTU Engine application source code. -| Artifact | Location | -| --- | --- | -| Docker image | `ghcr.io/utu-engine/platform:1.0.0` | -| Latest stable image alias | `ghcr.io/utu-engine/platform:latest` | -| Helm OCI chart | `oci://ghcr.io/utu-engine/charts/utu-engine` (version `1.0.0`) | -| Chart source | `helm/utu-engine` | -| Release archives | [GitHub Releases](https://github.com/utu-engine/platform/releases) | - -### Install - -Requires Helm 3.8+, Kubernetes, working PersistentVolume provisioning, and -network access to the container registry and your observability/LLM systems. +## Release status -```bash -helm install utu-engine oci://ghcr.io/utu-engine/charts/utu-engine \ - --version 1.0.0 --namespace utu-engine --create-namespace -``` +The `1.0.0` Helm chart is available in the repository under +[`helm/utu-engine`](helm/utu-engine). A public production image and OCI Helm +release are **not yet confirmed published**. Check +[Releases](https://github.com/utu-engine/platform/releases) before using +the registry commands below. -### Download the chart +| Artifact | Planned stable reference | +| --- | --- | +| Docker image | `ghcr.io/utu-engine/platform:1.0.0` | +| Latest stable alias | `ghcr.io/utu-engine/platform:latest` | +| Helm OCI chart | `oci://ghcr.io/utu-engine/charts/utu-engine` | +| Helm chart version | `1.0.0` | -```bash -helm pull oci://ghcr.io/utu-engine/charts/utu-engine --version 1.0.0 --untar -``` +## Helm chart source -Or clone this repository and install the chart source: +The source chart can be inspected in `helm/utu-engine`. With Helm 3: ```bash -helm upgrade --install utu-engine ./helm/utu-engine \ - --namespace utu-engine --create-namespace +git clone https://github.com/utu-engine/platform.git +cd platform +helm lint helm/utu-engine +helm template utu-engine helm/utu-engine --namespace utu-engine ``` -### Pull the application image +After the official production image and OCI chart are available, the intended +installation command is: ```bash -docker pull ghcr.io/utu-engine/platform:1.0.0 -docker pull ghcr.io/utu-engine/platform:latest +helm upgrade --install utu-engine oci://ghcr.io/utu-engine/charts/utu-engine \ + --version 1.0.0 --namespace utu-engine --create-namespace ``` -The Helm chart defaults to the immutable `1.0.0` tag and `IfNotPresent`. -The `latest` alias is published for convenience, not used by default by Helm. - -### Internal capabilities - -The official production image is compiled with an immutable production -capability lock. **Tool Testing Lab** and **Full Technical Audit** cannot -be enabled through Helm, environment variables, or the application's API. -The standard RCA report and redacted Technical Audit remain available. - -These two internal settings do not appear in the public chart. Altering -the software or building a custom image is outside the official distribution. +The chart is configured for `ghcr.io/utu-engine/platform:1.0.0` with +`IfNotPresent`, not a floating `main` or `latest` image. -### Deployment and data considerations +## Security and operation -The chart runs one UTU Engine Backend and optionally creates a persistent -PostgreSQL 18 database. Bootstrap credentials and encryption keys are generated -as Kubernetes Secrets; preserve those secrets and the PostgreSQL PVC for -upgrade, restore, and recovery. Review the RBAC scope, network egress, -resource limits and HTTPS ingress configuration before external access. +The official production distribution is designed to exclude the internal Test +Tool Lab and Full Technical Audit from user-configurable options. The standard +RCA report and redacted Technical Audit are retained. -This first production chart is **not** an in-place migration for a previous -`rca-agent` Helm installation; plan migration separately. +The Helm chart uses Kubernetes Secrets for credentials and may deploy a +PostgreSQL 18 StatefulSet with persistent storage. Preserve Secrets and PVCs +across upgrades. Review RBAC, ingress TLS, egress and backups before production +installation. This chart does not automatically migrate existing Helm releases +with different names. -### Source development and release policy +## Release policy -Development in `eerkalin/rca-agent` does not publish here. A production -release requires a deliberate manual promotion of an independently tested -production-build candidate. Published SemVer tags are never overwritten. +Production versions are published as deliberately selected, verified SemVer +releases, not on every change to development. Version tags must not be silently +overwritten. -### Licensing +## License -UTU Engine is proprietary software. Refer to [LICENSE](LICENSE) and the -applicable written UTU Engine license agreement before use. Third-party -components remain under their respective licenses. +UTU Engine is proprietary. See [LICENSE](LICENSE) and the applicable software +license agreement. Third-party components retain their respective licenses. diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 046b98a..87b668b 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -1,18 +1,18 @@ -# UTU Engine v1.0.0 +# UTU Engine v1.0.0 — release preparation -First versioned production release of the UTU Engine application-centric -incident investigation platform. +The official UTU Engine 1.0.0 Helm chart is staged in this repository. -- Official multi-architecture image: `ghcr.io/utu-engine/platform:1.0.0`. -- Alias `ghcr.io/utu-engine/platform:latest` tracks the newest stable version. -- Helm OCI chart: `oci://ghcr.io/utu-engine/charts/utu-engine`, version `1.0.0`. -- Default Helm image is pinned to `1.0.0`; pull policy is `IfNotPresent`. -- Tool Testing Lab and internal Full Technical Audit are disabled inside the - production image and cannot be enabled with Helm values or environment - variables. Standard RCA and redacted Technical Audit remain available. -- Includes optional PostgreSQL 18 database, persistent volume and automated - bootstrap secret creation. +The application image and OCI chart must be independently verified as published +before this version is announced as generally available. -Check namespace RBAC, database backups, HTTPS ingress, NetworkPolicy and -external LLM/observability access before installing. The source code remains -proprietary and is not included in this repository. +Planned stable references: + +- Container image: `ghcr.io/utu-engine/platform:1.0.0` +- OCI Helm chart: `oci://ghcr.io/utu-engine/charts/utu-engine` version `1.0.0` +- Helm defaults: image tag `1.0.0`, `IfNotPresent` +- Internal Test Tool Lab and Full Technical Audit are unavailable in the + official production distribution; standard RCA and reduced Technical Audit + remain available. + +Production installations require review of Kubernetes RBAC, persistent +PostgreSQL storage, TLS, network access and credential backups.