Criteria Discussion

There is no set of practices that can guarantee that software will never have defects or vulnerabilities. Even formal methods can fail if the specifications or assumptions are wrong. Nor is there any set of practices that can guarantee that a project will sustain a healthy and well-functioning development community.

However, following best practices can help improve the results of projects. For example, some practices enable multi-person review before release, which can both help find otherwise hard-to-find technical vulnerabilities and help build trust and a desire for repeated interaction among developers from different organizations.

This page discusses the set of best practices for Free/Libre and Open Source Software (FLOSS) projects developed for the Open Source Security Foundation (OpenSSF) Best Practices badge. Projects that follow these best practices will be able to voluntarily self-certify and show that they've achieved the relevant badge. Projects can do this, at no cost, by using a web application (BadgeApp) to explain how they meet these practices and their detailed criteria.

These best practices have been created to:

  1. encourage projects to follow best practices,
  2. help new projects discover what those practices are, and
  3. help users know which projects are following best practices (so users can prefer such projects).

The idiom "best practices" means "a procedure or set of procedures that is preferred or considered standard within an organization, industry, etc." (source: Dictionary.com). These criteria are what we believe are widely "preferred or considered standard" in the wider FLOSS community.

For more information on how these criteria were developed, see the OpenSSF Best Practices badge GitHub site.

You may also see the full criteria.

Структура критериев

The best practices criteria are divided into three levels:

  • Passing focuses on best practices that well-run FLOSS projects typically already follow. Getting the passing badge is an achievement; at any one time only about 10% of projects pursuing a badge achieve the passing level.
  • Silver is a more stringent set of criteria than passing but is expected to be achievable by small and single-organization projects.
  • Gold is even more stringent than silver and includes criteria that are not achievable by small or single-organization projects.

Every criterion has a short name, shown as superscripted text inside square brackets after the criteria text.

Связь с другими проектами

The Linux Foundation also sponsors the OpenChain Project, which identifies criteria for a "high quality Free and Open Source Software (FOSS) compliance program." OpenChain focuses on how organizations can best use FLOSS and contribute back to FLOSS projects, while the OpenSSF Best Practices badge focuses on the FLOSS projects themselves. The OpenSSF Best Practices badge and OpenChain work together to help improve FLOSS and how FLOSS is used.

Критерии автоматизации

In some cases we automatically test and fill in information if the project follows standard conventions and is hosted on a site (e.g., GitHub) with decent API support.

We intend to improve this automation in the future. Improvements to the automation are welcome!

However, we have intentionally prioritized on "what is important", even if can't be affordably automated. We love automated measurements, but not everything important is automatable or can be automated affordably.

Изменения со временем

We expect that these practices and their detailed criteria will be updated over time. We plan to add new criteria but mark them as "future" criteria, so that projects can add that information and maintain their badge.

Feedback is very welcome via the GitHub site as issues or pull requests. There is also a mailing list for general discussion.

Ключевые слова

The key words "MUST", "MUST NOT", "SHOULD", "SHOULD NOT", and "MAY" in this document are to be interpreted as described in RFC 2119. The additional term SUGGESTED is added. In summary, these key words have the following meanings:

  • The term MUST is an absolute requirement, and MUST NOT is an absolute prohibition.
  • The term SHOULD indicates a criterion that is normally required, but there may exist valid reasons in particular circumstances to ignore it. However, the full implications must be understood and carefully weighed before choosing a different course.
  • The term SUGGESTED is used instead of SHOULD when the criterion must be considered, but the valid reasons to not do so are even more common than for SHOULD.
  • The term MAY provides one way something can be done, e.g., to make it clear that the described implementation is acceptable.

Often a criterion is stated as something that SHOULD be done, or is SUGGESTED, because it may be difficult to implement or the costs to do so may be high.

Получение значка

Для получения значка все критерии ОБЯЗАН/НЕОБХОДИМО/НЕДОПУСТИМО должны быть выполнены, все критерии СЛЕДУЕТ/НЕ СЛЕДУЕТ должны быть выполнены ИЛИ не выполнены с обоснованием, а также должны быть учтены все критерии МОЖЕТ/ЖЕЛАТЕЛЬНО (они должны быть оценены как выполненные или невыполненные; для этих критериев обоснование не требуется, если не указано иное). Ответ «Неприменимо», если он разрешен, считается выполненным критерием. В некоторых случаях, особенно на более высоких уровнях, может потребоваться обоснование и/или URL-адрес.

Некоторые критерии имеют особую разметку, влияющую на это:

  • {N/A allowed} – разрешен ответ «Неприменимо».
  • {N/A justification} – ответ «Неприменимо» разрешен, но требует обоснования.
  • {Met justification} – ответ «Соответствует» требует обоснования.
  • {Met URL} – ответ «Соответствует» требует обоснования c URL-адресом.
  • {Future} – ответ на этот критерий на данный момент не влияет на итоговый результат, но может потребоваться в будущем.

A project must achieve the previous level to achieve the next level. In some cases SHOULD criteria become MUST in higher level badges, and some SUGGESTED criteria at lower levels become SHOULD or MUST in higher level badges. The higher levels also require more justification, because we want others to understand how the criteria are being met.

The (many) cryptographic criteria do not always apply, because some software has no need to directly use cryptographic capabilities. In those cases, answer N/A.

There is one implied passing criterion - every project MUST have a public website with a stable URL. This is required to create a badge entry in the first place.

Терминология

If you are not familiar with software development or running a FLOSS project, materials such as Producing Open Source Software by Karl Fogel may be helpful to you.

Вот несколько ключевых терминов:

  • A project is an active entity that has project member(s) and produces project result(s). Its member(s) use project sites to coordinate and disseminate result(s). A project does not need to be a formal legal entity.
  • Project members are the group of one or more people or companies who work together to attempt to produce project results. Some FLOSS projects may have different kinds of members, with different roles, but that's outside our scope.
  • Project results are what the project members work together to produce as their end goal. Normally this is software, but project results may include other things as well. Criteria that refer to "software produced by the project" are referring to project results.
  • Project sites are the sites dedicated to supporting the development and dissemination of project results, and include the project website, repository, and download sites where applicable (see sites_https).
  • The project website, aka project homepage, is the main page on the world wide web (WWW) that a new user would typically visit to see information about the project; it may be the same as the project's repository site (this is often true on GitHub).
  • The project repository manages and stores the project results and revision history of the project results. This is also referred to as the project source repository, because we only require managing and storing of the editable versions, not of automatically generated results (in many cases generated results are not stored in a repository).
  • A project security mechanism is a security mechanism provided by the delivered project's software.

Что не относится к критериям

Критерии:

  • не требуют какой-либо конкретной технологии, продукта или услуги. Например, они не должны требовать git, GitHub или GitLab. Критерии могут содержать рекомендации и помощь в распространенных случаях, поскольку эта информация может помочь людям понять критерии и соответствовать им. Для проектов, использующих git или GitHub, существует специальная автоматизация, которая помогает пользователям в таких распространенных случаях, но она не является обязательной . Таким образом, по мере появления новых инструментов и возможностей проекты могут быстро переключаться на них. В качестве исключения критерии требуют наличие веб-страницы проекта и TLS.
  • не требуют и не запрещают какой-либо конкретный язык программирования. Они требуют принятия дополнительных мер для определенных классов языков программирования, но это другое.
  • никогда не требуют использования несвободного ПО, проприетарных услуг или технологий, поскольку многие разработчики свободного ПО отвергли бы такие критерии. Проекты могут использовать и/или зависеть от несвободных элементов.
  • не требуют активной разработки или обсуждения пользователями внутри проекта. Некоторые проекты с высокой степенью зрелости редко меняются и поэтому могут быть малоактивными. Однако критерии требуют , чтобы проект реагировал на сообщения об уязвимостях.
  • не требуют платы за получение значка.
  • не требуют одновременного выполнения всех критериев; большинство проектов реализуют их постепенно.

Проходной уровень не включает критерии, которые были бы непрактичны для проекта, выполняемого одним человеком, например, чего-то, требующего значительной суммы денег. Многие проекты FLOSS небольшие, и мы не хотим исключать их подобным образом.

Identifying a project

Our application gives every project entry a unique id, but that doesn't help people searching for the project. For our purposes, the real name of a project is the URL for its repository, and where that is not available, the project "front page" URL. We rate limit changes to the repo URL to prevent some nonsense. Projects normally have a human-readable name, but these names are not unique enough.

Зачем нужны критерии?

The paper Open badges for education: what are the implications at the intersection of open systems and badging? identifies three general reasons for badging systems (all are valid for this):

  1. Badges as a motivator of behavior. We hope that by identifying best practices, we'll encourage projects to implement those best practices if they do not do them already.
  2. Badges as a pedagogical tool. Some projects may not be aware of some of the best practices applied by others, or how they can be practically applied. The badge will help them become aware of them and ways to implement them.
  3. Badges as a signifier or credential. Potential users want to use projects that are applying best practices to consistently produce good results; badges make it easy for projects to signify that they are following best practices, and make it easy for users to see which projects are doing so.

Why self-certification?

We have chosen to use self-certification, because this makes it possible for a large number of projects (even small ones) to participate. There are millions of FLOSS projects, and paying third parties to independently evaluate each one does not scale. There's a risk that projects may make false claims, but we think the risk is small, users can check the claims for themselves, and false claims can be overridden. We also use automation to override false claims where we can be confident in the results.