pgbackrest.git / summary / log / commit / refs
commit 65a32af7a04d294ea4c18aaa497a7cf38bf3c046
Author: David Steele <david@pgbackrest.org>
Commit: GitHub <noreply@github.com>
Date: Tue Nov 03 10:48:21 2026 +0000
Add OpenSSF Security Insights file and security CI checks.
.github/security-insights.yml describes the project administrators, how to report vulnerabilities, the release process, and the security tools run in CI and before release (Coverity, libFuzzer with sanitizers, Valgrind, and Fil-C). The format is version 2.2.0 of the OpenSSF Security Insights specification. The file is exempt from the line length check because its comment values are prose written on a single line.
The security CI workflow validates the Security Insights file against the CUE schema for the version in its header and assesses the repository against OSPS Baseline Level 1 with the OpenSSF scanner. Failed baseline controls are reported without failing the build.
.github/security-insights.yml | 126 ++++++++++++++++++++++++++++++++++
.github/workflows/test-security.yml | 63 +++++++++++++++++
.github/workflows/test.yml | 3 +
doc/xml/release/2020s/2027/2.61.0.xml | 21 ++++++
test/lib/command/lint/lint.py | 1 +
5 files changed, 214 insertions(+)
diff --git a/.github/security-insights.yml b/.github/security-insights.yml
new file mode 100644
index 000000000..120f8febd
--- /dev/null
+++ b/.github/security-insights.yml
@@ -0,0 +1,126 @@
+header:
+ schema-version: 2.2.0
+ last-updated: '2026-10-25'
+ last-reviewed: '2026-10-25'
+ url: https://raw.githubusercontent.com/pgbackrest/pgbackrest/refs/heads/main/.github/security-insights.yml
+project:
+ name: pgBackRest
+ homepage: https://pgbackrest.org/
+ funding: https://github.com/sponsors/dwsteele
+ administrators:
+ - name: David Steele
+ primary: true
+ email: david@pgbackrest.org
+ - name: Stefan Fercot
+ primary: false
+ email: pgstef@fercot.be
+ repositories:
+ - name: pgBackRest
+ comment: Main repository of pgBackRest
+ url: https://github.com/pgbackrest/pgbackrest
+ - name: website
+ comment: pgbackrest.org website, generated from the documentation in the main repository
+ url: https://github.com/pgbackrest/website
+ vulnerability-reporting:
+ reports-accepted: true
+ bug-bounty-available: false
+ contact:
+ name: pgBackRest Security
+ primary: true
+ email: security@pgbackrest.org
+ policy: https://github.com/pgbackrest/pgbackrest/blob/main/SECURITY.md
+ comment: >-
+ Report security issues privately on GitHub under Security Advisories at https://github.com/pgbackrest/pgbackrest/security/advisories/new or by email to security@pgbackrest.org. Do not report security issues in public issues.
+ documentation:
+ detailed-guide: https://pgbackrest.org/user-guide-index.html
+ quickstart-guide: https://pgbackrest.org/user-guide.html#quickstart
+ release-process: https://github.com/pgbackrest/pgbackrest/blob/main/doc/RELEASE.md
+repository:
+ status: active
+ url: https://github.com/pgbackrest/pgbackrest
+ accepts-change-request: true
+ accepts-automated-change-request: false
+ core-team:
+ - name: David Steele
+ primary: true
+ email: david@pgbackrest.org
+ - name: Stefan Fercot
+ primary: false
+ email: pgstef@fercot.be
+ license:
+ url: https://raw.githubusercontent.com/pgbackrest/pgbackrest/refs/heads/main/LICENSE
+ expression: MIT
+ documentation:
+ contributing-guide: https://github.com/pgbackrest/pgbackrest/blob/main/CONTRIBUTING.md
+ security-policy: https://github.com/pgbackrest/pgbackrest/blob/main/SECURITY.md
+ release:
+ automated-pipeline: false
+ distribution-points:
+ - uri: https://github.com/pgbackrest/pgbackrest/releases
+ comment: >-
+ Source tarball with a published SHA-256 checksum. The tarball is built and smoke tested by the CI workflow from the release commit, not on a maintainer's machine. Releases are immutable: the tag and assets are locked once the release is published.
+ changelog: https://pgbackrest.org/release.html
+ security:
+ tools:
+ - name: Coverity Scan
+ type: SAST
+ comment: Runs on the release candidate before each release. Issues found are fixed before the release.
+ rulesets:
+ - default
+ integration:
+ adhoc: false
+ ci: false
+ release: true
+ results:
+ release:
+ name: Coverity Scan project
+ predicate-uri: https://scan.coverity.com/
+ location: https://scan.coverity.com/projects/pgbackrest-pgbackrest
+ - name: libFuzzer with AddressSanitizer and UndefinedBehaviorSanitizer
+ type: fuzzing
+ comment: >-
+ Fuzz targets for the ini, json, and pack parsers, built with the OSS-Fuzz sanitizer flags and run from a seed corpus on every push and pull request.
+ rulesets:
+ - default
+ integration:
+ adhoc: false
+ ci: true
+ release: false
+ results:
+ ci:
+ name: fuzz CI job
+ predicate-uri: https://llvm.org/docs/LibFuzzer.html
+ location: https://github.com/pgbackrest/pgbackrest/actions/workflows/test.yml
+ - name: Valgrind (Memcheck)
+ type: other
+ comment: >-
+ Dynamic memory error detection (invalid accesses, use-after-free, uninitialized memory, leaks) over the unit tests on x86_64 and aarch64 on every push and pull request.
+ rulesets:
+ - default
+ integration:
+ adhoc: false
+ ci: true
+ release: false
+ results:
+ ci:
+ name: linux and arch CI jobs
+ predicate-uri: https://valgrind.org/docs/manual/mc-manual.html
+ location: https://github.com/pgbackrest/pgbackrest/actions/workflows/test.yml
+ - name: Fil-C
+ type: other
+ comment: >-
+ Memory-safe implementation of C. An out-of-bounds access, a use-after-free, or a type confusion panics at runtime. The unit tests run on a Fil-C build on every push and pull request.
+ rulesets:
+ - default
+ integration:
+ adhoc: false
+ ci: true
+ release: false
+ results:
+ ci:
+ name: compile CI job
+ predicate-uri: https://github.com/pizlonator/fil-c
+ location: https://github.com/pgbackrest/pgbackrest/actions/workflows/test.yml
+ assessments:
+ self:
+ comment: Self assessment has not yet been completed.
diff --git a/.github/workflows/test-security.yml b/.github/workflows/test-security.yml
new file mode 100644
index 000000000..107429c50
--- /dev/null
+++ b/.github/workflows/test-security.yml
@@ -0,0 +1,63 @@
+# Checks of the OpenSSF security metadata: the Security Insights file is validated against its schema and the repository is
+# assessed against the OSPS Baseline.
+name: security
+
+on: workflow_call
+
+# Limit permissions on the repository
+permissions:
+ contents: read
+
+jobs:
+ # Validate the Security Insights file against the schema for the version in its header. The schema defines #SecurityInsights and
+ # does not constrain the top level. Validation without -d '#SecurityInsights' passes any YAML.
+ insights:
+ runs-on: ubuntu-24.04
+
+ # CUE releases are at https://github.com/cue-lang/cue/releases.
+ env:
+ CUE_VERSION: 'v0.17.1'
+
+ steps:
+ - name: Checkout Code
+ uses: actions/checkout@v6
+ with:
+ path: pgbackrest
+
+ - name: Install CUE
+ run: |
+ cd ${HOME?}
+ curl -fsSL https://github.com/cue-lang/cue/releases/download/${CUE_VERSION?}/cue_${CUE_VERSION?}_linux_amd64.tar.gz \
+ | tar -xz cue
+ ./cue version
+
+ - name: Validate
+ run: |
+ cd ${HOME?}
+ file=${GITHUB_WORKSPACE?}/pgbackrest/.github/security-insights.yml
+ version=$(yq '.header.schema-version' ${file?})
+ curl -fsSL -o schema.cue https://raw.githubusercontent.com/ossf/security-insights/v${version?}/spec/schema.cue
+ ./cue vet -d '#SecurityInsights' schema.cue ${file?}
+
+ # Assess the repository against OSPS Baseline Level 1. The scanner reads the files and settings of the default branch through the
+ # GitHub API, not the checkout. Failed controls are reported in the job summary and the results artifact and do not fail the job.
+ baseline:
+ runs-on: ubuntu-24.04
+
+ steps:
+ - name: Assess
+ uses: revanite-io/osps-baseline-action@v1.5.2
+ with:
+ owner: ${{github.repository_owner}}
+ repo: ${{github.event.repository.name}}
+ token: ${{github.token}}
+ catalog: osps-baseline-2026-08
+ fail-on-error: false
+
+ - name: Upload Results
+ if: always()
+ uses: actions/upload-artifact@v7
+ with:
+ name: osps-baseline
+ path: evaluation_results
+ if-no-files-found: ignore
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 751074d6a..d1a3be1d9 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -63,3 +63,6 @@ jobs:
fuzz:
uses: ./.github/workflows/test-fuzz.yml
+
+ security:
+ uses: ./.github/workflows/test-security.yml
diff --git a/doc/xml/release/2020s/2027/2.61.0.xml b/doc/xml/release/2020s/2027/2.61.0.xml
index 3b72d419b..e79d9dad5 100644
--- a/doc/xml/release/2020s/2027/2.61.0.xml
+++ b/doc/xml/release/2020s/2027/2.61.0.xml
@@ -27,4 +27,25 @@
</release-item>
</release-feature-list>
</release-core-list>
+
+ <release-doc-list>
+ <release-feature-list>
+ <release-item>
+ <commit subject="Add SECURITY.md."/>
+ <commit subject="Add OpenSSF Security Insights file and security CI checks.">
+ <github-pull-request id="2886"/>
+ </commit>
+
+ <release-item-contributor-list>
+ <release-item-contributor id="david.steele"/>
+ <release-item-reviewer id="douglas.j.hunley"/>
+ <release-item-reviewer id="stefan.fercot"/>
+ </release-item-contributor-list>
+
+ <p>Add a security policy.</p>
+
+ <p><file>SECURITY.md</file> describes how to report vulnerabilities privately using <proper>GitHub</proper> private vulnerability reporting or <id>security@pgbackrest.org</id>. The <proper>OpenSSF Security Insights</proper> file describes the project administrators, the release process, and the security tools run in CI and before release.</p>
+ </release-item>
+ </release-feature-list>
+ </release-doc-list>
</release>
diff --git a/test/lib/command/lint/lint.py b/test/lib/command/lint/lint.py
index b0aae7aee..49e7351c9 100644
--- a/test/lib/command/lint/lint.py
+++ b/test/lib/command/lint/lint.py
@@ -33,6 +33,7 @@ _FILE_SKIP_LIST = (
# everything under it. The check is excludes rather than includes so a file that is added is checked without anyone remembering to
# add it, which is the way lines got long in the first place.
_LINE_SKIP_LIST = (
+ ".github/security-insights.yml", # Security Insights metadata, which is prose written a value per line
"doc/manifest.xml", # Documentation variables, which are a value per line
"doc/resource/", # Images and caches rather than source
"doc/xml/", # Documentation, which the coding standards exempt
[parent: 00fa22131a3e]