State of Open Source
in the Federal Government

Jordan Kasper
@jakerella.bsky.social

Why me?

OSS contributor & maintainer since ~2008

Helped write the DoD's 2022 open source policy

Wrote the 2023 DHS open source policy

  1. Why Open Source?
  2. The Challenges
  3. The Policy
  4. The Reality
  5. The Possibilities

Open Source is good. [citation needed]

Reusability

Forking Octocat

Collaboration and Contribution

Collaboration Octocats

Security

Bouncer Octocat

Transparency

Spectoral Octocat

Cost *

Miner Octocat

For the people...

founding Father Octocat

The Challenges

"OSS is insecure"

https://www.flickr.com/photos/thepreiserproject/

"It's illegal"

A person reviewing a contract https://undraw.co

"We paid for it, it's ours."

http://disney.wikia.com/wiki/Seagulls_(Finding_Nemo)

Lack of Techincal Knowledge

Grace Hopper http://www.doncio.navy.mil/CHIPS/ArticleDetails.aspx?ID=7076

Stagnation

Sitting skeleton https://commons.wikimedia.org/wiki/File:III-A-12.jpg

The Policy

Federal Source Code Policy (M-16-21)

Section 5: Open Source Software

  • Pilot program to release 20% of gov code as OSS
    (ended in 2019)
  • Participation in the community
    • Open development practices
    • Community engagement
    • Accepting code contributions
    • Focus on documentation

Section 4: Goverment-Wide Code Reuse

  1. Data rights to share code
  2. Code inventory

Code.gov

Code.gov

Digital.gov

SHARE IT Act

congress.gov/bill/118th-congress/house-bill/9566

  1. Data rights to share code
  2. Goverment-wide code access and reuse
  3. Code inventory

DHS Inventory: dhs.gov/code.json

{
  "agency": "DHS",
  "releases": [
    {
      "name": "trustymail",
      "contact": { ... },
      "description": "Scan domains and return data based on trustworthy email best practices",
      "homepageURL": "https://github.com/cisagov/trustymail",
      "repositoryURL": "https://github.com/cisagov/trustymail.git",
      "languages": [ "Python", "Shell", "Dockerfile" ],
      "organization": "Cybersecurity and Infrastructure Security Agency",
      "permissions": {
        "licenses": [{ "name": "CC0-1.0" }]
      },
      "status": "Development",
      "tags": [ ... ],
      ...
    },
    { ... }
  ]
}

EO 14144 (January 2025)

Strengthening and Promoting Innovation in the Nation's Cybersecurity

Section 2(e): CISA must create "recommendations to agencies on the use of security assessments and patching of open source software and best practices for contributing to open source software projects."

Agency Open Source Policies & Guidance

The Reality

Is anyone actually sharing code?

https://government.github.com/community

Some Examples

How much is open?

😭

What about upstream OSS?

Government is (arguably) the largest consumer of OSS ...

... and might be the worst consumer of open source.

1. Selection

Manufacturing Octocat

1. Selection

Fail Octocat

2. Consumption

Electric Octocat

1. Consumption

Fail Octocat

3. Contribution

Forking Octocat

1. Contribution

Fail Octocat

The Possibilities

Goal: Increase Open Source Publication

  • Clear guidance on the process
  • Build modular, reusable components
  • Make it a contract requirement
  • Enforce secure coding practices

Goal: Secure Government Systems

  • Baseline OSS selection process
  • Automate OSS scanning & approval
  • Use mirrors
  • Guidance on OSS updating

Goal: Support a Secure Ecosystem

  • Contribute all security fixes upstream
  • Cotnributions to OSS we rely on
  • Grants for critical OSS infrastructure
  • Be an active participant in the community

What can you do?

Yes We Code Octocat

As a contractor...

As a federal employee...

As an indivudal...

Thank You!

State of Open Source
in the Federal Government

Jordan Kasper
jordankasper.com | @jakerella.bsky.social

All Octocats borrowed from https://octodex.github.com
(This is not an endorsement of GitHub, I just like the Octocats.)

Other Links & Referenes