Skip to content

Commit 90d788a

Browse files
RUST-1924 Generate and upload SSDLC compliance report (#1133)
1 parent b9915a4 commit 90d788a

File tree

3 files changed

+62
-1
lines changed

3 files changed

+62
-1
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
set -o errexit
4+
set -o xtrace
5+
6+
REPORT_FILE=".evergreen/${CRATE_VERSION}-ssdlc-compliance-report.md"
7+
SED_REPLACE="s/RELEASE_VERSION/${CRATE_VERSION}/g"
8+
9+
sed ${SED_REPLACE} .evergreen/ssdlc-compliance-report-template.md > ${REPORT_FILE}

.evergreen/releases.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
#
3030
# Make sure to remove the changes from 1 and 2 before merging!
3131

32-
3332
exec_timeout_secs: 3600
3433

3534
functions:
@@ -176,6 +175,25 @@ functions:
176175
content_type: text/plain
177176
display_name: signature-
178177

178+
"create and upload SSDLC compliance report":
179+
- command: subprocess.exec
180+
params:
181+
working_dir: "src"
182+
include_expansions_in_env:
183+
- CRATE_VERSION
184+
binary: bash
185+
args:
186+
- .evergreen/create-ssdlc-compliance-report.sh
187+
- command: s3.put
188+
params:
189+
aws_key: ${S3_UPLOAD_AWS_KEY}
190+
aws_secret: ${S3_UPLOAD_AWS_SECRET}
191+
local_file: src/.evergreen/${CRATE_VERSION}-ssdlc-compliance-report.md
192+
remote_file: rust-driver/${TEST_PREFIX}${CRATE_VERSION}-ssdlc-compliance-report.md
193+
bucket: cdn-origin-rust-driver
194+
permissions: private
195+
content_type: text/markdown
196+
179197
tasks:
180198
- name: "publish-release"
181199
commands:
@@ -187,6 +205,7 @@ tasks:
187205
- func: "publish papertrail"
188206
- func: "sign release"
189207
- func: "save signature"
208+
- func: "create and upload SSDLC compliance report"
190209

191210
axes:
192211
- id: "os"
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# MongoDB Rust Driver SSDLC Compliance Report
2+
3+
### Release Version: RELEASE_VERSION
4+
5+
**Release Creator**
6+
The creator of this release can be determined by visiting
7+
https://github.com/mongodb/mongo-rust-driver/releases/tag/vRELEASE_VERSION.
8+
9+
**Process Document**
10+
TODO RUST-1918 Link to "How We Develop Software" document
11+
12+
**Tool used to track third party vulnerabilities**
13+
N/A; the Rust driver does not bundle third-party dependencies
14+
15+
**Third-Party Dependency Information**
16+
N/A; the Rust driver does not bundle third-party dependencies
17+
18+
**Static Analysis Findings**
19+
To request a copy of the static analysis report, please contact
20+
the MongoDB Rust driver team.
21+
22+
**Signature Information**
23+
The release signature for this version can be found by visiting
24+
https://downloads.mongodb.org/rust-driver/mongodb-RELEASE_VERSION.sig.
25+
26+
**Security Testing Report**
27+
TODO RUST-1955 Link to security testing report
28+
29+
**Security Assessment Report**
30+
N/A; non-goal for client libraries
31+
32+
**Known Vulnerabilities**
33+
None

0 commit comments

Comments
 (0)