Does the smartabyar-smartvillage project follow the Open Source Software Foundation Best Practices?

Review the OpenSSF Best Practices checklist for smartabyar-smartvillage.

Created Mon Oct 24 2022

By Christopher Tate
Red Hat Principal Software Consultant

Open Source Software Foundation

FLOSS Best Practices Criteria overview

Here is our Open Source Software Foundation offers a Best Practices Badge for Smart Village Project.

The Open Source Software Foundation offers a Best Practices Badge to projects following all the suggested standards below. See the FLOSS Best Practices Criteria here. Below is a summary of how Smart Village Project implements these standards.

Basics

Basic project website content

Basics

FLOSS license

Basics

Documentation

Basics

Other

Change Control

Public version-controlled source repository

Change Control

Unique version numbering

  • The project results MUST have a unique version identifier for each release intended to be used by users.
    The Smart Village Project has unique versions of each release, see:
  • It is SUGGESTED that the Semantic Versioning (SemVer) or Calendar Versioning (CalVer) version numbering format be used for releases. It is SUGGESTED that those who use CalVer include a micro level value.
    The Smart Village Project Semantic Versioning (major, minor, patch) each release. For example 1.0.0, see the releases here:
  • It is SUGGESTED that projects identify each release within their version control system. For example, it is SUGGESTED that those using git identify each release using git tags.
    Each release of Smart Village Project also corresponds to a tag in GitHub, see the tags here:

Change Control

Release notes

  • The project MUST provide, in each release, release notes that are a human-readable summary of major changes in that release to help users determine if they should upgrade and what the upgrade impact will be. The release notes MUST NOT be the raw output of a version control log (e.g., the "git log" command results are not release notes). Projects whose results are not intended for reuse in multiple locations (such as the software for a single website or service) AND employ continuous delivery MAY select "N/A".
    The Smart Village Project provides a human-readable summary of major changes in each release, see:
  • The release notes MUST identify every publicly known run-time vulnerability fixed in this release that already had a CVE assignment or similar when the release was created. This criterion may be marked as not applicable (N/A) if users typically cannot practically update the software themselves (e.g., as is often true for kernel updates). This criterion applies only to the project results, not to its dependencies. If there are no release notes or there have been no publicly known vulnerabilities, choose N/A.
    See the list of vulnerabilities fixed in the release notes of Smart Village Project here:

Reporting

Bug-reporting process

Reporting

Vulnerability report process

Quality

Working build system

  • If the software produced by the project requires building for use, the project MUST provide a working build system that can automatically rebuild the software from source code.
    There is a container image build system using the Dockerfile in Smart Village Project on quay.io. See the automatically built tags and latest tag based on the latest from the main branch:
    There is also a Java CI with Maven build action for Smart Village Project on GitHub. It compiles the code and runs the tests and reports Success or Failure, errors, and warnings:
    Each release of the project is also built for Maven Central. For all the details about the dependencies, vulnerabilities and more see the Maven Repository on Maven Central for Smart Village Project here:
  • It is SUGGESTED that common tools be used for building the software.

    Quay is a container image registry that enables you to build, organize, distribute, and deploy containers. Quay gives you security over your repositories with image vulnerability scanning and robust access controls. Project Quay provides a scalable open source platform to host container images across any size organization. See:

    The Java CI with Maven build action provided by GitHub is also open source.

  • The project SHOULD be buildable using only FLOSS tools.

    Quay is a container image registry that enables you to build, organize, distribute, and deploy containers. Quay gives you security over your repositories with image vulnerability scanning and robust access controls. Project Quay provides a scalable open source platform to host container images across any size organization. See:

    The Java CI with Maven build action provided by GitHub is also open source.

Quality

Automated test suite

Quality

New functionality testing

  • The project MUST have a general policy (formal or not) that as major new functionality is added to the software produced by the project, tests of that functionality should be added to an automated test suite.
    This is still a work-in-progress for Smart Village Project.
  • The project MUST have evidence that the test_policy for adding tests has been adhered to in the most recent major changes to the software produced by the project.
    This is still a work-in-progress for Smart Village Project.
  • It is SUGGESTED that this policy on adding tests (see test_policy) be documented in the instructions for change proposals.
    This is still a work-in-progress for Smart Village Project.

Quality

Warning flags

  • The project MUST enable one or more compiler warning flags, a "safe" language mode, or use a separate "linter" tool to look for code quality errors or common simple mistakes, if there is at least one FLOSS tool that can implement this criterion in the selected language.

    A linter tool to look for code quality errors accomplished with the Super Linter Lint Code Base build action for Smart Village Project on GitHub. It is a simple combination of various linters, written in bash, to help validate your source code.

Security

Secure development knowledge

  • The project MUST have at least one primary developer who knows how to design secure software. (See ‘details’ for the exact requirements.)
    See the principal developers for Smart Village Project like `computate` a Principal Software Consultant from Red Hat with a background in secure software here:
  • At least one of the project's primary developers MUST know of common kinds of errors that lead to vulnerabilities in this kind of software, as well as at least one method to counter or mitigate each of them.
    See the principal developers for Smart Village Project like `computate` a Principal Software Consultant from Red Hat with a background in secure software and vulnerabilities here:

Security

Use basic good cryptographic practices

  • The software produced by the project MUST use, by default, only cryptographic protocols and algorithms that are publicly published and reviewed by experts (if cryptographic protocols and algorithms are used).

    The project website for Smart Village Project supports HTTPS using TLS with valid certificates as you can see here:

    The OpenAPI spec for Smart Village Project is using the strong standard openIdConnect scheme of the securitySchemes provided by the OpenAPI Spec for authentication, authorization, and role-based access control. See here:

    The authentication provider for Smart Village Project is Red Hat Single Sign On. Red Hat Single Sign-On (RH-SSO) provides Web single sign-on and identity federation based on SAML 2.0, OpenID Connect and OAuth 2.0 specifications. See here:

  • If the software produced by the project is an application or library, and its primary purpose is not to implement cryptography, then it SHOULD only call on software specifically designed to implement cryptographic functions; it SHOULD NOT re-implement its own.

    This project is not implementing it's own cryptography.

  • All functionality in the software produced by the project that depends on cryptography MUST be implementable using FLOSS.

    This project does not depend on cryptography of data.

  • The security mechanisms within the software produced by the project MUST use default keylengths that at least meet the NIST minimum requirements through the year 2030 (as stated in 2012). It MUST be possible to configure the software so that smaller keylengths are completely disabled.

    This project does not depend on cryptography of data.

  • The default security mechanisms within the software produced by the project MUST NOT depend on broken cryptographic algorithms (e.g., MD4, MD5, single DES, RC4, Dual_EC_DRBG), or use cipher modes that are inappropriate to the context, unless they are necessary to implement an interoperable protocol (where the protocol implemented is the most recent version of that standard broadly supported by the network ecosystem, that ecosystem requires the use of such an algorithm or mode, and that ecosystem does not offer any more secure alternative). The documentation MUST describe any relevant security risks and any known mitigations if these broken algorithms or modes are necessary for an interoperable protocol.

    This project does not depend on cryptography of data.

  • The default security mechanisms within the software produced by the project SHOULD NOT depend on cryptographic algorithms or modes with known serious weaknesses (e.g., the SHA-1 cryptographic hash algorithm or the CBC mode in SSH).

    This project does not depend on cryptography of data.

  • The security mechanisms within the software produced by the project SHOULD implement perfect forward secrecy for key agreement protocols so a session key derived from a set of long-term keys cannot be compromised if one of the long-term keys is compromised in the future.

    This project does not depend on cryptography of data.

  • If the software produced by the project causes the storing of passwords for authentication of external users, the passwords MUST be stored as iterated hashes with a per-user salt by using a key stretching (iterated) algorithm (e.g., Argon2id, Bcrypt, Scrypt, or PBKDF2). See also OWASP Password Storage Cheat Sheet).

    The trusted authentication provider for Smart Village Project is Red Hat Single Sign On. Red Hat Single Sign-On (RH-SSO) provides Web single sign-on and identity federation based on SAML 2.0, OpenID Connect and OAuth 2.0 specifications. See here:

  • The security mechanisms within the software produced by the project MUST generate all cryptographic keys and nonces using a cryptographically secure random number generator, and MUST NOT do so using generators that are cryptographically insecure.

    This project does not depend on cryptography of data.

Security

Secured delivery against man-in-the-middle (MITM) attacks

  • The project MUST use a delivery mechanism that counters MITM attacks. Using https or ssh+scp is acceptable.

    The project website for Smart Village Project supports HTTPS using TLS with valid certificates as you can see here:

  • A cryptographic hash (e.g., a sha1sum) MUST NOT be retrieved over http and used without checking for a cryptographic signature.

    This project does not depend on retrieving cryptographic hashes.

Security

Publicly known vulnerabilities fixed

  • There MUST be no unpatched vulnerabilities of medium or higher severity that have been publicly known for more than 60 days.

    This is still a work-in-progress for Smart Village Project.

    We have submitted a pull request to vertx-zookeeper that was merged to fix several of the current vulnerabilities in the project. We are waiting for these changes to be released in the right version of Vert.x supported by Red Hat GA.

    We have submitted a pull request to apache/curator to fix several of the current vulnerabilities in the project.

  • Projects SHOULD fix all critical vulnerabilities rapidly after they are reported.

    This is still a work-in-progress for Smart Village Project.

    We have submitted a pull request to vertx-zookeeper that was merged to fix several of the current vulnerabilities in the project. We are waiting for these changes to be released in the right version of Vert.x supported by Red Hat GA.

    We have submitted a pull request to apache/curator to fix several of the current vulnerabilities in the project.

Security

Other security issues

  • The public repositories MUST NOT leak a valid private credential (e.g., a working password or private key) that is intended to limit public access.

    All credentials for Smart Village Project are stored as environment variables, configuration files, or secrets that are not included in this project.

Analysis

Static code analysis

Analysis

Dynamic code analysis

  • It is SUGGESTED that at least one dynamic analysis tool be applied to any proposed major production release of the software before its release.

    This is still a work-in-progress for Smart Village Project.

  • It is SUGGESTED that if the software produced by the project includes software written using a memory-unsafe language (e.g., C or C++), then at least one dynamic tool (e.g., a fuzzer or web application scanner) be routinely used in combination with a mechanism to detect memory safety problems such as buffer overwrites. If the project does not produce software written in a memory-unsafe language, choose "not applicable" (N/A).

    This is still a work-in-progress for Smart Village Project.

  • It is SUGGESTED that the project use a configuration for at least some dynamic analysis (such as testing or fuzzing) which enables many assertions. In many cases these assertions should not be enabled in production builds.

    This is still a work-in-progress for Smart Village Project.

  • All medium and higher severity exploitable vulnerabilities discovered with dynamic code analysis MUST be fixed in a timely way after they are confirmed.

    This is still a work-in-progress for Smart Village Project.

Monday
October 24 2022 Does the smartabyar-smartvillage project follow the Open Source Software Foundation Best Practices? Review the OpenSSF Best Practices checklist for smartabyar-smartvillage. Christopher Tate
Open Source Software Foundation FLOSS Best Practices Criteria overview
Basics Basic project website content
Basics FLOSS license
Basics Documentation
Basics Other
Change Control Public version-controlled source repository
Change Control Unique version numbering
Change Control Release notes
Reporting Bug-reporting process
Reporting Vulnerability report process
Quality Working build system
Quality Automated test suite
Quality New functionality testing
Quality Warning flags
Security Secure development knowledge
Security Use basic good cryptographic practices
Security Secured delivery against man-in-the-middle (MITM) attacks
Security Publicly known vulnerabilities fixed
Security Other security issues
Analysis Static code analysis
Analysis Dynamic code analysis