Skip to content

About

Woodpecker CI-based DevSecOps platform with Cloud Native Buildpacks, DORA observability, and standardized pipeline contract for polyglot applications

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

330 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

uFawkesPipe

CI Pipeline License

Integration & Delivery Plane of the Fawkes IDP Family

Start here: INTENT.md. Covers standalone vs. suite mode, the contracts other repos depend on, and non-goals.

uFawkesPipe is a Woodpecker CI-based CI/CD platform with integrated SAST (SonarQube, Trivy, Gitleaks), Cloud Native Buildpacks, and DefectDojo security scan ingestion β€” the CI/CD plane of the Fawkes IDP.

πŸš€ Features

  • Polyglot Support - Build applications in Java, Python, Node.js, Go, Ruby, and more via Cloud Native Buildpacks
  • Standard Pipeline Contract - Define CI/CD behavior via .fawkespipe.yml configuration (see docs/pipeline-contract.md)
  • Cloud Native Buildpacks - Build OCI-compliant container images without Dockerfiles
  • Security-First Pipeline - Integrated Gitleaks secret scanning, Trivy vulnerability scanning (filesystem + container), and SonarQube SAST
  • DefectDojo Integration - Automated security scan result ingestion post-build
  • Woodpecker-based - Lightweight, YAML-driven CI/CD orchestration with GitHub OAuth
  • DORA Observability - Structured JSON logging, OTEL deployment event emission, Prometheus metrics
  • Standalone mode - Runs self-contained, with embedded Postgres and Valkey. Suite mode adds uFawkesObs and keeps the same embedded databases.
  • Security Plane (merged from uFawkesSec) - DefectDojo, Infisical, Trivy server, and Falco run alongside the CI/CD stack, plus a Conftest/Rego policy-check pipeline step β€” see Security Plane below

πŸ“‹ Pipeline Stages

Every pipeline in uFawkesPipe follows these standardized stages (defined in .woodpecker.yml):

# Stage Steps Parallel Branch Gate
1 validate init β†’ lint-yaml + lint-shell Yes (lint) None
2 test unit-tests + integration-tests + contract-tests Yes None
3 security secrets-scan β†’ vuln-scan-fs β†’ vuln-scan-image Sequential vuln-scan-image: main only
4 build build-image β€” main only
5 publish upload-defectdojo β€” main only
6 deploy notify-obs β€” main only

Step details:

  • init β€” Create artifact directories (security, coverage, tests)
  • lint-yaml β€” Validate compose.yaml, .woodpecker.yml, .env.example with yamllint
  • lint-shell β€” ShellCheck validation on scripts/*.sh and validate.sh
  • unit-tests β€” Fast, isolated pytest unit tests (no external deps)
  • integration-tests β€” Cross-component tests (may require Docker)
  • contract-tests β€” Pipeline contract, compose, and YAML validation
  • secrets-scan β€” Hard gate: Gitleaks secret detection with .gitleaks.toml rules
  • vuln-scan-fs β€” Trivy filesystem vulnerability scan (entire working tree)
  • vuln-scan-image β€” Trivy container image vulnerability scan (main branch only)
  • build-image β€” Container image build and push via Cloud Native Buildpacks (pack build --publish, Paketo base builder); needs the registry_username and registry_password secrets
  • upload-defectdojo β€” Collect Gitleaks + Trivy results and POST to DefectDojo API (non-blocking)
  • notify-obs β€” Emit structured deployment event to uFawkesObs OTEL collector (non-blocking)

All steps emit structured JSON logs via scripts/dora-log.sh compatible with uFawkesObs/Loki ingestion.

πŸ—οΈ Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                    uFawkesPipe Platform                      β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚                                                               β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”‚
β”‚  β”‚ Woodpecker Server  β”‚  β”‚  SonarQube   β”‚  β”‚  Arcane      β”‚  β”‚
β”‚  β”‚ + Agent            β”‚  β”‚   (SAST)     β”‚  β”‚  (optional)  β”‚  β”‚
β”‚  β”‚                    β”‚  β”‚              β”‚  β”‚              β”‚  β”‚
β”‚  β”‚  - Pipeline YAML   β”‚  β”‚  - Quality   β”‚  β”‚  - Stacks    β”‚  β”‚
β”‚  β”‚  - GitHub OAuth    β”‚  β”‚    Gates     β”‚  β”‚  - Secrets   β”‚  β”‚
β”‚  β”‚  - CLI triggers    β”‚  β”‚  - Coverage  β”‚  β”‚  - Volumes   β”‚  β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β”‚
β”‚         β”‚                          β”‚                β”‚      β”‚
β”‚         β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜      β”‚
β”‚                           β”‚                                 β”‚
β”‚                  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”                        β”‚
β”‚                  β”‚  CNB Builder    β”‚                        β”‚
β”‚                  β”‚  (Buildpacks)   β”‚                        β”‚
β”‚                  β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”˜                        β”‚
β”‚                           β”‚                                 β”‚
β”‚                           β–Ό                                 β”‚
β”‚                  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”                        β”‚
β”‚                  β”‚   Docker        β”‚                        β”‚
β”‚                  β”‚   Registry      β”‚                        β”‚
β”‚                  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜                        β”‚
β”‚                                                               β”‚
β”‚  Suite mode:                  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”         β”‚
β”‚                               β”‚   uFawkesObs      β”‚         β”‚
β”‚                               β”‚ (OTEL, Loki,      β”‚         β”‚
β”‚                               β”‚  Prometheus)      β”‚         β”‚
β”‚                               β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜         β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
  • Standalone mode (make up): Woodpecker + SonarQube, local storage. Add the optional Arcane Docker UI with make up-ui
  • Suite mode (make up-suite): start uFawkesObs first. It joins Obs's observability-lab network, so Woodpecker exports to Obs's OTEL Collector and Prometheus scrapes it. Databases stay this stack's own.

πŸ” Security Plane

The security plane (formerly the standalone uFawkesSec repo) is merged into this repo's compose.yaml / compose.suite.yaml, gated behind the security Compose profile β€” it does not start with a plain make up / docker compose up -d. Run docker compose --profile security up -d (or make up-security) to bring it up. uFawkesPipe stays a lightweight CI/CD plane by default; the full DefectDojo/ Infisical/Falco suite is for users who want it here rather than in Fawkes proper. trivy-server is the exception β€” it stays in the default profile since the pipeline itself uses it for image/fs scanning.

Service Image Role
defectdojo defectdojo/defectdojo-django:2.38.0 Security findings aggregation (Django)
defectdojo-nginx defectdojo/defectdojo-nginx:2.38.0 Reverse proxy for DefectDojo
defectdojo-celery-beat defectdojo/defectdojo-django:2.38.0 Periodic task scheduler
defectdojo-celery-worker defectdojo/defectdojo-django:2.38.0 Async task worker
infisical infisical/infisical:v0.93.1-postgres Zero-trust secrets store
trivy-server aquasec/trivy:0.74.0 Shared Trivy CVE cache server
falco falcosecurity/falco-no-driver:0.39.2 Runtime container security monitoring

Both modes use this stack's own postgres/valkey; suite mode (compose.suite.yaml) only adds network membership and OTEL settings. Rego policies live in policy/ and run as the policy-check pipeline step (see docs/policy-guide.md).

πŸ› οΈ Quick Start

Prerequisites

  • Docker Engine 20.10+
  • Docker Compose v2.0+ (docker compose plugin, not standalone docker-compose)
  • 4GB+ RAM available for containers
  • GitHub OAuth App (Client ID + Secret) for Woodpecker authentication
  • DockerHub account (for image registry)

Setup

  1. Clone the repository

    git clone https://github.com/paruff/uFawkesPipe.git
    cd uFawkesPipe
  2. Configure environment

    cp .env.example .env
    # Edit .env with your credentials and OAuth keys
    nano .env
  3. Start the platform

    # Standalone mode (Woodpecker + SonarQube)
    make up
    
    # Optional: also start the Arcane Docker UI (profile `ui`)
    make up-ui
    
    # Suite mode is unsupported until #97 (it still needs the deprecated uFawkesRes)
    # make up-suite
  4. Access the platform

    Service Port URL Auth
    Woodpecker CI 8000 http://localhost:8000 GitHub OAuth
    Arcane (opt.) 3552 http://localhost:3552 make up-ui; default login in Arcane docs
    SonarQube 9000 http://localhost:9000 admin / (from .env)

First Pipeline

  1. Add a .fawkespipe.yml to your application repository (see docs/pipeline-contract.md)
  2. Push to GitHub
  3. In Woodpecker UI: Repositories β†’ Activate your repository
  4. Push code β†’ Pipeline auto-triggers via GitHub webhook

Full details: QUICKSTART.md

πŸ”— The Released Reusable Workflows (the suite contract)

uFawkesPipe owns every reusable workflow the suite shares and publishes them under a release tag (cut by release-please; tags are currently pre-releases, v1.x.y-beta.N). A suite repo calls them at the commit SHA of a release tag, with the tag as a comment, and keeps no copy of them:

jobs:
  preflight:
    uses: paruff/uFawkesPipe/.github/workflows/reusable-preflight.yml@<40-hex SHA of the tag> # v3.1.0
Reusable Does Inputs Outputs Secrets
reusable-preflight.yml The repo's pre-commit hooks at the pre-commit and pre-push stages, PR size, commit format pr-size-limit, pr-size-mode, pre-commit-scope, commit-format, emergency-bypass, timeout-minutes, skip-hooks, runner, ci-image, check-release-match result β€”
reusable-lint.yml Language linters languages, auto-detect, formatter, mypy-paths, pylint-paths, python-requirements, fail-on-warning, emergency-bypass, timeout-minutes result, python-detected, shell-detected, yaml-detected, typescript-detected, go-detected β€”
reusable-security-scanning.yml Secret scanning, Trivy, dependency scans, SARIF upload scan-type, scan-path, severity-threshold, fail-on-critical, upload-sarif, gitleaks-config, image-ref, ignore-unfixed, sarif-category, scanners, skip-dirs β€” β€”
reusable-terraform.yml Terraform fmt -check, per-module init -backend=false and validate, tflint --recursive root-directory, terraform-version, tflint-version, changed-only, extra-paths, timeout-minutes β€” β€”
reusable-manifests.yml kustomize build, helm lint and template, Argo CD Application sources, kubeconform schema validation, Conftest policies kustomize-dirs, chart-dirs, manifest-paths, application-paths, policy-paths, exclude-paths, policy-directory, kubernetes-version, schema-locations, ignore-missing-schemas, *-version, timeout-minutes β€” β€”
reusable-image-build.yml Build and push one image with Buildx image-name, registry, context, file, platforms, tags, timeout-minutes image, image-ref, digest, tag registry-username, registry-password
reusable-sbom.yml Syft SBOM of an image or a source directory image-ref, scan-path, format, upload-artifact, artifact-name artifact-name registry-username, registry-password
reusable-image-sign.yml Keyless cosign sign, SBOM attestation and verify image-ref, attest-sbom, sbom-artifact, sbom-type, certificate-identity-regexp, certificate-oidc-issuer, source-repository, cosign-version image-ref registry-username, registry-password
reusable-python-service-golden-path.yml Lint, test, build, scan, SBOM, sign, GitOps image bump image-name, working-directory, python-version, requirements, ruff-version, coverage-source, test-path, coverage-fail-under, platforms, severity-threshold, manifest-file, auto-merge, certificate-identity-regexp, certificate-oidc-issuer, cosign-version image-ref β€”
reusable-dependency-review.yml Dependency review on pull requests fail-on-severity, comment-summary-in-pr, base-ref, head-ref, deny-licenses β€” β€”
reusable-build.yml Build and validate (observability stack config, image pins, coverage gate) validate-*, *-image, fail-on-latest, allow-latest, enable-coverage-gate, coverage-threshold, python-version, coverage-paths β€” β€”
reusable-tests.yml Test tiers (unit, integration, health checks) test-tiers, python-version, run-unit, unit-test-command, integration-test-command, compose-profile, compose-file, health-endpoints, coverage-threshold, coverage-paths, setup-command β€” DATABASE_URL
reusable-coverage-comment.yml Comment total line coverage on the PR artifact-name, coverage-file β€” β€”
reusable-rollback.yml Roll a deploy back deploy-path, restart-command β€” DEPLOY_HOST, DEPLOY_USER, DEPLOY_KEY, DEPLOY_HOST_KEY
reusable-main-ci-guard.yml Fails a PR while main's last CI run is red workflow-id, workflow-name β€” β€”

Read the workflow_call block of a reusable for the exact types and defaults; they are the contract. Every reusable's gate steps fail when their check fails (ci-pipeline spec R5).

Check names. Every job in a reusable-*.yml has a plain-text name in Title Case: no emoji, & is allowed, and a, an, and, of, or, the, to stay lower case after the first word. GitHub shows a called job as <your job name> / <reusable job name>, and that whole string is what a required check matches. Upgrading renames πŸ›‘οΈ Main CI Health to Main CI Health and πŸ”„ Rollback to Rollback, and changes the case of Build and Push, Sign, Attest and Verify, Lint and Test, GitOps Bump, Required Files, Markdown Lint and Check Links. If your branch rules require one of these, update the rule in the same change as the SHA bump, or the PR waits for a check that never reports.

Adopting the lint and preflight gates. The defaults are formatter: black, pr-size-mode: warn and pre-commit-scope: all. For a ruff format repo that blocks large PRs and checks only changed files:

on:
  pull_request:
    # labeled/unlabeled, so applying large-pr-approved re-runs the size gate
    types: [opened, synchronize, reopened, labeled, unlabeled]
jobs:
  preflight:
    uses: paruff/uFawkesPipe/.github/workflows/reusable-preflight.yml@<SHA> # <tag>
    with:
      pr-size-mode: block
      pre-commit-scope: changed
  lint:
    uses: paruff/uFawkesPipe/.github/workflows/reusable-lint.yml@<SHA> # <tag>
    with:
      formatter: ruff
      python-requirements: requirements-dev.txt
      mypy-paths: src
      pylint-paths: src

pre-commit-scope: changed does not re-check untouched files when you change a hook or its configuration; run with all on a schedule if that matters. In block mode the emergency-bypass label skips the size gate only if you also pass emergency-bypass: true.

reusable-lint.yml lints a language only when a file of that language changed. Earlier releases skipped every linter (the shallow checkout had no base commit), so expect findings on first upgrade.

For a coverage comment, run reusable-tests.yml with coverage-paths set (and coverage-threshold not 0, or no coverage.xml is written), then:

  coverage:
    needs: [tests]
    if: ${{ !cancelled() }}  # comment even when the coverage threshold failed
    permissions:
      pull-requests: write
    uses: paruff/uFawkesPipe/.github/workflows/reusable-coverage-comment.yml@<SHA> # <tag>

reusable-security-scanning.yml: despite its name, fail-on-critical (default true) fails a filesystem scan on any finding at or above severity-threshold (default MEDIUM). To fail on critical findings only, set severity-threshold: CRITICAL.

scan-type takes a comma-separated list (secrets,vulnerabilities); an unknown name fails the job. scanners and skip-dirs (comma-separated, no spaces) apply to the Trivy scan, which runs under vulnerabilities. For example, to add misconfiguration scanning and leave vendored directories out:

    with:
      scan-type: secrets,vulnerabilities
      scanners: vuln,misconfig
      skip-dirs: platform/apps/*/upstream

reusable-terraform.yml always reports its check. With changed-only (default true) the tools run only when a .tf, .tfvars, .tf.json, .tftest.hcl, .tfmock.hcl, .terraform.lock.hcl or .tflint.hcl file changed; call it without a paths: filter, so a required check is never left waiting. Name other files that matter in extra-paths: anything read with file() or templatefile(), and your own workflow file, or a tool-version bump skips the tools. To check every push as well as changed pull requests:

    with:
      changed-only: ${{ github.event_name == 'pull_request' }}
      extra-paths: infra/** .github/workflows/terraform-checks.yml

Unformatted files fail the job. In recursive mode TFLint reads the .tflint.hcl of each module directory, not only the one at the root.

reusable-manifests.yml renders what you list, then checks the result. Each list is space or newline separated and may use globs (no **; paths with spaces are not supported):

    with:
      kustomize-dirs: overlays/*
      chart-dirs: charts/api
      manifest-paths: k8s
      application-paths: apps
      policy-directory: policy/kubernetes
      ignore-missing-schemas: true

The job fails if there is nothing to check, or a listed source yields no manifest (no file, for policy-paths). manifest-paths takes every .yaml, .yml and .json file under a path, so exclude kustomization.yaml and Helm values files from it. kubeconform runs with -strict. Charts are rendered with their default values.

policy-paths takes files or directories that Conftest checks as they are, with no schema validation: every .yaml, .yml, .json, Dockerfile* and *.Dockerfile file. It needs policy-directory. A YAML file that does not parse, such as a Helm template, fails, so exclude it. A Dockerfile reaches a policy as a list of instructions (input[i].Cmd, input[i].Value).

exclude-paths leaves paths out of every list, including directories a kustomize-dirs or chart-dirs glob matches (for example one that renders nothing on purpose). A pattern is matched against the path from the repository root and also excludes everything under it. * also matches /, and */vendor does not match a top-level vendor, so list both for any depth:

    with:
      policy-paths: platform
      policy-directory: policy/kubernetes
      exclude-paths: |
        platform/vendor */vendor
        platform/upstream */upstream
        */node_modules

An excluded Application file is not rendered; use directory.exclude in the Application to change what its own source renders. A manifest-paths, application-paths or policy-paths entry with everything excluded fails, and so does a kustomize-dirs or chart-dirs list with no directory left.

Custom resources have no built-in schema. Give their schemas in schema-locations, one kubeconform location template per line, as a URL or a path in your repository:

    with:
      manifest-paths: k8s
      schema-locations: |
        schemas/{{ .ResourceKind }}_{{ .ResourceAPIVersion }}.json
        https://raw.githubusercontent.com/datreeio/CRDs-catalog/<commit>/{{ .Group }}/{{ .ResourceKind }}_{{ .ResourceAPIVersion }}.json

The built-in schemas are searched first, then yours in order. The files are JSON Schema, not CRD YAML (kubeconform's openapi2jsonschema.py converts one), and -strict does not add additionalProperties: false to them, so unknown fields pass unless the schema forbids them. Keep local schemas out of manifest-paths. A resource with no schema in any location fails the job; ignore-missing-schemas: true skips it instead, and then a mistyped path or URL skips silently too.

With policy-directory set, Conftest tests the rendered manifests and the policy-paths files against every namespace in it, and the job fails if no .rego file there (_test.rego aside) has a deny, violation or warn rule. Without it, no policy check runs.

application-paths takes files or directories and renders every source or sources entry of each Argo CD Application found there; other documents, including ApplicationSets, are ignored. A YAML or JSON file there that mentions Application must parse. Rendered:

  • Helm charts from public HTTP and OCI repositories, with releaseName, values, valuesObject and skipCrds. The namespace is destination.namespace. An oci:// repoURL that ends in the chart name is taken as the whole chart reference.
  • Paths in the calling repository: a Helm chart, a kustomization or a plain directory (recurse, include, exclude). They are read from the checkout, not from targetRevision.

The job fails on an Application it cannot render this way: a path in another repository, a private chart repository, a helm or directory block that does not fit the files at the path, an .argocd-source*.yaml override, or any other source setting (valueFiles, parameters, kustomize, plugin, jsonnet, {a,b} patterns). A path given by directory cannot exclude one Application; list files to do that. Helm gets no cluster API list, so templates gated on .Capabilities.APIVersions may render less than in the cluster. Applications that deploy other Applications render custom resources, so give their schema in schema-locations or set ignore-missing-schemas: true.

Images. The golden path composes the other three and the security scan. Test runs on every call; the rest only on a push to the default branch:

jobs:
  golden-path:
    permissions:
      contents: write
      packages: write
      id-token: write
      security-events: write
      pull-requests: write
    uses: paruff/uFawkesPipe/.github/workflows/reusable-python-service-golden-path.yml@<SHA> # <tag>
    with:
      image-name: org/nps
      working-directory: services/nps
      manifest-file: services/nps/k8s/deployment.yaml

A keyless signature names the workflow that signed, so images signed here carry uFawkesPipe's reusable-image-sign.yml as identity, whichever repository called it. Check the repository too:

cosign verify ghcr.io/org/nps@<digest> \
  --certificate-identity-regexp '^https://github\.com/paruff/uFawkesPipe/\.github/workflows/reusable-image-sign\.yml@' \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com \
  --certificate-github-workflow-repository org/repo

Moving from Fawkes' workflows:

Fawkes Here
image-name, image-tag, registry image-ref: <registry>/<name>:<tag> (or @<digest>)
sign-sbom attest-sbom
sbom-format format
SBOM of the source (dir:.) leave image-ref empty
sbom-path output sbom.json in the artifact named by the artifact-name output
service-name image-name, working-directory: services/<name>, manifest-file
:latest also pushed not pushed; add type=raw,value=latest to the build's tags if you must
GitOps PR merged at once auto-merge: true (golden path)
Manifest found under services/<name>/k8s set manifest-file; without it the bump is skipped and the run is still green
image-name was nps image-name: org/nps (the full path under ghcr.io)
smart-alerting built linux/amd64 only platforms: linux/amd64
SBOM artifact sbom-<name>-<tag> sbom, or sbom-<org>-<name> from the golden path
SARIF category trivy-image-<name> trivy-image-<org>/<name>; alerts under the old category are not carried over
SBOM package count in the run summary not reported
latest ruff installed a pinned ruff, unless your requirements install one

Limits. The golden path scans without a registry login, so a private package fails at the scan, after the push. A multi-platform image is scanned and catalogued for the runner's platform only. For ghcr.io, do not pass registry-username as a secret: GitHub masks it and drops job outputs that contain it, including image-ref.

Images are signed with cosign v3, which stores signatures as OCI referrers; check that your admission controller reads them, or set cosign-version. image-ref must start with the registry host. The SBOM of a multi-platform image covers the runner's platform only.

Hook stages in the CI image. Pass ci-image: ghcr.io/paruff/ufawkes-ci@sha256:<digest> to reusable-preflight.yml and its hook stages run in that container, with the same toolchain as a laptop (spec R4). The ref must be this repo's image by digest; anything else fails the job. The image is signed (cosign, keyless): cosign verify ghcr.io/paruff/ufawkes-ci@<digest> --certificate-identity-regexp '^https://github.com/paruff/uFawkesPipe/' --certificate-oidc-issuer https://token.actions.githubusercontent.com.

Self-hosted runner. runner is honoured only when the caller was triggered by workflow_dispatch; every other event runs on ubuntu-latest, whatever is passed.

Moving the suite to a new release. scripts/suite-bump.sh <tag> [--dry-run] [repo...] rewrites every Pipe call in each suite repo to the tag's SHA and opens one PR per repo; --dry-run shows the diff and pushes nothing.

πŸ“– Pipeline Contract Reference

The .fawkespipe.yml file is the standard pipeline contract that defines how your application is built, tested, scanned, and deployed. It is placed at the root of your application repository.

Key Sections

  • app - Application metadata (name, type, language, version)
  • build - Build configuration: cnb (Cloud Native Buildpacks), docker, or custom
  • stages - Enable/disable and configure pipeline stages (lint, test, sast, dependency_scan, build, image_scan, push)
  • notifications - Slack and email notification configuration
  • kubernetes - Kubernetes deployment configuration (promotion path)
  • advanced - Timeout, retry, parallel execution, artifact retention

Language-Specific Examples

Full reference: docs/pipeline-contract.md

πŸ”Œ Webhook API

uFawkesPipe exposes Woodpecker CI webhooks for external plane integration.

Trigger Pipeline via Webhook

Woodpecker CI automatically receives push webhooks from GitHub when a repository is activated. The webhook URL is auto-configured by Woodpecker during repository activation.

GitHub Webhook Integration:

Configured automatically when you activate a repository in Woodpecker. The webhook points to:

  • Payload URL: http://<woodpecker-host>:8000/api/hooks/<repository-id>
  • Content type: application/json
  • Events: Push, Pull Request

CLI Commands

Woodpecker CLI triggers from the command line:

# List repositories and pipelines
woodpecker-cli repo ls
woodpecker-cli repo info <org/repo>
woodpecker-cli pipeline ls --repo <org/repo>

# Trigger a specific pipeline
woodpecker-cli pipeline start <org/repo> <pipeline-number>

See Woodpecker CLI documentation for full usage.

☸️ Kubernetes Promotion Path

uFawkesPipe is designed for single-node development with Docker Compose. Kubernetes deployment support is planned but not yet implemented for the Woodpecker stack.

See the kubernetes section in the pipeline contract for the planned configuration schema.

πŸ”’ Security Features

Secret Detection

  • Gitleaks β€” Single secret-scanning tool (hard gate): scans all files for secrets, API keys, and credentials on every commit/push
  • Config β€” .gitleaks.toml allowlist for test fixtures / placeholders; runs in pre-commit, Woodpecker CI, and GitHub Actions

Static Application Security Testing (SAST)

  • SonarQube β€” Code quality and security vulnerability analysis
  • Trivy β€” Filesystem and code vulnerability scanning

Dependency Scanning

  • Trivy β€” Comprehensive vulnerability database scanning (filesystem and container image)
  • OWASP Dependency-Check β€” Known vulnerable dependencies (configured in .fawkespipe.yml)

Container Security

  • Trivy β€” Container image vulnerability scanning (main branch only)
  • Cloud Native Buildpacks β€” Build OCI images without Dockerfiles (reduces attack surface)
  • Image pinning β€” All service images pinned to specific versions (no :latest)

DefectDojo Integration

  • Automated upload of Gitleaks and Trivy scan results to DefectDojo API
  • Non-blocking β€” scan ingestion failure does not fail the pipeline

πŸ§ͺ Test Coverage

The tests/unit/ suite validates the .woodpecker.yml pipeline definition statically β€” it does not execute the pipeline against a live Woodpecker instance. End-to-end pipeline execution is verified manually via make up + Woodpecker UI.

What pytest tests/unit/ Verifies

Test Module Coverage
test_woodpecker_yml.py Pipeline structure: Valid YAML, steps list exists, when section present. Step ordering: init first, lint before security, test before security. Step configuration (per step): correct image & version pinning (e.g., alpine:3.20, zricethezav/gitleaks:v8.18.2, curlimages/curl:8.6.0), required commands/flags (--format json, --no-progress, --exit-code=1 for secrets), output paths (artifacts/security/*.json), secret wiring (from_secret), branch conditions (when: branch: main), DORA logging (source dora-log.sh, dora_start, dora_emit), non-blocking behavior (dora_warn on failure). Artifact directories: init creates artifacts/security, artifacts/coverage, artifacts/tests via mkdir -p.
test_docker_compose_validation.py Compose structure: Valid YAML, services section, all services have image, no :latest tags, all services have labels, volume declarations exist, named volumes (no host paths), no secrets in compose. Healthchecks: Services declare healthcheck (except dependency-check, pack-cli).
test_compose_network.py Standalone mode: compose.yaml declares NO fawkes-net, no services attach to it, woodpecker-agent has no WOODPECKER_BACKEND_DOCKER_NETWORK. Suite mode: compose.suite.yaml declares fawkes-net as external: true with name: fawkes-net, all 4 services attach, agent has WOODPECKER_BACKEND_DOCKER_NETWORK=fawkes-net. Makefile: network target creates fawkes-net idempotently (double-pipe true); up has NO network dep; up-suite HAS network dep.
test_artifact_dirs.py Init step: First step is init with alpine:3.20; commands include mkdir -p artifacts/security, artifacts/coverage, artifacts/tests using mkdir -p.

What Unit Tests Do NOT Cover

  • ❌ Live pipeline execution against Woodpecker server
  • ❌ GitHub webhook delivery / repository activation flow
  • ❌ Docker image build / CNB buildpack execution
  • ❌ SonarQube quality gate evaluation
  • ❌ DefectDojo API ingestion
  • ❌ OTEL collector event emission / Loki ingestion
  • ❌ Cross-service integration (Woodpecker ↔ SonarQube)
  • ❌ Performance / load characteristics

Running Tests

# All unit tests (fast, no external deps)
python3 -m pytest tests/unit/ -v

# With markers (unit, integration, smoke, acceptance)
python3 -m pytest tests/ -m unit
python3 -m pytest tests/ -m integration
python3 -m pytest tests/ -m smoke
python3 -m pytest tests/ -m acceptance

πŸ”§ Configuration

Pipeline Configuration

The CI pipeline is defined in .woodpecker.yml. Customize it to:

  • Add or remove pipeline steps
  • Configure environment variables for different stages
  • Define secrets for registry authentication and API tokens

Pipeline Contract Configuration

Application teams configure their pipeline behavior via .fawkespipe.yml at the root of their repository. See docs/pipeline-contract.md for the full reference.

Service Configuration

Edit compose.yaml to:

  • Change exposed ports
  • Add more services
  • Configure resource limits
  • Add additional networks

Volume Management

Persistent data is stored in Docker volumes:

  • woodpecker_data β€” Woodpecker CI database and config
  • arcane_data β€” Arcane data (optional ui profile)
  • sonarqube_data β€” SonarQube analysis data
  • pack_cache β€” CNB build cache

Backup volumes:

docker run --rm -v ufp_woodpecker_data:/data -v $(pwd):/backup alpine \
  tar czf /backup/woodpecker-backup.tar.gz -C /data .

πŸ› Troubleshooting

Woodpecker won't start

# Check logs
make logs

# Check Woodpecker status
make status

# Verify GitHub OAuth config in .env
grep WOODPECKER_GITHUB .env

# Reset Woodpecker data
make down
docker volume rm ufp_woodpecker_data
make up

Port 8000 (or 9000, 9443) already in use

lsof -i :8000
lsof -i :9000
lsof -i :9443

Edit compose.yaml to change the host port mapping if needed.

SonarQube won't start

# Check logs
make logs sonarqube

# Increase vm.max_map_count (required for Elasticsearch)
sudo sysctl -w vm.max_map_count=262144

# Make permanent
echo "vm.max_map_count=262144" | sudo tee -a /etc/sysctl.conf

GitHub webhook fails

  • Verify WOODPECKER_HOST in .env matches the webhook callback URL
  • Check Woodpecker UI β†’ Repositories β†’ your repo β†’ Settings for webhook status
  • Ensure your Woodpecker instance is reachable from GitHub

OTEL collector unreachable (suite mode)

# Verify OTEL endpoint is set
grep OTEL_ENDPOINT .env

# Check connectivity from Woodpecker agent container
docker compose -f compose.yaml exec woodpecker-agent wget -qO- http://otel-collector:4318

Pack build fails

# Check Docker access
docker ps

# Verify builder image
docker pull paketobuildpacks/builder:base

# Check pack logs in Woodpecker CI build output

Trivy scan is slow

  • First run downloads CVE database (1-5 minutes)
  • Subsequent runs use cached data (faster)
  • Trivy image scan runs only on main branch pushes

πŸ“š Additional Resources

🀝 Contributing

Contributions are welcome! Please read our contributing guidelines and submit pull requests.

Research basis

Full findings and sources: research foundation, reviewed quarterly.

Design and brand

This repo follows the shared Fawkes and uFawkes design reference: DESIGN.md, with tokens at https://ufawkes.dev/design/tokens.json. It is owned by uFawkes.dev.

πŸ“„ License

Apache License 2.0 β€” see LICENSE for details.

πŸ™‹ Support


Built for platform engineers and developers

uFawkes Stack Ecosystem

uFawkesPipe is part of the uFawkes platform engineering ecosystem:

Stack Description Link
uFawkesRes Deprecated β€” was the resource plane (PostgreSQL, Valkey, Traefik, Authelia) GitHub
uFawkesPipe CI/CD β€” Woodpecker, Buildpacks, DevSecOps GitHub
uFawkesObs Observability β€” Prometheus, Grafana, Loki, OTEL GitHub
uFawkesDORA DORA metrics β€” merged into uFawkesObs merged
uFawkesSec Security β€” merged into uFawkesPipe (DefectDojo, Infisical, Trivy, Falco) merged
uFawkesDevX Developer experience β€” golden paths, IDP templates GitHub
uFawkesAI AI agent templates β€” golden path scaffolding GitHub

Product Suite Roadmap: fawkes/ROADMAP.md

About

Woodpecker CI-based DevSecOps platform with Cloud Native Buildpacks, DORA observability, and standardized pipeline contract for polyglot applications

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages