Skip to content

Commit d285f07

Browse files
author
jon gadsden
committed
release version 2.2.0
1 parent 6d11a5c commit d285f07

File tree

9 files changed

+61
-45
lines changed

9 files changed

+61
-45
lines changed

README.md

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,24 @@ and this repository has been migrated from
4646
Mike Goodwin's [original](https://github.com/mike-goodwin/owasp-threat-dragon)
4747
which has the issues and pull requests from October 2015 up to June 2020.
4848

49-
Threat Dragon is [primarily a web application](https://github.com/OWASP/threat-dragon/releases),
50-
with threat model files stored in GitHub or Bitbucket. Over time other storage methods will become available.
49+
Threat Dragon is [primarily a web application](https://github.com/OWASP/threat-dragon/releases).
50+
The web application can store threat model files on the local filesystem or access can be configured for :
5151

52-
There are [desktop versions](https://github.com/OWASP/threat-dragon/releases) of Threat Dragon
53-
which store the threat model files on the local filesystem rather than in a repository.
52+
- GitHub
53+
- Bitbucket
54+
- GitLab
55+
- Github Enterprise
56+
57+
The [desktop versions](https://github.com/OWASP/threat-dragon/releases) of Threat Dragon
58+
stores the threat model files on the local filesystem and do not access external repositories.
5459
You can [download installers](https://github.com/OWASP/threat-dragon/releases) for Windows, MacOS and Linux.
5560

5661
End user help is available for both the latest [version 2.x](https://owasp.org/www-project-threat-dragon/docs-2/)
5762
and the previous [version 1.x](https://owasp.org/www-project-threat-dragon/docs-1/).
5863

5964
### Version 1.x maintenance mode
6065

61-
Threat Dragon was originally written using AngularJS version 1.x, and this version of Angular has reached end of life.
66+
Threat Dragon was originally written using AngularJS version 1.x, but this version of Angular reached end of life.
6267
This means that versions 1.x of Threat Dragon are no longer actively maintained
6368
and versions 2.x have been re-written to use Vue.js.
6469

@@ -83,10 +88,10 @@ The web application variant of Threat Dragon requires some environment variables
8388
follow [the documentation](https://owasp.org/www-project-threat-dragon/docs-2/install-environment/)
8489
on how to set these variables.
8590

86-
The Threat Dragon web application uses GitHub or Bitbucket to store threat models,
87-
so you need to go to your GitHub or Bitbucket account and register it as a GitHub application.
88-
There is a [step by step guide](https://owasp.org/www-project-threat-dragon/docs-2/install-environment/)
89-
on how to do this. Github Enterprise is also supported.
91+
If access to external repositories is required, such as GitHub / Bitbucket / GitLab,
92+
then you need to go to your to the repository account and register it as a GitHub application.
93+
There are [step by step guides](https://owasp.org/www-project-threat-dragon/docs-2/install-environment/)
94+
on how to do this.
9095

9196
If running the web application locally then the front-end to server communication will
9297
probably need to be HTTP rather than HTTPS.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "threat-dragon",
3-
"version": "2.1.3",
3+
"version": "2.2.0",
44
"private": true,
55
"scripts": {
66
"audit": "npm-run-all -c audit:server audit:site",

release-process.md

Lines changed: 36 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4,57 +4,68 @@ The steps used during the release process
44

55
1. `git clone [email protected]:OWASP/threat-dragon.git`
66
2. `cd threat-dragon`
7-
3. update version eg `"version": "2.1.3",`, in `package.json`, `td.site/package.json` and `td.server/package.json`
7+
3. update version eg `"version": "2.2.0",`, in `package.json`, `td.site/package.json` and `td.server/package.json`
88
4. update `buildState` in `td.vue/package.json` away from `-demo`, usually ''
9-
5. `npm install`
9+
5. update package lock files: `npm install`
1010
6. `npm run build`
1111
7. `npm test`
1212
8. `npm run test:vue`
1313
9. `git add --all; git status`
14-
10. `git commit -m"release version 2.1.3"`
14+
10. `git commit -m"release version 2.2.0"`
1515
11. `git push`
16-
12. tag the release `git tag v2.1.3`
17-
13. `git push origin v2.1.3`
16+
12. tag the release `git tag v2.2.0`
17+
13. `git push origin v2.2.0`
1818

1919
The github release workflow then creates the draft release and the install images
2020

2121
### Publish docker image
2222

2323
1. once tagged, the github workflow pushes the docker image to docker hub
24-
2. check using `docker pull threatdragon/owasp-threat-dragon:v2.1.3`
24+
2. check using `docker pull threatdragon/owasp-threat-dragon:v2.2.0`
2525
3. on MacOS M1 this command may need to be used:
26-
`docker pull --platform linux/x86_64 threatdragon/owasp-threat-dragon:v2.1.3`
26+
`docker pull --platform linux/x86_64 threatdragon/owasp-threat-dragon:v2.2.0`
2727
4. Test using the command to run a detached container:
28-
`docker run -d -p 8080:3000 -v $(pwd)/.env:/app/.env threatdragon/owasp-threat-dragon:v2.1.3`
28+
`docker run -d -p 8080:3000 -v $(pwd)/.env:/app/.env threatdragon/owasp-threat-dragon:v2.2.0`
2929
5. Ideally test this release on Windows, linux and MacOS using `http://localhost:8080/#/`
3030

3131
If the image tests correctly, promote the docker image
32-
from dockerhub `threatdragon/` to dockerhub `OWASP/threat-dragon/v2.1.3`.
32+
from dockerhub `threatdragon/` to dockerhub `OWASP/threat-dragon/v2.2.0`.
3333

3434
There is _no going back_ on this last step, so it is deliberately left as a manual task:
3535

3636
```text
37-
docker pull --platform linux/x86_64 threatdragon/owasp-threat-dragon:v2.1.3
38-
docker tag threatdragon/owasp-threat-dragon:v2.1.3 owasp/threat-dragon:v2.1.3
39-
docker push owasp/threat-dragon:v2.1.3
40-
docker pull owasp/threat-dragon:v2.1.3
37+
docker pull --platform linux/x86_64 threatdragon/owasp-threat-dragon:v2.2.0
38+
docker tag threatdragon/owasp-threat-dragon:v2.2.0 owasp/threat-dragon:v2.2.0
39+
docker push owasp/threat-dragon:v2.2.0
40+
docker pull owasp/threat-dragon:v2.2.0
4141
```
4242

4343
ensure the tag now exists within the OWASP Docker hub: `https://hub.docker.com/r/owasp/threat-dragon/tags`
4444

4545
### Check desktop downloads
4646

47-
1. Download desktop installers for Linux, MacOS and Windows
48-
2. Download the `latest*.yml` auto-update checksum files
49-
3. Create SHA512 `checksum*.yml` files:
50-
3.1 `grep sha512 latest-linux.yml | head -n 2 | tail -n 1 | cut -d ":" -f 2 | base64 -d | hexdump -ve '1/1 "%.2x"' >> checksum-linux.yml`
51-
3.2 `grep sha512 latest-mac.yml | head -n 2 | tail -n 1 | cut -d ":" -f 2 | base64 -d | hexdump -ve '1/1 "%.2x"' >> checksum-mac.yml`
52-
3.3 `grep sha512 latest.yml | head -n 2 | tail -n 1 | cut -d ":" -f 2 | base64 -d | hexdump -ve '1/1 "%.2x"' >> checksum.yml`
53-
4. Confirm SHA512 with:
54-
4.1 `echo "$(cat checksum-linux.yml) Threat-Dragon-ng-2.1.3.AppImage" | sha512sum --check`
55-
4.2 `echo "$(cat checksum-mac.yml) Threat-Dragon-ng-2.1.3.dmg" | sha512sum --check`
56-
4.3 `echo "$(cat checksum.yml) Threat-Dragon-ng-Setup-2.1.3.exe" | sha512sum --check`
57-
5. upload `checksum*.yml` files
47+
- Download desktop installers for Linux, MacOS and Windows
48+
- Download the `latest*.yml` auto-update checksum files
49+
- Create SHA512 `checksum*.yml` files:
50+
51+
```text
52+
grep sha512 latest-linux.yml | head -n 2 | tail -n 1 | cut -d ":" -f 2 | base64 -d | \
53+
hexdump -ve '1/1 "%.2x"' >> checksum-linux.yml
54+
grep sha512 latest-mac.yml | head -n 2 | tail -n 1 | cut -d ":" -f 2 | base64 -d | \
55+
hexdump -ve '1/1 "%.2x"' >> checksum-mac.yml
56+
grep sha512 latest.yml | head -n 2 | tail -n 1 | cut -d ":" -f 2 | base64 -d | \
57+
hexdump -ve '1/1 "%.2x"' >> checksum.yml
58+
```
59+
60+
- Confirm SHA512 with:
61+
62+
```text
63+
echo "$(cat checksum-linux.yml) Threat-Dragon-ng-2.2.0.AppImage" | sha512sum --check
64+
echo "$(cat checksum-mac.yml) Threat-Dragon-ng-2.2.0.dmg" | sha512sum --check
65+
echo "$(cat checksum.yml) Threat-Dragon-ng-Setup-2.2.0.exe" | sha512sum --check
66+
```
67+
68+
- upload `checksum*.yml` files
5869

5970
### Check demo site
6071

@@ -71,7 +82,7 @@ Edit the 'What's Changed' to filter out any chores.
7182

7283
Then update the release notes for the draft in the [Threat Dragon release area][area]
7384
using the release notes using markdown provided by `.release-note-template.md` as a template,
74-
making sure to revise `2.x.x` to the correct version number such as `2.1.3`
85+
making sure to revise `2.x.x` to the correct version number such as `2.2.0`
7586

7687
Promote the release from draft to public once everything is in place
7788

td.server/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

td.server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "threat-dragon-server",
3-
"version": "2.1.3",
3+
"version": "2.2.0",
44
"private": true,
55
"scripts": {
66
"audit": "npm audit",

td.vue/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

td.vue/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "threat-dragon",
33
"productName": "Threat Dragon",
4-
"version": "2.1.3",
4+
"version": "2.2.0",
55
"private": true,
66
"scripts": {
77
"audit": "npm audit",
@@ -38,7 +38,7 @@
3838
},
3939
"license": "Apache-2.0",
4040
"homepage": "https://owasp.org/www-project-threat-dragon/",
41-
"buildState": "-latest",
41+
"buildState": "",
4242
"repository": {
4343
"type": "git",
4444
"url": "git://github.com/OWASP/threat-dragon.git"

td.vue/src/desktop/desktop.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ app.on('ready', async () => {
127127
createWindow();
128128

129129
// check for updates from github releases site
130-
autoUpdater.autoInstallOnAppQuit = true
130+
autoUpdater.autoInstallOnAppQuit = true;
131131
// require user to agree to download
132132
autoUpdater.autoDownload = false;
133133
autoUpdater.checkForUpdatesAndNotify();

0 commit comments

Comments
 (0)