So, my name is Remy DeCosmaker and I'm the open source lead at the Centers for Medicare and Medicaid Services. I'm going to be talking today about establishing the first open source program office at a federal agency in the United States. This is my first DEF CON, and before I even get started, I just want to say it is amazing to be here and thank you for all of the hackers and contributors, forerunners of this whole thing. I would not be doing the work that I'm doing without the work that all of you do. So thank you everyone for your contributions. So. Yeah, sorry, can't see the thing too good. All right, so first we're going to talk about CMS and the OSPO, then we're going to talk about how the open source program office reduces duplicate work, how we reduce risk, why that's important, and also how folks can help. So. What do we do? Well, the digital service at CMS, we help to improve the design and experience of health care services. We deliver value for patients, providers and health care workers. We help to modernize systems and we participate in policy development. And we do that by hiring great talent. We have small groups of designers, product folks, engineers and others who work on a tour of duty to work alongside of dedicated civil servants. And these multidisciplinary teams bring best practices and new approaches to modernizing the government. And who do we serve? We serve the American people. There are over close to 180 million people that depend on the services that we provide. Sixty five million Medicare beneficiaries. That's over 65 years old of age. Folks on Medicaid who are in vulnerable financial positions or have disabilities. And healthcare.gov is the insurance marketplace where people can go to find plans. And we serve taxpayers, about 1.7 trillion dollars of taxes, 12 percent of the federal budget roughly goes to CMS. We pay out about 829 billion dollars in Medicare and about 646 billion dollars in Medicaid. I've heard, you know, citation needed, something like three to five percent of the GDP rolls through our servers and infrastructure on a regular basis. And there are about 6,000 employees that we have working at CMS. There are also about 1.4 million providers. That totals about 20 percent of the national health care spending that goes to Medicare. So how do we do open source at CMS? Well, we have policies, projects and programs. So policies are how do we inbound and outbound open source code and contributions. Projects are how do we solve the real world problems by working in the open and programs are about how do we measure and manage those contributions, projects, risks and opportunities. And in government speak, a functional statement is sort of like your mission statement for what your team or your group does. Ours is we establish and maintain guidance, policies, practices and pipelines that advance equity, build trust and amplify impact across CMS, HHS and the federal open source ecosystem by working and sharing openly. The cool thing about this functional statement is that as of yesterday, if you go to whitehouse.gov slash ONCD for the Office of the National Cyber Director, they put out a fact sheet for the end of the year report for the Open Source Software Security Initiative, OS3I, which has been mentioned here before. Last year, the RFI was launched at DEF CON. So this is actually the result of that RFI, where we went to the open source community and asked about securing the open source supply chain and doing memory safe programming. And the Biden-Harris administration published a roundup of the things that the government is doing to address those concerns. And bullet point number six, you might recognize from the previous slide, it's establishing an open source program office at a federal agency. So we are excited to be a part of the learnings and contributions of the community. And it is a real privilege to be here in a place like this, talking with all of you about it. So open source has been around for a while. I'm sure a lot of you have heard some of these risks, quote risks, mostly myths that people take umbrage with over the years, things like it's less secure, bad for business, or means you have to share everything all the time, or that the government isn't allowed to do it. And that's just not true. It can be more secure as we have more people looking at it. But we all know that, you know, many eyes means you have to actually have people looking. It definitely is good for profit. I've worked in private sector in the past in a variety of open source program offices where I promise you they're making plenty of money doing open source and contributing back to the community. And, you know, by being intentional about what you share, about what is sensitive or what should be private or what is a risk, that actually frees you up to say, OK, everything on this side of the dividing line should be easy and everything on this side, you can take more time doing instead of wasting precious time of engineers or lawyers or policy folks having to identify every single thing that you might want to share. So a lot of it is just figuring out what is difficult to share, what is easy to share, and then making it easy to do that. And then lastly, code this developed by a federal agent, not a lawyer, it's not constitutively or financial advice. According to Title 17, Sections 101 and 105 of the United States Code, doing your official work as an employee of the government means that your work belongs to the American people. It is public domain. You already paid for it. I believe that everyone should have access to that data, that information, and that it already belongs to you. So myths. So if these are the quote risks, then what are the actual risks in open source? Over-differentiation, proliferation, and fragmentation are the kinds of things that keep folks like me up at night. So over-differentiation is unnecessarily duplicating your work and unnecessarily dividing your resources. A good example of this would be not invented here syndrome. Why should you be rolling your own crypto? Why should you be rolling your own auth? Why should you be rolling your own front-end design? There are already plenty of existing projects out there with tons of upstream developers and years, sometimes decades of time that have been put into them. And by using your precious engineering time and resources to reinvent the wheel, you are taking away from the other things that you could be doing to solve real problems. Don't do that. Proliferation is when you unnecessarily duplicate your communities and projects or unnecessarily divide your addressable market in business speak. So things like license proliferation or event and conference proliferation are good examples of having lots of options that take away from people contributing into a center of gravity or one particular upstream. And the last one, and this is a doozy, is fragmentation. And that's when you unnecessarily divide your community of contributors. The most common example of this that I've seen in open source program office land are internal forks. So when you treat your open source project internally as the upstream and then occasionally you release something in the outside world and eventually release it, that creates a pocket universe of patches that you have to maintain. It creates an extra layer of integration that you have to do internally. It wastes astronomical amounts of time as your internal fork becomes further divided from the outside in the upstream. And so many of the benefits of open source are lost because you're wasting your time doing extra resource development, extra engineering and extra duplicate effort. So, where does an open source program office provide value to something like a government agency? But this can apply to any organization really. We help save money and time. We provide accountability. We're an engine for talent. We reduce duplicate work. We reduce duplicate costs. We reduce risks for security. And we reduce the risks for continuity. I know we're at a security conference and many of you folks are very familiar with security risks. And continuity risks, community risks, is sort of more of the ballywick that I deal with more on a regular basis in the OSPO. So how do we reduce duplicate work? We developed over the last year or so, maturity models and using a tool called Cookie Cutter, which is a Python open source library, to automate some of the checking for maturity models for projects. More or less, it's just a way of identifying where an open source repository or project is in its open source journey. So Tier 0 is a private repo. Tier 1 is a one-time release repo. So mostly it's for being released for transparency purposes. Tier 2 is something like a close collaboration repository, so that's more of an inner source style repository where people might be working on it together in a repository that may be public, probably isn't, but isn't really expecting to have much outside contribution. Tier 3 is working in the open. So that's more of a, yes, the repo is on GitHub, but it's probably agency led and may or may not be taking contributions and pull requests, but it's certainly out there accepting issues. So usually there are not things like acts of Congress or executive orders from the President of the United States that dictate whether or not your community can accept patches or have governance. It is definitely a strange, interesting community governance challenge as someone who's been in open source for a little while, when something has to be agency led by statute, for example. And then lastly, Tier 4 is classic open source community governance, where you're accepting contributions and you might even be having the community involved in the roadmapping process and the types of things where you make decisions and how you decide who gets to be maintainers and all of the wonderful things that we've seen emerge in classic open source projects. So not only are those things that how you describe where someone is at in their journey, but you can look at the repository hygiene itself and you can say things like, well, if you're in these tiers, generally speaking, these types of projects have repositories that are shaped in these ways and these are just the files themselves. M is for mandatory, R is for recommended, and N is for not recommended. So nothing... it's almost worse to give the impression that you're going to accept pull requests and have people write code and contribute to your project and then leave them hanging on the vine. It destroys morale. It is a waste of time for you. It is a waste of time for the contributors. So don't put a contributing.md file in your repository if you're not planning on accepting contributions. Not only can we check whether or not these files exist, but we can also dig deeper into what are the elements of these files. And we'll talk a little bit about that in a minute. So by asking a simple set of questions on the command line, we can automate this. It's good to give people a model and say, this is where we think you are on your journey. But if you ask them simple questions like, are you going to cut more than one release? Are you going to have more than one contributor? Are you going to have anybody else helping you? These simple questions allow us to say, OK, you're probably a tier one or a tier two or a tier three project. And all of these are on our GitHub repo scaffolder repository where you can see this stuff. So how do we reduce risk? Well, we have checklists, we have metrics and we have linters. So our metrics front end, we released our first version of Open Source Summit North America in April of this year. This is a really basic static website. It is generated in CI and GitHub Actions. It uses the GitHub API and Augur under the hood. We'll do a little bit of an architecture deep dive later on in the slides. But basically, you can dig into an organization on the left and then on the right, it will tell you weekly stats about it. Just basic activity and community health metrics to say, you know, what's the plus or minus diff since last week on your contributors or your pull requests or issues? And it gives us some other metadata and information that we're going to be adding into a second release. This is the last week of our Coding It Forward fellowship of our intern season. The interns are cranking away while I'm here at DEF CON and giving their final presentations next week. So we'll have an updated version of this slide very soon. Outbound checklists are a way to take all of this guidance and put it into a doc that you can just follow. You say, OK, what are the steps that you're going to go through? If you're a one time release project, here are the different things you should do before you flip the switch and make it public. And includes things like code scanning, understanding your risks and benefits and doing some security analysis and figuring out where your documentation is and what should be in it. We can tell you things like a readme usually has a description, a readme usually has contact information, a readme usually has X, Y, Z, A, B, and C. A contributing file usually has A, B, C, or D, depending on where you're at in your journey. And this makes it easy for people to go, OK, I did this, I did that, I did this, I did that. And by making that like easy to follow, the developer experience is better. People are more likely to follow the direction and it makes it a lot less burden on people who need to do this work. You shouldn't have to choose between building things and building the community that helps you build the things. We make it easy for the developers so that they don't have to divide their limited time and resources and can focus on the things solving the problems that need to be solved. And when we get into mature projects, some of you are probably familiar with the Open Source Security Foundation. They have a scorecard API that you can hit. So we have corresponding scores in each of these categories, depending on what tier you're in. So we can say, if you're a tier 3 project, you probably want to have a 6 or a 7 over here in this, or you want to have a 1 or a 2 over here because it's not as important. We depend heavily on best practices from the open source community and thank you to folks in the audience here who absolutely contribute to these things. This is a little bit of a picture of our backend for metrics. As I mentioned, we're hitting the GitHub API, we're hitting the Augur API. Those things both tell us, you know, where the repository metrics are going and where they're coming from. We use some simple static website development and generation tools, some liquid, I believe, templates in the front end. We use PyGals, which is a Python library for generating graphs and graphics and data visualizations. And then we bundle that all up, commit it to the repo, and ship it to GitHub pages on a weekly basis. So there's a project called RepoLinter, which actually can go through and say, like, do you have this? Do you have that? You can set up scripts to check for this stuff in CI. And in fact, thanks to contributions from open source program offices in the private sector, we have specific configurations that will tell you, like, not only do you have a security.md file, but does that security.md file have the right contact information? And maybe, just maybe, in other vulnerability and backdoor issues that have happened in the recent past, one of them was, like, someone changed the security address to their own personal email address and nobody caught that. And it's a simple docs check to just see whether or not it's there. And taking that off of somebody else's plate so that they don't have to manually check that, we can automate that using tools like RepoLinter. And this is what it looks like running in GitHub in a GitHub action. So to overview all the different things of our repository baselines, the maturity models help to tell you where your project data is in your journey. The repository templates tell you what are the things that are missing to improve your repo hygiene and make it healthy. The outbound checklists tell you what steps you should take to get along on that path. Cookie cutter helps you establish what tier you're in if you don't know. And RepoLinter configs help to make sure that you maintain that standard. And as you move up, how you progress in your journey. So why is this important? You know why it's important. You've seen this slide how many times? I don't even need to explain it. We all know what a Nebraska problem is. And after this talk, actually, there are going to be some folks from the Cyber Security and Infrastructure Security Agency who are going to get up here and talk a little bit about open source. And on their blog, they mentioned that every technology manufacturer that profits from open source software must do their part by being responsible consumers of and sustainable contributors to the open source packages that they depend on. And we 100% agree. It's a super important thing. And as we see more of these types of supply chain attacks and vulnerabilities on the community, it's really important that we build trust. Open source code is made of bits and bytes, but really it is made of people. And building trust in those groups of people doing that work means making their lives easier. And we have to help to grow that community. So how can folks help? Well, I mentioned that we have an early career talent pipeline that we depend on for the talent and the people who work in the OSPO. I was between us, I'm not saying anything new, I'm not writing it down, but I'm sure some of you are familiar with vulnerability disclosure programs and programs and platforms that enable that. Stay tuned. Hopefully there will be an announcement early next week talking about some new opportunities in that lane for folks in the audience who are in that research area. And on top of that, just contributing generally to the repositories that are out there. Specifically, the digital service is a four year tour of duty. That's what I'm doing now. I'm halfway through. And at the end, you don't know what happens next. This is both a feature and a bug. It is a feature because a lot of the difficulty in doing long term organizational change is that a lot of folks get very invested in their career path. So by having folks who are there temporarily, like a four year tour of duty, it's just enough time to really sink your teeth into a problem, but a short enough time where maybe you can challenge the culture that exists or maybe you can take some risks that you wouldn't take otherwise if you were going to be spending a lot of time there. So I think it's a really interesting way of getting to do the work while being invested in it without having to deal with some of the limitations of being a full time Fed forever. Speaking of, there's a program called the Digital Core, which is out of the Government Services Administration. It's a two year tour of duty for early career folks. You get a 50% signing bonus. You get promoted from a GS9 to a GS12 by the end of two years. It's like getting 20 promotions. If you speak government career ladder, it's pretty phenomenal. And at the end, there's a full time job waiting for you. And as long as you meet your requirements and get evaluated along your learning and development career path. So all of our full time developers now, Isaac and Natalia, big shout out, have been hired through the Digital Core program. And we're having two more Digital Core fellows, Dina and Sanchin, joining us in the fall. So four full stack engineers. This is what we've done with two so far. Really excited to see what we can do with two more. And the Coding and Forward Digital Fellowship program is a 10 year paid undergraduate experience or for recent graduates. If you know folks who are coming out of school or rising juniors or seniors, this is a 10 week program. Codingandforward .com is where you can find more information about that. And we've also been experimenting with the very beginning of the pipeline. So folks who are still in high school or recent graduates of high school doing part time to full time programs of paid internships to work in technology. So urbanalliance.org, we're also experimenting and partnering with Code in the Schools, which is a Baltimore program that's based out of our backyard where CMS is based. So it is our hope that our high school students can get paid to maintain and learn the art of doing open source. They can then turn that into an internship opportunity when they're an undergrad. And when they're done being an undergrad and they graduate from college, there's a halfway program to get them that first job in the industry. And then after that, if you want to continue on in a full time program, you can go into the pipeline. And folks like me, we're in the middle of our career. So it's not as hard to get those kinds of roles when you've been coming to places like this and doing this kind of work for a long time. But if you're brand new out of school and there's been, say, 400,000 layoffs in the tech industry in the last three years, you're competing against lots and lots of people for jobs. So mentoring folks is not a skill set that everyone is interested in or good at doing. And I believe that any part of a functional and healthy open source program office is embracing early career folks because they can explore what they're interested in. They can contribute to lots of things. We don't need wizards, right? We need the next generation to work with the wizards so we can pass down that institutional wisdom and knowledge so that we can bring in that next generation of hackers who are going to help to maintain the fabric of our technology. So speaking of wizards, thank you to the folks who come before, the folks at GSA, AT&F, CFPB, OMB, CISA, DHS, DOD, ONCD. There are lots of folks in the government where if I tried to do this work 10 years ago, I wouldn't really have been quite as effective, perhaps. I've been a lot more of an uphill battle and also like, you know, probably wouldn't be speaking at places like this. I think 10 years ago, giving this kind of talk at a DEF CON would be a bit of an outlier, right? So thank you to the folks who are here engaging with the community. It is without your help, without the participation of the open source community, the public sector could not do the work that we do. And we sure wouldn't be able to move as quickly or as effectively doing things. So thank you for your contributions and work. And we depend on folks like the Community Health and Analytics of Open Source Project or Chaos.Community. If you're a nerd for metrics like this about open source repos and projects, check them out. If you are a nerd for open source program offices or interested in that as a strategy for your organization, highly recommend the to do group dot org. They are based out of the LF and they have lots of guides and tutorials and Slack channels where you can talk to other open source program office professionals, get help, get mentorship and be part of a community. And of course, we're on GitHub. We have repos, file issues, send pull requests. If there's any way we can be a resource, please don't hesitate to reach out. So thank you, DEF CON. There's the contact info. If you're interested or know someone who would be interested in joining as a Digital Core Fellow, digitalcore.gsa.gov. If you know someone who might want to do an undergraduate internship, codinginforward.com. If you're interested in the digital service itself, digitalserviceatcms.hhs.gov. If it's not just CMS, usds.gov is another place where they detail into lots of agencies like ours. And if you just want to talk about open source, opensourceatcms.hhs.gov will reach me and my team and we will do what we can to get back to you because we are still growing. It is still early. We are one year in and who knows where we'll be next year. So thank you, DEF CON. Hopefully we'll see you again soon.