• Home
  • About
    • Background
    • LinkedIn
    • Presenting Activities
    • Internet Profile
    • About
    • www.cloud-native.info
    • AI Disclosure
  • Observability, Fluent(d) Bit & OpAMP
    • OpAMP Product
    • OpAMP Overview
    • Log Generator
    • Fluent Bit Classic to YAML Format configurations
  • My Books
    • Logs and Telemetry using Fluent Bit
      • Fluent Bit book
      • Book Resources in GitHub
    • Logging in Action with Fluentd, Kubernetes and More
      • Logging in Action with Fluentd – Book
      • Fluentd Book Resources
      • Fluentd & Fluent Bit Additional stuff
    • API & API Platform
      • API Useful Resources
    • Oracle Integration
      • Book Website
      • Useful Reading Sources
    • Publication Contributions
  • Resources
    • GitHub
    • Oracle Integration Site
    • Oracle Resources
    • Mindmaps Index
    • Useful Tech Resources
      • Fluentd & Fluent Bit Additional stuff
      • Recommended Tech Podcasts
      • Official Sources for Product Logos
      • Java and Graal Useful Links
      • DevTips
  • Music
    • Monster On Music
    • Music Listening
    • Music Reading

Phil (aka MP3Monster)'s Blog

~ from Technology to Music

Phil (aka MP3Monster)'s Blog

Tag Archives: SBOM

CICD for our OpAMP Project

01 Tuesday Dec 2026

Posted by mp3monster in Cloud, Fluent Observability, General, OpAMP, Security, Technology

≈ Leave a comment

Tags

apiops, Bandit, CICD, CycloneDX, GitHub, OpAMP, Owasp, Playwright, pytest, SBOM, Security, semgrep, testing, Vitest, xhatops, Zap

As our OpAMP solution has grown and evolved, from showing how OpAMP works, and can help ChatOps and into AIOps to the fr richer offering it has today where we can:

  • Manage most open source Observability tools using the Supervisor or variant Observer models., along with a core set of commands and status information.
  • Simulator for clients so we can exercise the server side at volume.
  • Natural language operations using AI and MCP.
  • Server side presentation, with plugins for editing configurations driven purely by JSON configuration files.
  • Convenience tools using JSON configuration that can make it easy to spin up different test scenarios.
  • Reference solution for the ChatOps concept.

With all of this are the non functional such as authentication, API definitions for the boundaries. Plus the all important build, test, package and securing of the code.

Developing an open-source observability platform involves considerably more than writing code and getting it to compile. We need to be confident that changes don’t break existing functionality, introduce security vulnerabilities, disrupt the user interface or result in packages that can’t be deployed. Keep the documentation aligned and published.

For OpAMP Core, part of the opamp-observe project, we’ve been putting together a development toolchain that addresses these challenges while remaining open-source and independent of commercial development platforms (with the exception of GitHub as a repository, and the use cloud vendors as a test bed).

The approach combines GitHub Actions with Python tooling, automated testing, static and dynamic security analysis, containerized integration environments and controlled release processes.

This article walks through how those pieces fit together, which processes are currently supported, and where we’re looking to take the development pipeline next.

1. The development lifecycle

At a high level, OpAMP Core follows a fairly conventional Git-based development process. It admittedly has evolved, and we’ve tightened on aspects such as security testing. The interesting thing is, as we’ve evolved, and our CI/CD pipeline has been built out, looking for templates to lean into for adoption, we’ve not seen anything that has jumped out at as as tried and proven combination of tools and preconfigured actions.

Contributing content

Contributors work on branches or forks, make changes, validate them locally and submit pull requests. Once reviewed and merged, GitHub Actions takes responsibility for the configured build, deployment and documentation processes.

One important feature of the setup is the separation between application changes and documentation changes. There’s little value in deploying an OpAMP test environment simply because somebody has corrected a spelling mistake.

The main workflow therefore uses path-based exclusions for documentation-only changes, while a separate GitHub Pages workflow handles documentation publication.

Development and CI workflow

OpAMP Core development lifecycle. Grey nodes represent process stages, blue represents testing tools, red security tooling, amber infrastructure and build tools, and green publication activities. Dashed connections identify supporting tools rather than execution dependencies

Figure 1 — OpAMP Core development lifecycle. Grey nodes represent process stages, blue represents testing tools, red security tooling, amber infrastructure and build tools, and green publication activities. Dashed connections identify supporting tools rather than execution dependencies.

The diagram brings together several processes which are sometimes treated as separate concerns:

  • Local development: Git, Python and the developer CLI provide the initial validation capabilities.
  • Version management: A repository-managed pre-commit hook ensures that we don’t accidentally include credentials, and versioning is correct.
  • Continuous integration: GitHub Actions handles the configured main-branch build and optional cloud deployment.
  • Documentation: Jekyll and GitHub Pages provide a separate publication path.
  • Release management: A dedicated workflow validates packages before authorised PyPI publication.

The tool callouts on local validation identify available capabilities; they do not imply that every developer runs every check before committing. We do this more to control the cost of validating changes using AWS and Azure, but from a pragmatic perspective, if we’re developing the Config Editor which can be operated independently of everything else then you don’t need end-to-end tests all the time.

Similarly, not every available test and security scanner runs in the main GitHub Actions build. This distinction is important when evaluating how much assurance the automated pipeline actually provides. When we want to tag the code for a new release, then we run the full regression stack covering unit tests and containerized component and end to end tests.

We are starting to move towards enabling local runners to be registered and OCI runners which can operate without incurring compute costs.

2. Bringing developer tooling together

OpAMP Core contains several Python components, browser-based interfaces, supporting services, and integrations with different observability agents. Not to mention the OpAMP spec specific library in the center.

Testing each component independently is useful, but it becomes increasingly difficult to remember which commands need to be run, how their reports are generated and where the results should be stored. To address this, the repository provides a common developer command-line interface, opamp-dev-cli which with the right flags will be picked up and be accessible in the main cli (opamp-cli) tool as well.

Rather than replacing established testing and security tools, the CLI orchestrates them and gives developers a consistent way of running quality checks across the project.

For example:

# Test one component
opamp-dev-cli build test named provider
​
# Run tests across components
opamp-dev-cli build test all
​
# Run the full repository security gate
opamp-dev-cli build secure all
​
# Run repository end-to-end tests
opamp-dev-cli build test e2e
​
# Run a passive dynamic security scan
opamp-dev-cli build dast baseline

The developer CLI also supports configuration-driven test suites, dependency auditing, packaging, SBOM (Software Bill of Material) generation and release asset preparation.

Testing and security workflow

The developer CLI's testing and security capabilities. The vertically arranged stages are a conceptual grouping, not a requirement to run every check in sequence. OWASP ZAP is a separate DAST activity

Figure 2 — The developer CLI’s testing and security capabilities. The vertically arranged stages are a conceptual grouping, not a requirement to run every check in sequence. OWASP ZAP is a separate DAST activity.

Testing: different tools for different problems

We use several complementary approaches to testing.

  • pytest handles Python unit, integration and protocol-level tests. This includes the logic within the individual components and interactions between services.
  • Vitest addresses JavaScript behaviour that can be tested without launching the complete browser application.
  • Playwright provides end-to-end testing of user interfaces. This is especially valuable for services such as the configuration editor, where a successful API response doesn’t necessarily mean the browser is behaving correctly.

Playwright also produces useful diagnostic evidence, including screenshots, traces and HTML reports. These can make reproducing intermittent UI failures considerably easier.

None of these tools replaces the others. They address different layers of the application.

Static application security testing

Security testing takes a similar layered approach.

  • Ruff performs Python static analysis, including security-related checks. Its speed makes it practical to use frequently during development.
  • Semgrep provides rule-driven static analysis capable of identifying more specific code patterns. The repository maintains reviewed Semgrep rules rather than relying on a continuously changing remote ruleset.
  • Bandit provides Python-focused security analysis, offering an additional perspective on potentially unsafe coding patterns.

The intention isn’t to treat three scanners as multiple guarantees of security. There is some overlap, but the combination helps us achieve a more through level of checking and coverage.

At present, Ruff findings are blocking in the developer security gate, while Semgrep and Bandit findings are report-only during evaluation. Scanner execution failures remain blocking.

This allows the project to introduce additional analysis without immediately making an existing finding baseline prevent all development.

Dependency and secrets analysis

Two further tools address risks that aren’t necessarily visible through source-code inspection.

  • pip-audit examines Python dependencies for known vulnerabilities. The repository’s auditing process uses the locked dependency graph where available, helping ensure that the packages being assessed match those selected for the project.
  • detect-secrets looks for potentially exposed secrets in source-controlled files.

These are different problems: a perfectly written application may still depend on a vulnerable package, while an otherwise harmless configuration change could accidentally expose credentials.

Both belong in the development security process.

Dynamic application security with OWASP ZAP

Static analysis cannot identify every vulnerability. Some problems only become apparent when a running application is exercised through its HTTP interfaces. For this, OpAMP Core includes OWASP ZAP integration. The developer CLI can launch disposable application targets using Docker, then scan them over HTTP and HTTPS.

This gives us two useful levels of testing:

  • Baseline scanning: Passive inspection that avoids deliberately attacking the application.
  • Full scanning: Active security testing, which requires an explicit option acknowledging the potentially disruptive behaviour.

For example:

opamp-dev-cli build dast baseline
opamp-dev-cli build dast full --allow-active-scan

Container isolation is especially useful here. It allows potentially disruptive tests to be performed against a deliberately disposable environment rather than a shared development or production deployment. ZAP also has limitations. It won’t automatically understand the semantics of OpAMP Protobuf messages, all MCP tool permissions or every supervisor command boundary. Those areas still require purpose-built protocol and integration tests.

3. Making the results useful

Running tests is only half the process. We also need useful, repeatable evidence about what happened.

The development toolchain supports several report formats:

ToolTypical evidence
pytestJUnit XML and coverage reports
PlaywrightHTML reports, JUnit XML, traces and screenshots
RuffSARIF findings
SemgrepSARIF findings
BanditJSON findings
pip-auditDependency vulnerability JSON
detect-secretsSecret scan results
OWASP ZAPHTML, JSON, XML and Markdown reports

Standard report formats are useful because they make it easier to integrate results into CI systems, security reporting and code-review workflows.

The developer CLI also retains issue and error logs, allowing developers to inspect more than a single success or failure message.

An important improvement we’re considering is ensuring that every appropriate CI job publishes its test and security evidence consistently, including when an earlier check has failed.

4. Building and releasing components

OpAMP Core is a multi-component Python project rather than a single standalone package. The development tooling supports building Python wheels and source distributions, checking dependency closure, and creating CycloneDX Software Bills of Materials (SBOMs).

Packaging uses uv, while the release process can validate packages and prepare assets for publication. The GitHub PyPI workflow is deliberately separate from everyday development. Before publishing, it requires evidence that the main workflow completed successfully for the corresponding commit. The release process then performs its security and packaging validation.

Publishing uses PyPI Trusted Publishing with GitHub OIDC credentials, avoiding the need for a long-lived PyPI API token in the CI environment.

There’s an important distinction here: a successful main workflow isn’t necessarily equivalent to every available development test having passed. The current main workflow performs dependency installation and its configured cloud operations, while the dedicated release workflow adds further checks.

Strengthening that relationship is one of the opportunities for the next iteration of the development process.

5. Cloud deployment and regression testing

The current GitHub Actions configuration supports three deployment selections: AWS, Azure and no cloud deployment. The AWS path can build and deploy a CloudFormation-based regression environment, execute the configured regression scenarios and retain test evidence in cloud storage. The Azure path can deploy the application to Azure Web App using OIDC authentication.

The build-only path allows the workflow to complete without provisioning cloud infrastructure. This separation is valuable because different changes require different levels of assurance. A small Python change may need unit tests and static analysis, while a change to OpAMP transport behaviour could justify a complete multi-service regression environment It also helps control the cost and complexity of development.

6. The next step: an isolated private GitHub runner

While GitHub-hosted runners are suitable for much of the project’s public CI, there are reasons to introduce an additional self-hosted execution environment.

Some tests can require substantial resources, local Docker access or more elaborate integration environments. However, there’s a security consideration. A public GitHub repository accepts contributions from people we don’t necessarily know. Running arbitrary pull-request code on a persistent self-hosted machine could expose that machine, its credentials or other systems on the same network.

For OpAMP Core, we’re exploring a model that separates normal public CI from privately controlled integration builds.

Proposed private runner process

Proposed on-demand private runner architecture. This represents a future enhancement, not the current GitHub Actions implementation

Figure 3 — Proposed on-demand private runner architecture. This represents a future enhancement, not the current GitHub Actions implementation.

The approach is relatively straightforward.

Public contributions continue to use GitHub-hosted runners. Only after changes have been reviewed would a maintainer initiate an additional build through a separate private CI repository.

A Docker-hosted GitHub runner would register when started, execute the authorised workload and deregister when stopped. The private repository provides the access-control boundary, while the on-demand runner reduces the amount of time that the build environment is active.

It’s worth emphasising that Docker alone isn’t a security boundary against malicious build scripts. We would still need restricted credentials, appropriate host isolation and careful treatment of code selected for execution. The aim is to make more comprehensive testing available without giving every external contributor a path to execute code on privately operated infrastructure.

Where next?

The immediate priorities are to expand automated pull-request quality gates, retain test evidence consistently, continue evaluating additional SAST findings, and introduce the private-runner approach for more demanding integration tests.

Longer term, the aim is to ensure that a released OpAMP Core package can be traced back through the source revision, build environment, dependency set and validation results that produced it.

All of this is being developed openly as part of opamp-observe/opamp-core. With this repo are several related repos, which we’ll start driving these improvement into.

Contributions, suggestions and experiences with similar open-source development pipelines are welcome.


Further reading

  • OpAMP Core repository
  • Contributor guide
  • Build, test and release commands
  • Testing and result review
  • GitHub Actions workflows
  • GitHub Actions security guidance
  • PyTest
  • Semgrep
  • OWASP ZAP
  • CycloneDX

Share this:

  • Share on Facebook (Opens in new window) Facebook
  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Email a link to a friend (Opens in new window) Email
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Print (Opens in new window) Print
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Bluesky (Opens in new window) Bluesky
Like Loading...
    • About
      • AI Disclosure
      • Internet Profile
      • Music Buying
      • Presenting Activities
    • Books & Publications
      • Logging in Action with Fluentd, Kubernetes and More
      • Logs and Telemetry using Fluent Bit
      • Oracle Integration
      • API & API Platform
        • API Useful Resources
        • Useful Reading Sources
    • Mindmaps Index
    • Monster On Music
      • Music Listening
      • Music Reading
    • OpAMP explained: the control plane for observability agents
    • Oracle Resources
    • Useful Tech Resources
      • Fluentd & Fluent Bit Additional stuff
        • Logging Frameworks and Fluent Bit and Fluentd connectivity
        • REGEX for BIC and IBAN processing
      • Formatting etc
      • Java and Graal Useful Links
      • Official Sources for Product Logos
      • Python Setup & related tips
      • Recommended Tech Podcasts

    TOGAF 9

    Logs and Telemetry using Fluent Bit


    Logging in Action — Fluentd

    Logging in Action with Fluentd


    Oracle Ace Director Alumni

    Oracle Cloud Integration Book


    API Platform Book


    Oracle Dev Meetup London

    Blog Categories

    • App Ideas
    • Books
    • Enterprise architecture
    • General
      • ExternalWebPublications
      • LinkedIn
      • Website
    • Music
      • Music Resources
      • Music Reviews
    • Photography
    • Podcasts
    • Security
    • Technology
      • AI
      • APIs & microservices
      • chatbots
      • Cloud
      • Cloud Native
      • Dev Meetup
      • development
        • languages
      • drone
      • Fluent Observability
        • Fluentbit
        • Fluentd
        • OpAMP
      • logsimulator
      • mindmap
      • OMESA
      • Oracle
        • API Platform CS
          • tools
        • ITSO & OEAF
        • OIC – ICS
        • Oracle Cloud Native
        • OUG
      • railroad diagrams
      • TOGAF

    Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 2,629 other subscribers

    RSS

    RSS Feed RSS - Posts

    RSS Feed RSS - Comments

    December 2026
    M T W T F S S
     123456
    78910111213
    14151617181920
    21222324252627
    28293031  
    « Nov    

    Speaker Recognition

    Open Source Summit Speaker

    Twitter

    Tweets by mp3monster

    History

    Flickr Pics

    More Photos

    Social

    • View @mp3monster’s profile on Twitter
    • View philwilkins’s profile on LinkedIn
    • View mp3monster’s profile on GitHub
    • View mp3monster’s profile on Flickr
    • View mp3muncher’s profile on WordPress.org
    • View philmp3monster’s profile on Twitch
    Follow Phil (aka MP3Monster)'s Blog on WordPress.com

    Blog at WordPress.com.

    • Subscribe Subscribed
      Phil (aka MP3Monster)'s Blog
      Join 233 other subscribers

      Have a WordPress.com account? Log in now.

    • Phil (aka MP3Monster)'s Blog
      View site in Reader
      Manage subscriptionsSign upLog in
      Report this content
      Collapse this bar
    Loading Comments...

    You must be logged in to post a comment.

    Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
    To find out more, including how to control cookies, see here: Our Cookie Policy
    %d