Skip to content
ImagineWorld

Open Source Software Can Benefit You

node_idnode-book_edge-computing-patterns-for-solution-architects_chapter-10-open-source-software-can-benefit-you
node_typechapter-node
schema_profileworld.chapter_node.v1
statusactive
entropyhigh
manifoldworld
domainimagineworld.net
authorityinforms
layercorpus
chapter_num10
chapter_titleOpen Source Software Can Benefit You
governed_byCORPUS
constitutional_citationCONSTITUTION
local graph

Chapter 10 — Open Source Software Can Benefit You

Section titled “Chapter 10 — Open Source Software Can Benefit You”

Modern enterprise applications are typically 76% based on open source software (https://www.synopsys.com/software-integrity/resources/analyst-reports/open-source-security-risk-analysis.html). This chapter discusses strategies to ensure that these dependencies don’t become your Achilles heel. Several recent well-publicized events have shown how companies that do not actively and continuously embrace open source principles can cause issues for those who depend on the software they maintain. In this chapter, we will discuss how mature open source software projects with open governance can attract more resources to your product development efforts and act as a force multiplier.

In this chapter, we will cover the following main topics:

  • Open source and edge computing – the benefits and trade-offs
  • SBOMs are your friend – securing the software supply chain with a Software Bill of Materials
  • What makes you so special? Contribute without giving up intellectual property
  • Let the cat out of the bag – successfully open source your code and documentation

By the end of this chapter, you will have learned how you can consume open source software while avoiding potential pitfalls. You will also read how enterprises have successfully contributed software to open source projects without giving up their intellectual property rights.

In this section, we’ll go over the benefits and trade-offs for companies relying on open source software (OSS) projects to supplement, support, and standardize their software product development process. You’ll learn about how to build support in your company to use and contribute to open source foundations, and you’ll become an advocate for this decades-old approach to collaborative endeavor.

Edge computing, as it is now implemented, first began in earnest in late 2015 as an outgrowth of cloud computing (see https://dzone.com/articles/a-brief-history-of-edge) and so is much younger than open source software development. However, it began to hit critical mass in late 2018, just as the Linux Foundation began organizing its hundreds of open source projects into themed umbrella groups around natural affinities (meaning, categories naturally organized around a shared industry, technology, or market). Thus, LF Edge began in January 2019 with two mature projects and several new code contributions, and the Eclipse Foundation followed suit with its Edge Native Working Group. This meant that by the time that edge computing began to enter the public consciousness, a vibrant group of open source communities already existed as a nucleus to form standards around and to house blueprints for end-to-end solutions.

Edge computing, therefore, became the first modern open source native field in computing. The first software solutions were all developed as open source projects, and then commercially supported solutions downstream from those were created. Thus, the roots of edge computing are firmly grounded in OSS, and any changes or innovations in OSS will have a correspondingly large effect on edge computing as a whole.

Let’s take a look at how this heritage of open source affects your software development velocity and overall effort and costs.

Do you really need to create that component?

Section titled “Do you really need to create that component?”

The first OSS projects contributed to LF Edge revolved around utility-type component solutions that solved recurring problems and replaced large chunks of boilerplate code. They also implemented an edge-native approach to problem solving, unlike the IoT (Internet of Things) solutions from the previous 5–10 years that were all in the process of being converted to SaaS -based products. This points to the first major benefit of relying on OSS – you don’t write and maintain code that is not your company’s core competency and is not part of your product’s value proposition. This adheres to the don’t repeat yourself (DRY) principle and the “don’t re-invent the wheel” idiom.

Something to think about

Only create software components that implement your product’s core value proposition.

If a problem has already been solved, the solution has several adopters already using it in production, and it largely meets your needs, then how does it benefit you to invest the time and effort in attempting to solve the same problem yourself in isolation?

  • The first instinct of a solution architect should always be to look for an existing component to reuse. Therefore, the first benefit of using open-source software solutions is that it provides a rich vein of re-usable solutions and components.
  • The second major benefit of relying on OSS is being able to create solutions quickly through judicious re-use of existing components. Since re-using code is quicker than writing it from scratch, your project should take less time to write and debug, resulting in better code quality. This assumes that the code you re-use already has unit tests and complete code coverage, supports your coding standards, and its integration requires minimal effort.
  • A third benefit of relying on OSS is that your code will inherit support for de facto and/or actual standards and conventions. The pattern that has emerged over the last few decades of software development is for a developer or tool to implement an approach, which is then for refined and improved, and then competing approaches emerge and either gain support from users of the previous approach or fail to gain significant traction, thus reinforcing support for the existing approach. Over time, the existing approach becomes the de facto standard, and it may even have the unique distinctives of the solution codified into an actual standard. We’d argue that any existing open source project that is being used in production by several products or companies has become a de facto standard.
  • A fourth benefit of relying on OSS is that your product will be easier to maintain and have a shallower learning curve for new developers being onboarded the more you reuse existing OSS components. In many situations, developers may be familiar with existing standards and the libraries or components that implement them. Further, there will be an existing body of work (e.g., tutorials, videos, example code, IDE hinting, and autocomplete) available that demonstrates and documents how to use those components, and they will likely have been refined to follow familiar conventions and paradigms, which allow them to converge on the familiar (meaning, this process is likely to produce a solution that will look familiar to architects and developers when they examine the details for the first time, therefore making it intuitive to understand and thus easier to maintain).
  • A fifth benefit of developing software and features as open source is that the burden, risk, and benefits of non-differentiating code and functionality can be shared between partners and even between competitors. This resource sharing lowers costs and, thus, also frees up resources to be better used elsewhere.
  • Finally, a sixth benefit of relying on OSS is that support for those components can be outsourced, thus creating a smaller support burden for your product organization. This may take the form of referencing existing (external) documentation for those component features, contracting with an organization that provides commercial support for those components, or integrating existing external documentation into your product documentation if the source code and artifacts feature a license that allows this reuse.

Given the benefits outlined here, most organizations will experience more than a net positive experience if they leverage existing OSS components in their software development process. This leads to the next question – how can software architects encourage a culture of open source reuse within an enterprise?

Creating and supporting an open source program office (OSPO)

Section titled “Creating and supporting an open source program office (OSPO)”

Later in this chapter, we’ll cover consuming OSS without introducing new vulnerabilities, as well as contributing to OSS projects while retaining control of your intellectual property. In the meantime, let’s go over the benefits of having a dedicated group in your organization tasked with the responsibility for promoting, influencing, and advising on the best approaches to consume from, and contribute to, OSS.

Your company or organization’s interaction with OSS will be a net positive if, at minimum, there is a defined open source strategy. This strategy should address what consumption is allowed (and why), what contributions are allowed, how these align with the business and product strategy, and how to calculate and achieve a return on investment (ROI). An OSPO should manage and implement that strategy, either directly or indirectly, through delegation to groups in each business unit.

The TODO Group defines the role of an OSPO as follows:

“ An open source program office is designed to be the center of the universe for a company’s open source operations and structure, helping to bring all the needed components together. This can include setting code use, distribution, selection, auditing and other policies, as well as training developers, ensuring legal compliance and promoting and building community engagement. The office can also provide advocacy and communications about all things open source inside and outside the company.” (https://todogroup.org/zh-cn/resources/guides/how-to-create-an-open-source-program-office/)

Let’s look at an example of how this is implemented in a large enterprise today. Inside IBM’s CIO (Chief Information Officer) office, the Open Technology team functions as an OSPO. They are responsible for managing annual developer training (which is required for all open source contributions), tracking developer contributions, and maintaining company-level agreements with open source foundations. The team gives talks both externally and within the company and has both developer advocates and project leaders active in many open source projects. They identify and track consumption of open source software across the company, facilitate collection and reporting on the software supply chain, including SBOM creation and usage, track and report on vulnerabilities, and ensure license compliance through regular code scans. They also maintain a short list of open source projects of strategic importance to the company and direct company-level investment in them.

Company divisions and units can also create their own open source or open technology strategies and align with a company-level strategy. Finally, larger umbrella organizations within foundations may have corresponding steering committees within a company to collaborate and coordinate on a unified, cross-unit approach to working within, and supporting, projects based on open-source software and technologies (https://blog.opensource.org/the-five-stages-of-the-open-source-program-office/).

As you can see in the preceding example, overall guidance is provided from a central group implementing the corporate open source strategy, while divisions and units have the flexibility to determine the specifics and align those with their business objectives. This approach enables standardized company-wide safe consumption of open source solutions. With a central team providing tools such as code scanning, coupled with individual units providing dependency graphs in the form of a software bill of materials, vulnerabilities can be quickly identified across an enterprise. Let’s explore how this is possible in the next section.

A software bill of materials is your friend

Section titled “A software bill of materials is your friend”

In this section, we will explore OSS supply chain issues – how to consume or depend on OSS without introducing new vulnerabilities using a Software Bill of Materials (SBOM), how to identify mature and stable OSS projects, how to nurture and assist projects you rely on, and responding to projects that abandon their initial commitments.

Using SBOMs to track software dependencies

Section titled “Using SBOMs to track software dependencies”

A software architect can be called on to provide specific recommendations for OSS solutions in an architecture or implementation. The risks in doing so are that the proper solution (or one of its immediate dependencies) for a given set of requirements might be from a project that is not mature or stable (see the following subsection for more about that topic). Therefore, it is incumbent on you to perform due diligence, either recommending against using those projects or only with strong caveats when no other good options are available, so that the ultimate decision-makers can make an accurate and informed determination.

Here are some tasks you should perform in order to analyze a set of dependencies for potential areas of vulnerability. This list should be considered the minimum due diligence, not an exhaustive set of steps. Think about how you might expand the following list below to cover your circumstances or unique situation:

  1. The first step in performing an analysis of an OSS project’s release is to obtain the SBOM files for both the source code and the released assets. It is critical to use both because code will rely on different dependencies at build time compared to runtime. The project may make SBOMs available for their source code in GitHub repositories. See Figure 10*.1* for an example of where to look. Likewise, an SBOM can be easily generated from a container using Docker’s CLI.

Figure 10.1 – A GitHub repository screenshot showing the Export SBOM function

  1. The second step would be to review the SBOM contents, looking for critical, unaddressed vulnerabilities more than 60 days old. If you find any, it could mean that the project code is not maintained per the recommended standards from the OpenSSF (Open Source Security Foundation) if the associated CVE (Common Vulnerabilities and Exposures notice) is legitimately filed and properly describes a critical vulnerability that directly affects how code is used in this situation.
  2. The third step would be to look at the licenses of the immediate dependencies to ensure that they meet your needs and requirements. This should include defining which licenses are compatible with the parent project, ensuring that only compatible licenses are used by dependencies and in contributions. A recommended resource to consult, if you have any questions about a software license, is the Open Source Initiative’s (OSI’s) list of OSI Approved Licenses at https://opensource.org/licenses/.
  3. Finally, a fourth step would be to manually review the list of projects and repositories to see whether any of them have appeared in the news recently or on a trusted technology site, regarding any upcoming changes in license, unaddressed breaches or vulnerabilities, or community controversy or instability. If any of those names trigger a red flag or give you pause, consider investigating it more fully.

Note

At the time of writing, the authors were not aware of a tool that could automate all steps of the scan process outlined previously, but keep in mind that new tools may have been created or released since then.

As you consider all of the work that needs to be done managing source code contributions and dependencies, keep in mind that organizations exist that will assist you with these tasks. Open source foundations such as the Eclipse Foundation, the Apache Foundation, and the Linux Foundation perform some or most of the preceding steps on behalf of developers, or may provide the tools needed to do so. For example, the Eclipse Foundation’s Intellectual Property (IP) team will perform dependency license checks when accepting and onboarding a new project, and before accepting sizable contributions to existing projects. Also, these tools and services provided by the foundations are one element in a more comprehensive approach to managing cyber risk (https://www.eclipse.org/org/workinggroups/eclipse-cyber-risk-concept.php).

Now that we’ve reviewed code quality and risk management, let’s look more closely at how to gauge an OSS project’s overall maturity and how that relates to code quality.

The characteristics of a mature OSS project

Section titled “The characteristics of a mature OSS project”

Another aspect of OSS solutions that a solution architect should evaluate before making recommendations is a project’s maturity and stability. The risks of using software from a source that is not yet mature would be that the project could suddenly change direction by removing critical features, adding unneeded features that cause performance issues, stopping the maintenance of documentation, or ceasing development work entirely.

If a component of your solution were to become unreliable in this manner or otherwise unavailable, how quickly could you replace it, and at what cost? Let’s see some questions you should ask about a project that may require deeper investigation, before potentially adopting it for your solution or product:

  • How is a community defined, and how large and active is it? Some projects that offer their software under an open source license believe that allowing anyone to submit or comment on an issue constitutes community engagement. Others feel that providing a forum for software users to communicate (e.g., chat rooms, discussion channels, and documentation comments) is sufficient. However, allowing the public to communicate with you is not the same thing as a group of empowered stakeholders giving input into a product roadmap or contributing code, designs, artwork, and documentation freely to a project. Just talking about a project is not the same thing as contributing to it. We would argue that a community should be comprised of persons who not only use a project but also meaningfully contribute to it, with their contribution acknowledged.
  • How many adopters are there, and how long have they been active (are they still using it)? An indicator of not only the health of a project but also its value is the number of persons or organizations who actively use the solution. If those users are tracked and are willing to be publicly identified as users, then that is a strong signal of the intrinsic value the solution brings.
  • How many companies participate in the community? If a company is not only an adopter but also actively contributes in some way, that indicates that the company finds strategic value in the solution and finds that using the software brings more benefits than developing something similar in-house. It also indicates that those running the project welcome the participation of others. If companies use project software but do not contribute back, it’s possible that they are prevented from doing so, not necessarily that they are unwilling to.
  • How often and how regular are code releases? Is there a published feature roadmap? Can the community submit feature requests? If a project has regularly scheduled releases every six months or less, this is a good indicator of a stable project with a history of discipline and the ability to follow a schedule. If those releases are being documented with an artifact developed by the community, such as an architecture decision record or a feature request, so much the better. Also, if you can see a history of detailed release notes, their development and release processes are likely sufficiently mature.
  • Is the project leadership composition vendor-neutral? Are there regular elections from the community, or are leaders appointed by a company or small cadre of “insiders”? A key indicator of potential trouble in a community is when it is known for having a single leader or small group of persons who control all the decisions. While having strong opinions on how a task should be performed, or what a specific outcome should be, is not an issue here, see whether there is a track record of community requests being consistently overruled or ignored. If so, this could become an issue.
  • What is the quality and coverage of the documentation? Documentation is typically the least-enjoyed task for volunteers on a project, so if the documentation is thorough, up-to-date, clearly written, and complete, then the project is likely healthy and mature.
  • Is there a good amount of unit tests available? What is the code coverage like? Can you fork the repo and run an end-to-end test without it failing? Failing tests can be a sign of code rot and insufficient attention or a lack of resources. However, this should not be a disqualifying consideration if you are willing to work to remediate this deficiency.

In summary, an immature project may lack a (complete) governance structure, with leadership positions filled with experienced staff, designated or identified replacement staff for critical roles, active community members from several organizations, and consistent contributions from people of varying abilities. Open governance, where meetings are held publicly and recordings/minutes are published, and where a community elects its project leadership and holds them accountable, prevents unstable communities and “benevolent dictators” from controlling a project.

Try to avoid using any software from an immature or unstable project, or even better, get involved and work to remedy any shortcomings. Here are some thoughts on how to do so effectively.

How to nurture and assist projects you rely on

Section titled “How to nurture and assist projects you rely on”

More than just avoiding using software from unsustainable projects, your organization (and likely you) should identify which dependencies are strategic to your product or solution, and then actively contribute to the project that maintains those dependencies to ensure their ongoing success. This is especially true for emerging fields such as edge computing.

The most important step in supporting a project is to get formally involved in a community. This may mean reaching out to the leadership of a project, and the parent foundation if there is one, to let them know that your organization finds value in their project and your intention to begin using it in production (becoming a project adopter). As you interact in community events and meetings, find out what they need – attend meetings, read their issues and product roadmaps, email or message team or group leaders, and ask them about the challenges they face. Eventually, see how you can dedicate resources and persons to a project and earn your way into leadership positions by contributing code (becoming a committer), squashing bugs, and eventually, reviewing commits (becoming a maintainer).

Once your enterprise is established in a community, it’s time to use your resources to improve project organization by amplifying what the community is already working on, and by helping out where it requires the most assistance. Research and find out how the community is funded, what its budget is, and how well it stays within that budget. See what other contributions organizations have made. Ask what initiatives the community wanted to tackle but couldn’t, and work with it to address the initiatives that will bring mutual benefit.

Another area where you can bring value is by spreading the message of how a project has brought you and others value. Discuss publicly how the project has helped you – publish articles, videos, refer others to the project, and volunteer to teach others. Be a developer advocate. See whether you have connections in your social network that you could introduce to project leadership, especially in areas or verticals that they would like to expand their reach in.

One of the most neglected areas in OSS projects is test coverage. Offer to assist with testing code, testing steps in documentation, and submitting fixes and patches in the requested format. This will go a long way toward improving code quality and catching bugs before they are included in a release.

Finally, personally offer to join the leadership of the project, whether actively chairing a group or advising from a board position. These simple but effective steps don’t all cost money, but they are welcome in OSS projects and can make a big difference in the health and stability of a project. They also act as a counter to pressures within a project to stray from the original mission statement, or ignore foundational promises, as we’ll discuss next.

Responses to projects that stray from their mission

Section titled “Responses to projects that stray from their mission”

Over the last few years, and increasing in frequency over the last year, companies that started out monetizing a commercial offering downstream from an open source project that they founded have migrated the license of the previously open source code to a more restrictive source-available license. This action provoked emotional responses in those consuming the code, ranging from shock and surprise to feelings of betrayal. Yet the founders did not do anything illegal, and they were trying to preserve a business that they had created from the ground up. Conversely, they could not have built their projects without the wealth of open source dependencies that they rely on.

What responsibilities did the founders have toward those who consumed the open source code, whether an actual community or not? And what backup plans should the consuming parties have had in place for this eventuality? What follows is purely the opinion of the authors and does not constitute legal advice. Always consult with legal counsel before acting or publishing potentially defamatory statements.

First, talk to the founders rather than gossiping or spreading hearsay. It’s possible that you misunderstood the situation or didn’t hear the whole story. Reality can be more complicated than most of us imagine. Also, it’s possible that the situation is resolvable. In many cases, it can be done in a manner not originally anticipated.

Second, determine whether the situation really needs addressing, or whether it can be simply ignored. If it cannot be ignored, then consider what actions can be taken in response, up to and including creating a fork of the project or establishing a competing project or alternative. Keep in mind that most forks or competition typically fail to reach their objectives. Reach out to others who may also be affected, and see whether you can collaborate on an alternative. If you cannot, then that likely means that creating an alternative is not a good option.

Frederic Desbiens, program manager for IoT and edge at the Eclipse Foundation, sums up the situation regarding companies that migrate the licenses of their projects away from open source in this way:

“ As such, they are breaking the dynamics of the open source ecosystem to their own benefit. Can you imagine the OSS ecosystem ten years from now if the licenses for the Linux kernel, GCC, or even bash were changed in the same way? There is a lesson to be learned here. Organizations valuing a healthy open source ecosystem should contribute to projects where contributions are accepted without copyright assignation. For example, the Eclipse Contributor Agreement leaves copyrights with the individual or organization making the contribution. This makes license changes such as the one you describe much harder since they would require consent by all copyright holders.”

After discussing the SBOM, the dependencies that arise from it, and how to evaluate those, let’s now turn to the topic of when and whether to open source your own solutions, or components of it. We’ll also discuss aspects of contributing code to external OSS projects.

What makes you so special? (Contributing without giving up intellectual property rights)In this section, we’ll go over strategies for contributing to open source software projects. The focus will be on protecting your intellectual property and copyrights while enabling sharing and collaboration. What follows are the opinions of the authors and does not constitute legal advice. Always consult with legal counsel before contributing to open source.

When the authors consult with teams and companies about an open source strategy for their edge computing solutions, one of the first objections that companies invariably raise is a concern about “giving away” their intellectual property or competitive advantages. The concern appears to be that placing their code in the open gives their competition insight into the “secret sauce” that gives their products a competitive advantage, and that others will now be able to easily replicate their success.

It is the authors’ opinion that any innovation worth protection should have a patent disclosure filed in advance of code being contributed or committed. One of the key factors identifying an invention worthy of this protection is that the idea is easily discoverable, although innovative. By contributing code, you help fulfill the discoverability requirement. Thus, contributing code to an open source project may strengthen your company’s case, not weaken it.

Additionally, many successful companies have built thriving businesses around open source projects. Well-governed OSS foundations have led the way by providing all of the recommendations in the following list. These recommendations cover contributing code, documentation, machine learning models, and other assets to open source projects while minimizing potential risk to profitability and competitive advantage:

  • Patent protections and corresponding open source licenses should be harmonized. You should communicate with your patent attorney when you file your disclosure(s) and ensure that they know that you may create and contribute open source artifacts that implement your invention(s), choosing an OSS license that allows usage to that effect.
  • All contributed files should contain an appropriate copyright notice. This copyright may not be legally removed, although others may append their own copyright lines as they amend or add to the files.
  • Different files may be covered by different licenses. For example, computer code may be covered by an Apache 2.0 license, while the documentation could be licensed under CC BY 4.0 International. Ultimately, you should use a Software Package Data Exchange (SPDX) license identifier or expression in all file headers.
  • All contributions should be signed with a Developer Certificate of Origin (DCO) when committed. This ensures that the contributor claims that they created the code and that they submit it under the specified license.
  • Every organization should have a Contributor License Agreement (CLA) with the organization they contribute code to. The CLA describes the terms of contributions and protects OSS projects from potential future legal issues. These could include claims that a contribution was not authorized for a specific purpose, or that the contributor was not authorized to make the contribution.
  • Machine learning models are a special case, as you should be concerned not only with the license of the resulting model but also the provenance of the data used to train it. Training data should also be scrutinized for potential bias so that the resulting model does not unintentionally weigh or exclude relevant factors, thus invalidating the results.

The preceding guidelines are an overview of the issues, concerns, and recommendations around protecting your property while collaborating with others in the context of an OSS project. If your organization has an OSPO, they will likely have a more complete set of guidelines and processes for you to follow. Also, if you don’t have an OSPO in your organization or enterprise, we hope you now see the need for one to be created. Finally, consider working with an established OSS foundation if it meets your needs and goals.

Now that we’ve discussed how to protect your ideas and inventions while collaborating, let’s jump into the specifics of how to actually make the contributions.

Let the cat out of the bag (Successfully open source your code and documentation)

Section titled “Let the cat out of the bag (Successfully open source your code and documentation)”

In this section, we’ll discuss different methods and approaches to open sourcing your materials, from the bare minimum to standard and formal approaches. By the end, you should have a good idea of your options and the benefits of each one.

Each of the options listed in this section share some common assumptions. Chief among those assumptions is that each repository should explicitly call out (meaning, draw attention to or otherwise direct the reader to) the main or default license. Do not make code available publicly without specifying a software license. Other assumptions are that each repository lists the maintainers, contributors, security reporting process, ways to contribute, and adopters. Finally, each repository should contain a README file (meaning, a file literally named “README” that contains information that should be consulted first) and a pointer to any other documentation.

The first and simplest option is to place source code in a public repository. This allows an organization to make the code available without the overhead of creating a formal project or concerns about building a community. In some situations, this option allows a company to “test the waters” and see what happens as a tentative first step toward a more robust and formal approach. However, ultimately, this is not a sustainable approach longer-term.

A second option is to find an existing project compatible with the aims of your code and either contribute it wholesale to that project, or incubate your code as a sub-project under the watchful eyes and mature supervision of a parent project and community. This option can be a shortcut or quick way to build an existing community, test the resolve of the contributing organization toward building a sustainable project eventually, and safely create the internal structures and processes for your eventual project while the intended leadership learns the ropes.

A third option would be to find an open source foundation that your company can work with to assist with the legal, structural, marketing, and process issues of creating a new project from scratch. They can assist you with all of the work needed to form the project and get it started, including setting up meetings, mailing lists, presentation materials, trademarks, logos, press materials, and publicity. They may also have existing services, including repositories, registries, CI/CD tooling, and website hosting.

A fourth option would be to forgo the formality of creating a project and community while associating the code with your company, by hosting it in a company-affiliated repository. This gives people the confidence in knowing who backs the code and that you may likely have a vested interest in the code’s longevity, ongoing maintenance, and support. However, there is also a degree of uncertainty, since there’s no guarantee that the company won’t eventually change the license or halt funding and development of the code, thus effectively abandoning it.

Out of all the options listed here, the second and third are approaches used by the modern open source movement and foundations, and they most closely match the open governance model. Consider the benefits and drawbacks that we have outlined here when determining which of the options may work best for you.

Next, let’s briefly touch on the topic of what makes a good candidate for open source.

The preceding sections lead straight to this question – what artifacts, solutions, or application source code should be released as public open source? Given the large number of existing OSS projects, software architects shouldn’t advocate for releasing something new unless it is of potential value to others. Here’s the authors’ take on what may be of value and interest to others, listed in order from most valuable to least:

  • Most importantly, working and supported code that solves a problem: This code should build successfully in all stated environments, provide test coverage, and at a minimum, instructions on how to use it.
  • Code snippets, utilities, and examples: These may not build on their own but are designed to demonstrate a concept or approach to a solution. They are most helpful when accompanied by robust comments or documentation.
  • Pseudo-code, explanation, and documentation: These are not technically source code but are artifacts that directly or indirectly teach concepts and the usage of code.
  • Raw data, lists and tables, processed and annotated data, and information: These can be used to provide input, training, and functions as a source of transparent data publishing.

Conversely, what is not likely to provide value when released as open source are the following:

  • Code that is under active development and does not function as-is: If it does not work, the code should either be in a private repo or not merged into the main branch. The expectation is that public code made available in a main branch should be capable of being built and run.
  • Broken projects that used to work but do not anymore: Code rot happens when it is not actively maintained. Projects in this state should be archived or deleted if nobody can be recruited to maintain them. An exception to this would be for code of historical value, especially when the runtime environment is no longer available, but this should be clearly stated in documentation.

In summary, consider releasing open source functional code that offers a solution and runs independently, not pieces or parts of a solution or incomplete code that requires other unavailable pieces to run. Code should build and run in all supported environments and have automated passing tests with each release, which are ideally regular. Abandoned or untouched or no longer supported code should be archived. If you don’t want to receive and answer emails about code, archive it.

In this chapter, you read about four key topics related to using open source software in the emerging field of edge computing. The first section talked about why open source is so important to edge computing and hybrid cloud development. We also discussed the potential benefits that using OSS brings to solutions, including increased development speed and agility, support for standards, shallower learning curves, and easier outsourcing of component development.

The second section discussed the software supply chain and how to manage it more easily with an SBOM. This gives you the ability to track dependencies, and it exposes additional information that could lead an architect to identifying potential risks in the projects supporting those dependencies.

The third section then covered reasons to open source company-developed solutions or components. You learned about ways to contribute safely without adding risk. Finally, the fourth section actually delved into how you can open source artifacts, and when you shouldn’t.

If you’re reading the book chronologically, you should by now have a holistic view of edge computing architectures and archetypes, system components, best practices, and software contributions and collaboration. That leaves a few remaining topics that function as a sort of connective tissue between those areas – how you can architect solutions to respond to worst-case scenarios, and how to make application architectures that become more resilient when unplanned situations present themselves. We’ll cover these in the final chapter.