# Lessons learned from \`oapi-codegen\`'s time in the GitHub Secure Open Source Fund

DevFeed: [Lessons learned from \`oapi-codegen\`'s time in the GitHub Secure Open Source Fund](<https://devfeed.tech/articles/lessons-learned-from-oapi-codegen-s-time-in-the-github-secure-open-source-fund-53065.md>)

Original publisher: [Read original article](<https://www.jvt.me/posts/2026/02/17/oapi-codegen-github-secure/>)

Author: Jamie Tanna

Published: 2026-02-17T19:16:50Z

Content type: article

Language: en

Sources: [Jamie Tanna](<https://devfeed.tech/sources/articles-on-jamie-tanna-software-engineer.md>)

Topics: [OpenAPI Specification](<https://devfeed.tech/topics/openapi.md>), [Code generation](<https://devfeed.tech/topics/code-generation.md>), [Go Language](<https://devfeed.tech/topics/go-language.md>), [Security](<https://devfeed.tech/topics/security.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>), [GitHub](<https://devfeed.tech/topics/github.md>)

Tags: [codegen](<https://devfeed.tech/tags/codegen.md>), [github](<https://devfeed.tech/tags/github.md>), [go](<https://devfeed.tech/tags/go.md>), [maintenance](<https://devfeed.tech/tags/maintenance.md>), [oapi-codegen](<https://devfeed.tech/tags/oapi-codegen.md>), [openapi-specification](<https://devfeed.tech/tags/openapi-specification.md>), [secure-open-source](<https://devfeed.tech/tags/secure-open-source.md>), [sensitive-data](<https://devfeed.tech/tags/sensitive-data.md>), [source](<https://devfeed.tech/tags/source.md>), [supply-chain-security](<https://devfeed.tech/tags/supply-chain-security.md>)

## AI overview

A reflection on oapi-codegen's participation in GitHub's Secure Open Source Fund. It discusses securing the OpenAPI-based Go code generator, maintaining generated code and related projects, and expanding the maintainer pool safely.

## Source excerpt

As noted in GitHub's post, oapi-codegen was one of the projects taking part in the third GitHub Secure Open Source Fund session. I'd like to take a moment to reflect on the program, and some learnings I've taken from it. One of the quotes I shared at the end of the program summed up my time: Having time dedicated to following best practices has been invaluable☆(well, $10k) Why did we join the fund? oapi-codegen is a project that takes an OpenAPI specification and generates Go code for either interacting with that API via an autogenerated client, or generates scaffolding for a number of HTTP servers and web frameworks to reduce the implementation burden, as well as generating types for API request/responses. Given the project is in a fairly privileged position - interacting with every HTTP request/response on either client or server-side, and likely exposed to sensitive data and credentials - securing the project is very important. As a code generator, oapi-codegen can generate a fair bit of code for you to commit to your project. But does everyone review the generated code? Hopefully yes 🫣 But given we can't guarantee it, we want to make sure that nothing dodgy could land in folks' codebases. Extending the maintainer pool On top of this, for the last ~2 years, I've been effectively maintaining oapi-codegen on my own. As I've written about a couple of times, maintaining a large project like this is fairly time consuming and difficult, especially if it's only you. Additionally, oapi-codegen isn't a single project, and other child projects, such as middleware for request/response validation, or conversions between types at runtime, also need maintenance. The project is sufficiently complex, led by user examples, and has a lot of usage that can make it hard to maintain for $0/month. Over the last few years I've been very appreciative of a few companies sponsoring the work, but the project requires more hours of work, especially given the many large companies using it, b