diff --git a/.github/workflows/build_deploy.yml b/.github/workflows/build_deploy.yml index fb917ec..bbaf709 100644 --- a/.github/workflows/build_deploy.yml +++ b/.github/workflows/build_deploy.yml @@ -3,28 +3,23 @@ name: build_deploy on: push: branches: - - main + - main pull_request: repository_dispatch: workflow_dispatch: -# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages permissions: contents: read pages: write id-token: write -# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. -# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: false jobs: - build: runs-on: ubuntu-latest - # needs: [set_environment] steps: - name: Checkout uses: actions/checkout@v4 @@ -34,7 +29,7 @@ jobs: with: ruby-version: '3.3' bundler-cache: true - cache-version: 0 # Increment this number if you need to re-download cached gems + cache-version: 1 - name: Setup Pages id: pages @@ -49,15 +44,16 @@ jobs: - name: Test feed generation and validation run: bundle exec ruby test/test_feeds.rb - - name: Build with Jekyll - # Outputs to the './_site' directory by default - run: bundle exec jekyll build --verbose --trace --baseurl "${{ steps.pages.outputs.base_path }}" - env: - JEKYLL_ENV: production - JEKYLL_LOG_LEVEL: debug + - name: Build static site + run: | + rm -rf _site + mkdir -p _site + cp index.html _site/index.html + cp -R feeds _site/feeds - name: Verify published feed endpoints in _site run: | + test -f _site/index.html test -f _site/feeds/osv/index.json test -f _site/feeds/ghsa/index.json for pkg in rnp metanorma cla identity; do @@ -66,10 +62,8 @@ jobs: done - name: Upload artifact - # Automatically uploads an artifact from the './_site' directory by default uses: actions/upload-pages-artifact@v4 - # Deployment job deploy: environment: name: github-pages diff --git a/404.html b/404.html deleted file mode 100644 index c472b4e..0000000 --- a/404.html +++ /dev/null @@ -1,24 +0,0 @@ ---- -layout: default ---- - - - -
-

404

- -

Page not found :(

-

The requested page could not be found.

-
diff --git a/Gemfile b/Gemfile index 27b0618..3cdffbc 100644 --- a/Gemfile +++ b/Gemfile @@ -1,47 +1,7 @@ -source "https://rubygems.org" - -# Hello! This is where you manage which Jekyll version is used to run. -# When you want to use a different version, change it below, save the -# file and run `bundle install`. Run Jekyll with `bundle exec`, like so: -# -# bundle exec jekyll serve -# -# This will help ensure the proper Jekyll version is running. -# Happy Jekylling! -gem "jekyll" - -# This is the default theme for new Jekyll sites. You may change this to anything you like. - -# If you want to use GitHub Pages, remove the "gem "jekyll"" above and -# uncomment the line below. To upgrade, run `bundle update github-pages`. -# gem "github-pages", group: :jekyll_plugins -gem "jekyll-theme-rop" -# gem "jekyll-theme-open-project", path: "~/src/jekyll-theme-open-project" - -# If you have any plugins, put them here! -group :jekyll_plugins do - gem "jekyll-seo-tag" - gem "jekyll-sitemap" - gem "jekyll-data" - gem "jekyll-asciidoc" - gem "jekyll-redirect-from" - gem "git" - # gem "jekyll-theme-open-project-helpers" - gem "kramdown-parser-gfm" - gem "kramdown-syntax-coderay" -end - -# Windows does not include zoneinfo files, so bundle the tzinfo-data gem -gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby] +# frozen_string_literal: true -# Performance-booster for watching directories on Windows -gem "wdm", "~> 0.1.0" if Gem.win_platform? - -# For testing generated HTML pages and links -gem "rake" -gem "html-proofer" +source "https://rubygems.org" -# For OSV JSON schema validation of generated vulnerability feeds gem "json_schemer" - -gem "webrick", "~> 1.7" +gem "minitest" +gem "rake" diff --git a/Makefile b/Makefile index 5e1d551..bf0e8a6 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ SHELL := /bin/bash all: _site clean: - rm -rf _site _concepts feeds + rm -rf _site feeds feeds: | bundle bundle exec ruby scripts/generate_feeds.rb @@ -15,19 +15,13 @@ validate-feeds: | bundle test: feeds bundle exec ruby test/test_feeds.rb -_site: feeds | bundle - bundle exec jekyll build +_site: feeds + rm -rf _site + mkdir -p _site + cp index.html _site/index.html + cp -R feeds _site/feeds bundle: - bundle + bundle install -serve: feeds - bundle exec jekyll serve - -update-init: - git submodule update --init - -update-modules: - git submodule foreach git pull origin master - -.PHONY: bundle all open serve clean feeds validate-feeds test update-init update-modules +.PHONY: bundle all clean feeds validate-feeds test _site diff --git a/README.adoc b/README.adoc deleted file mode 100644 index 8090f0d..0000000 --- a/README.adoc +++ /dev/null @@ -1,24 +0,0 @@ -= DEPRECATED (was: Ribose CNA site) - -UPDATE: Site content has been merged into to -https://github.com/riboseinc/open.ribose.com[^] -(https://open.ribose.com/advisories[^]) - -== Introduction - -This is the Ribose CNA site located at https://cve.ribose.com - -The site is implemented as a https://jekyllrb.com[Jekyll] site and configured -in `_config.yml`. Site data is located in this directory and build gets created -in _site. - -== Development - -=== Getting started - -* Ensure you have reasonable Ruby version -* Run `bundle` from within site directory to install Ruby dependencies - -=== Serving site preview - -* Run `jekyll serve` from within site directory diff --git a/README.md b/README.md new file mode 100644 index 0000000..0eb547f --- /dev/null +++ b/README.md @@ -0,0 +1,27 @@ +# cve.ribose.com + +This repository publishes machine-readable Open Source Vulnerability (OSV) and GitHub Security Advisory (GHSA) JSON feeds for tracked Ribose packages on `https://cve.ribose.com`. + +## Sources + +- `_data/packages.yml`: Tracked Tier A package registry (`rnpgp/rnp`, `metanorma/metanorma`, `riboseinc/cla`, `ribosei/identity`) with PURLs and feed paths aligned with `ribosei/provenance-instance`. +- `_data/cves/*.json`: Authoritative CVE JSON 5.0 and 5.1 records. +- `_advisories/*.adoc`: Ribose security advisories linked to CVE records. + +## Endpoints + +- `/feeds/osv/index.json`: OSV feed index keyed by package and PURL. +- `/feeds/osv/.json`: Per-package OSV feed (`rnp`, `metanorma`, `cla`, `identity`). +- `/feeds/osv/.json`: Individual OSV-schema vulnerability records. +- `/feeds/ghsa/index.json`: GHSA feed index. +- `/feeds/ghsa/.json`: Per-package GHSA feed (`rnp`, `metanorma`, `cla`, `identity`). + +## Build and validation + +```sh +make feeds +make test +make _site +``` + +Every generated OSV record is validated against the vendored OSV JSON Schema (`schemas/osv-schema.json`) before publication. diff --git a/_config.yml b/_config.yml deleted file mode 100644 index d196fb9..0000000 --- a/_config.yml +++ /dev/null @@ -1,111 +0,0 @@ -title: Ribose CNA -description: CVE Naming Authority for Ribose products -# The above two are used by jekyll-seo-tag for things such as -# `` and `<meta>` tags, as well as elsewhere by the theme. - -permalink: /blog/:year-:month-:day-:title/ - -tagline: >- - Ribose CVE Naming Authority - -landing_priority: - - advisories - - feedback - -pitch: >- - CVEs issued by the Ribose CNA. - -author: "Ribose Inc." - -authors: - - name: Ribose Inc. - email: security.team@ribose.com - -contact_email: security.team@ribose.com - -theme: jekyll-theme-rop - -parent_hub: - git_repo_url: https://github.com/riboseinc/open.ribose.com - home_url: https://open.ribose.com/ - -includes_dir: '.' - -social: - links: - - https://twitter.com/RiboseUS - - https://github.com/riboseinc - -legal: - name: Ribose Group Inc. - tos_link: https://www.ribose.com/tos - privacy_policy_link: https://www.ribose.com/privacy - -home_calls_to_action: - - { url: "/advisories/", title: "Advisories" } - -collections: - projects: - output: false - software: - output: false - specs: - output: false - advisories: - output: true - permalink: /advisories/:slug/ - posts: - output: false - permalink: /blog/:year-:month-:day-:title/ - pages: - output: true - permalink: /:name/ - -defaults: - # Theme defaults. - # MUST be duplicated from theme’s _config.yml - # (does not get inherited, unlike the collections hash) - - scope: - path: "" - values: - layout: default - # - scope: - # path: _posts - # type: posts - # values: - # layout: post - - scope: - path: _advisories - type: advisories - values: - layout: post - - scope: - path: _software - type: software - values: - layout: product - - scope: - path: _specs - type: specs - values: - layout: spec - -plugins: - - jekyll-seo-tag - - jekyll-sitemap - -url: https://cve.ribose.com - -github_repo_url: https://github.com/riboseinc/ - -exclude: - - .git - - parent-hub/.git - - Gemfile* - - Makefile - - Rakefile - - README.adoc - - schemas - - scripts - - test - - vendor # for deployment diff --git a/_layouts/advisory-index.html b/_layouts/advisory-index.html deleted file mode 100644 index 404ca85..0000000 --- a/_layouts/advisory-index.html +++ /dev/null @@ -1,16 +0,0 @@ ---- -layout: default ---- -{% assign advisories = site.advisories | reverse %} - -<section class="items"> - {% if site.is_hub %} - {% include assets/symbol.svg %} - {% endif %} - - {% for item in advisories %} - {% assign can_be_featured = false %} - - {% include post-card.html post=item can_be_featured=can_be_featured %} - {% endfor %} -</section> diff --git a/_layouts/cve.json b/_layouts/cve.json deleted file mode 100644 index 895c4bc..0000000 --- a/_layouts/cve.json +++ /dev/null @@ -1,5 +0,0 @@ ---- -layout: null ---- -{% capture cve_id %}{{ page.path | replace: ".json", "" | replace: "cves/", ""}}{% endcapture %} -{{ site.data.cves[cve_id] | jsonify }} diff --git a/_layouts/page_security.html b/_layouts/page_security.html deleted file mode 100644 index 0fd4961..0000000 --- a/_layouts/page_security.html +++ /dev/null @@ -1,10 +0,0 @@ ---- -layout: default ---- - <div class="body__content"> - <section class="bloc bloc--white"> - <div class="inner"> -{{ content }} - </div> - </section> - </div> diff --git a/_layouts/redirect.html b/_layouts/redirect.html deleted file mode 100644 index a708b65..0000000 --- a/_layouts/redirect.html +++ /dev/null @@ -1,14 +0,0 @@ ---- -layout: null ---- -<!DOCTYPE html> -<html lang="en"> -<head> - <meta http-equiv="refresh" content="0; url={{ page.redirect_to }}" /> - <link rel="canonical" href="{{ page.redirect_to }}" /> - <title>Redirecting... - - - Redirecting to {{ page.redirect_to }}. - - diff --git a/_pages/advisories.html b/_pages/advisories.html deleted file mode 100644 index 2a846b2..0000000 --- a/_pages/advisories.html +++ /dev/null @@ -1,7 +0,0 @@ ---- -layout: redirect -redirect_to: https://open.ribose.com/advisories/ -title: Advisories -description: Ribose security advisories. -hero_include: index-page-hero.html ---- diff --git a/_pages/cve-policy.adoc b/_pages/cve-policy.adoc deleted file mode 100644 index 156a001..0000000 --- a/_pages/cve-policy.adoc +++ /dev/null @@ -1,57 +0,0 @@ ---- -layout: redirect -redirect_to: https://open.ribose.com/cve-policy/ -title: Ribose CVE policy -permalink: /cve-policy/ -bodyClass: page ---- - -== Ribose CVE policy - -=== Report A Vulnerability - -If you have discovered a security vulnerability, please report it to us by using our security vulnerability reporting form which you can find below. We believe in responsible disclosure and kindly ask to you to allow us a period of time to investigate and patch the vulnerability before you publish details. Verifying and testing of the patch can take from several hours to several days where we perform extensive testing to guarantee the stability and operation of our service. - -We actively work together with security researchers and we also participate in the bug bounty program of https://bugcrowd.com[Bugcrowd]. We will always respond to security reports: the security of our users and their data are of greatest importance to us. - -Please read the following ** Responsible Security Disclosure program** description before you begin with your security testing: - -=== Responsible Security Disclosure Program - -To be considered, submitting vulnerabilities must adhere to the following rules: - -* We need to be able to verify the reported vulnerability, and the report itself needs to be provided with as much information as possible such as what browser and platform used. It is greatly appreciated if you include a video; -* Distributed Denial-of-Service (DDoS) attacks and capacity testing are not allowed; -* Automated scanners are not allowed due to the high amount of false positives generated; -* Your testing should not negatively impact another user's Ribose experience. For example, do not send messages to other Ribose users containing cross-site scripting (XSS) without their consent; -* You must be the first researcher to report the issue, the earliest sent report is considered the first report; -* The vulnerability needs to be an actual bug. Suggestions and ideas for improvements in our security are important to us, these however do not qualify as a security vulnerability. - -Examples of potential valid issues: - -* Authentication flaws; -* Cross-site scripting (XSS); -* Cross-site request forgery (CSRF/XSRF); -* Mixed-content scripts; -* Server-side code execution; -* SQL injection; -* Directory traversal; -* Descriptive error messages (e.g. stack traces, application or server errors). - -Examples of invalid issues: - -* reCAPTCHA; -* Output which is copy pasted from automated scanners without an accompanying proof of concept; -* Information leaks such as IP addresses; -* Login page brute force or account lockout not enforced; -* Findings derived from SSL settings (e.g. BREACH attack, insecure SSL ciphers enabled); -* Clickjacking and issues only exploitable through clickjacking; -* CSRF on forms that are available to anonymous users (e.g. the contact form); -* Logout Cross-Site Request Forgery (logout CSRF). - -Our security team has the final say in whether a report qualifies as a security vulnerability or a suggestion. - -Vulnerabilities can be reported for any Ribose subdomain: `*.ribose.com`. -However, security vulnerabilities in third-party websites or services operating a ribose.com subdomain are explicitly excluded from the Ribose responsible disclosure program. - -Finally, if your report is accepted as a security vulnerability, you will be rewarded with a **swag kit**. diff --git a/_pages/feedback.adoc b/_pages/feedback.adoc deleted file mode 100644 index 685f57e..0000000 --- a/_pages/feedback.adoc +++ /dev/null @@ -1,35 +0,0 @@ ---- -layout: redirect -redirect_to: https://open.ribose.com/feedback/ -title: Feedback and security reports -permalink: /feedback/ -bodyClass: page ---- -== Feedback and security reports - -We love to hear from you! - -=== General feedback and bugs on Ribose open source projects - -For general issues or bugs on our open source projects, please enter them at -their respective GitHub public issue tracker: - -RNP:: https://github.com/rnpgp/rnp/issues - -Metanorma:: https://github.com/metanorma/metanorma/issues - -NOTE: The GitHub issue trackers are publicly viewable. Please report security -issues via dedicated channels. - -=== Security reporting - -For reporting security vulnerabilities or security bugs, or bugs with sensitive -content, please report them via the following link: - -* https://www.ribose.com/security/feedback[Ribose Security Feedback form] - -We will respond to your report within 1 working day. -Your response will be kept confidential unless instructed otherwise. - -NOTE: We may have to contact you via separate channels -in order to verify the report. diff --git a/_pages/openpgp_keys.adoc b/_pages/openpgp_keys.adoc deleted file mode 100644 index fb4cba5..0000000 --- a/_pages/openpgp_keys.adoc +++ /dev/null @@ -1,54 +0,0 @@ ---- -layout: redirect -redirect_to: https://open.ribose.com/openpgp_keys/ -title: OpenPGP keys -permalink: /openpgp_keys/ -bodyClass: page -fingerprint: 31AF5A24D861EFCB7CB79A1924900CE0AEFB5417 -keyfile: 31AF5A24D861EFCB7CB79A1924900CE0AEFB5417-50DA59D5B9134FA2DB1EB20CFB829AB5D0FE017F.asc -userid: RNPGP Release Signing Key ---- -:page-liquid: - - -== OpenPGP keys - -The following key is used to sign source code packages of -https://github.com/rnpgp/rnp/releases[RNP releases^]. - -=== Direct download link - -link:{{ page.keyfile }}[Click here.^] - -=== Public key - -[source,openpgp] ----- -include::openpgp_keys/{{ page.keyfile }}[] ----- - - -=== Key ID - -[source] ----- -{{ page.fingerprint | slice: -16, 16 }} ----- - - -=== Fingerprint - -[source] ----- -{{ page.fingerprint }} ----- - - -=== User ID - - {{ page.userid }} - - -=== Previous keys - -- link:BEDBA05C1E6EE2DFB4BA72E1EC5D520AD90A7262-A845A5BD622556E89D7763B5EB06D1696BEC4C90.asc[BEDBA05C1E6EE2DFB4BA72E1EC5D520AD90A7262^] diff --git a/_sass/style.scss b/_sass/style.scss deleted file mode 100644 index 77bc4de..0000000 --- a/_sass/style.scss +++ /dev/null @@ -1,67 +0,0 @@ -html, body { - height: 100%; -} - -$bigscreenBreakpoint: 1000px; -$sidePadding: 2rem; - -.stack { - padding: 0 $sidePadding; - - @media screen and (min-width: $bigscreenBreakpoint) { - box-sizing: border-box; - width: $bigscreenBreakpoint; - margin: 0 auto; - } -} - -body { - padding: 0; - font-family: sans-serif; - line-height: 1.4; - display: flex; - flex-flow: column nowrap; - - > header { - .contents { - @extend .stack; - - flex-shrink: 0; - display: flex; - flex-flow: row nowrap; - - .site-title { - font-size: 200%; - color: grey; - } - } - } - - > main { - flex: 1; - display: flex; - flex-flow: column nowrap; - - > section { - display: flex; - flex-flow: column nowrap; - - > header, > .contents { - @extend .stack; - } - > header h2 { - font-weight: normal; - margin: 0; - margin-top: 1rem; - } - } - } - - > footer { - flex-shrink: 0; - } -} - -.screenshot { - width: 100%; -} \ No newline at end of file diff --git a/assets/css/style.scss b/assets/css/style.scss deleted file mode 100644 index 5162049..0000000 --- a/assets/css/style.scss +++ /dev/null @@ -1,63 +0,0 @@ ---- ---- - -$primary-color: #1A7BEC; -$accent-color: #00dfb7; -$main-background: linear-gradient(135deg, $primary-color 0%, $accent-color 100%); - -@import 'jekyll-theme-rop'; - -.site-logo svg { - path, circle { - fill: white; - } -} - -body { - > .underlay { - > header { - .site-logo { - .symbol svg { - height: 27px; - } - .title svg { - position: relative; - top: 3px; - left: 3px; - } - } - > nav { - font-size: 16px; - > * { - font-weight: 700; - margin-right: 2px; - text-transform: lowercase; - } - .active { - &:link, &:visited, &:hover { - border-radius: 16px; - padding-left: 1em; - padding-right: 1em; - background-color: white; - color: $primary-dark-color; - } - } - } - } - } -} - -body.site--project.layout--home { - .custom-intro { - background: rgba(0, 0, 0, 0.4); - } - > .underlay.header { - > .hero > .text { - > .cta .button { - border-radius: 25px; - padding-left: 32px; - padding-right: 32px; - } - } - } -} diff --git a/assets/favicon-192x192.png b/assets/favicon-192x192.png deleted file mode 100644 index e3dcbde..0000000 Binary files a/assets/favicon-192x192.png and /dev/null differ diff --git a/assets/favicon.png b/assets/favicon.png deleted file mode 100644 index 1dea51b..0000000 Binary files a/assets/favicon.png and /dev/null differ diff --git a/assets/images/geolexica.png b/assets/images/geolexica.png deleted file mode 100644 index 8c51730..0000000 Binary files a/assets/images/geolexica.png and /dev/null differ diff --git a/assets/symbol.svg b/assets/symbol.svg deleted file mode 100644 index bee5b71..0000000 --- a/assets/symbol.svg +++ /dev/null @@ -1 +0,0 @@ -symbol \ No newline at end of file diff --git a/cves/CVE-2021-33589.json b/cves/CVE-2021-33589.json deleted file mode 100644 index 9288d2e..0000000 --- a/cves/CVE-2021-33589.json +++ /dev/null @@ -1,4 +0,0 @@ ---- -layout: redirect -redirect_to: https://open.ribose.com/cves/CVE-2021-33589.json ---- diff --git a/cves/CVE-2023-29479.json b/cves/CVE-2023-29479.json deleted file mode 100644 index 20e7e21..0000000 --- a/cves/CVE-2023-29479.json +++ /dev/null @@ -1,4 +0,0 @@ ---- -layout: redirect -redirect_to: https://open.ribose.com/cves/CVE-2023-29479.json ---- diff --git a/cves/CVE-2023-29480.json b/cves/CVE-2023-29480.json deleted file mode 100644 index 43c5b78..0000000 --- a/cves/CVE-2023-29480.json +++ /dev/null @@ -1,4 +0,0 @@ ---- -layout: redirect -redirect_to: https://open.ribose.com/cves/CVE-2023-29480.json ---- diff --git a/cves/CVE-2025-13470.json b/cves/CVE-2025-13470.json deleted file mode 100644 index f5f1c0c..0000000 --- a/cves/CVE-2025-13470.json +++ /dev/null @@ -1,4 +0,0 @@ ---- -layout: redirect -redirect_to: https://open.ribose.com/cves/CVE-2025-13470.json ---- diff --git a/index.adoc b/index.adoc deleted file mode 100644 index de184d2..0000000 --- a/index.adoc +++ /dev/null @@ -1,19 +0,0 @@ ---- -layout: home -hero_include: home-hero.html ---- - -= Ribose CVE Naming Authority - -Ribose publishes security advisories and machine-readable vulnerability feeds for tracked Ribose software packages. - -== Machine-readable vulnerability feeds - -Per-package Open Source Vulnerability (OSV) and GitHub Security Advisory (GHSA) JSON feeds are published for Tier A packages: - -* link:/feeds/osv/index.json[OSV feed index] -* link:/feeds/osv/rnp.json[RNP (`rnpgp/rnp`) OSV feed] -* link:/feeds/osv/metanorma.json[Metanorma (`metanorma/metanorma`) OSV feed] -* link:/feeds/osv/cla.json[CLA (`riboseinc/cla`) OSV feed] -* link:/feeds/osv/identity.json[Identity (`ribosei/identity`) OSV feed] -* link:/feeds/ghsa/index.json[GHSA feed index] diff --git a/index.html b/index.html new file mode 100644 index 0000000..dbcaca5 --- /dev/null +++ b/index.html @@ -0,0 +1,66 @@ + + + + + + Ribose Vulnerability Feeds (cve.ribose.com) + + + +

Ribose Vulnerability Feeds

+

This site publishes machine-readable Open Source Vulnerability (OSV) and GitHub Security Advisory (GHSA) JSON feeds for tracked Ribose software packages.

+ +

Index endpoints

+ + +

Tier A per-package OSV feeds

+ + +

Tier A per-package GHSA feeds

+ + + diff --git a/legal.html b/legal.html deleted file mode 100644 index 701157e..0000000 --- a/legal.html +++ /dev/null @@ -1,19 +0,0 @@ - - Copyright © {{ site.time | date: '%Y' }} {{ site.legal.name }} — - All rights reserved. - - -{% if site.legal.privacy_policy_link or site.legal.tos_link %} - -{% endif %} diff --git a/parent-hub/assets/symbol.svg b/parent-hub/assets/symbol.svg deleted file mode 100644 index 2503298..0000000 --- a/parent-hub/assets/symbol.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/parent-hub/title.html b/parent-hub/title.html deleted file mode 100644 index e69de29..0000000