Skip to content

Commit

Permalink
Add CVE page (#3659)
Browse files Browse the repository at this point in the history
Co-authored-by: Severin Neumann <[email protected]>
Co-authored-by: Phillip Carter <[email protected]>
  • Loading branch information
3 people authored Dec 10, 2023
1 parent 299ad7b commit 95e83ad
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 0 deletions.
4 changes: 4 additions & 0 deletions content/en/docs/security/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: Security
weight: 150
---
74 changes: 74 additions & 0 deletions content/en/docs/security/cve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
---
title: Common Vulnerabilities and Exposures
weight: 102
---

This is a list of reported Common Vulnerabilities and Exposures (CVEs) across
all repositories in the
[OpenTelemetry organization on GitHub](https://github.com/open-telemetry/). The
raw data is stored in the
[sig-security](https://github.com/open-telemetry/sig-security) repository, and
it is refreshed daily.

<table id="cve-table">
<thead>
<tr>
<th>CVE ID</th>
<th>Issue Summary</th>
<th>Severity</th>
<th>Repository</th>
</tr>
</thead>
<tbody>
</tbody>
</table>

<script id="main-script">
'use strict';
(function() {
function fetchAndRender() {
fetchData()
.then(renderTable);
}

function fetchData() {
var url = 'https://raw.githubusercontent.com/open-telemetry/sig-security/data-source/published_output.json';
return fetch(url)
.then(function(response) {
return response.json();
});
}

function renderTable(data) {
var table = document.getElementById('cve-table').querySelector('tbody');

data.sort((a, b) => new Date(b.created_at) - new Date(a.created_at));

data.forEach(item => {
var row = table.insertRow();

const cell1 = row.insertCell(0);
const link = document.createElement('a');
link.href = item['html_url'];
link.target = '_blank';
link.textContent = item['cve_id'];
cell1.appendChild(link);

const cell2 = row.insertCell(1);
cell2.textContent = item['summary'];
const cell3 = row.insertCell(2);
cell3.textContent = item['severity'];

const cell4 = row.insertCell(3);
// cell4.textContent = item['repo'];
const link2 = document.createElement('a');
link2.href = 'https://www.github.com/open-telemetry/' + item['repo'] + '/security/advisories';
link2.target = '_blank';
link2.textContent = item['repo'];
cell4.appendChild(link2);
});
}

fetchAndRender();
})();
</script>
8 changes: 8 additions & 0 deletions static/refcache.json
Original file line number Diff line number Diff line change
Expand Up @@ -2551,6 +2551,10 @@
"StatusCode": 200,
"LastSeen": "2023-06-30T08:31:22.656334-04:00"
},
"https://github.com/open-telemetry/": {
"StatusCode": 200,
"LastSeen": "2023-12-08T15:19:55.887939-08:00"
},
"https://github.com/open-telemetry/community": {
"StatusCode": 200,
"LastSeen": "2023-06-30T09:28:03.502113-04:00"
Expand Down Expand Up @@ -3723,6 +3727,10 @@
"StatusCode": 200,
"LastSeen": "2023-11-03T20:22:42.689401141Z"
},
"https://github.com/open-telemetry/sig-security": {
"StatusCode": 200,
"LastSeen": "2023-12-07T16:14:09.891942-08:00"
},
"https://github.com/opentracing": {
"StatusCode": 200,
"LastSeen": "2023-06-30T08:40:39.909083-04:00"
Expand Down

0 comments on commit 95e83ad

Please sign in to comment.