Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from 42Crunch:master #1

Open
wants to merge 819 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
819 commits
Select commit Hold shift + click to select a range
2377711
Rename 'Test inputs' to 'Unset variables' and add a tooltip
ak1394 May 8, 2024
983eb95
Update scanconf parser to support hardcoded environment variables
ak1394 May 9, 2024
ae2b101
Add support for environment constants (hardcoded values) to the scan …
ak1394 May 9, 2024
93b28cf
Tweak column width in the Environment components
ak1394 May 9, 2024
a08df75
Tweak margings in Environment component
ak1394 May 9, 2024
346f9bf
Mock run global blocks on the request pages
ak1394 May 9, 2024
9943472
Increase number of items displayed in the variables name picker
ak1394 May 9, 2024
9cb40bd
Move global block failure indicators
ak1394 May 9, 2024
30976ad
Make 'Secrets' a first tab in the environment
ak1394 May 9, 2024
29a12c6
Catch exceptions when trying to clean temp directory
ak1394 May 9, 2024
f59009b
Add more checks when loading audit report from file
ak1394 May 9, 2024
254728d
Add description to the Environment tab
ak1394 May 10, 2024
e5edffe
Tweak styling
ak1394 May 10, 2024
7386cda
Add scan docs
ak1394 May 12, 2024
f1b7490
Tweak button label
ak1394 May 13, 2024
a41549b
Tweak navigation tabs layout
ak1394 May 13, 2024
eb9c613
Add TOC to Help section
ak1394 May 13, 2024
dfbc9dc
Update Scan's help toc and contents
ak1394 May 13, 2024
f69e6b2
Add link to video tutorial
ak1394 May 13, 2024
42905c1
Add descriptions to credential TTI/TTL fields
ak1394 May 13, 2024
c7a035b
Update documentation
ak1394 May 13, 2024
9e0c936
Rename Credential Values to Identities
ak1394 May 14, 2024
2fc422d
Tweak tooltips and temporary disable Constants
ak1394 May 14, 2024
dd1eb36
In scan ui rename credentials to security schemes and identities to c…
ak1394 May 14, 2024
f173056
Add general settings section to the scan settings
ak1394 May 14, 2024
259cfcc
Add description to the new fat select
ak1394 May 14, 2024
4f35fe9
quick review by Anthony
anthony-42crunch May 15, 2024
3525cb9
Merge pull request #274 from 42Crunch/review
ak1394 May 15, 2024
467f248
Tweak wording in the scan docs
ak1394 May 15, 2024
aa78cb0
Change 'api conformance scan' to 'api scan'
ak1394 May 15, 2024
0a2d68a
Update package versions to publish scanconf package
ak1394 May 15, 2024
5938ec7
Rename API Scan back to API Conformance Scan
ak1394 May 15, 2024
0baa3d1
Add section to scan docs to describe handling of openapi changes
ak1394 May 16, 2024
cdf4e28
Fix wording
ak1394 May 17, 2024
e55c2ff
Update lock files
ak1394 May 17, 2024
ae91a6c
Bump version number
ak1394 May 17, 2024
908687f
Replace identity with credential
ak1394 May 18, 2024
cebf53e
Remove tooltip from variable assignments tab
ak1394 May 18, 2024
d48ef44
Fix icon styling
ak1394 May 18, 2024
d14efa4
Fix title in scan docs
ak1394 May 18, 2024
716e2cf
Change error messages for global before/after block failures
ak1394 May 20, 2024
4f77ca5
Tweak description
ak1394 May 20, 2024
edd6b76
Remove free users FAQ link from Settings
ak1394 May 20, 2024
63401db
Fix test descriptions in scan
ak1394 May 21, 2024
b003a53
Fix duplicate issue description in scan
ak1394 May 21, 2024
d3df1e6
Update changelog
ak1394 May 22, 2024
a6a627a
Add catchall() to platform connection settings schema
ak1394 May 22, 2024
ec5e5cf
Check authentication type when replacing localhost for docker runs
ak1394 May 22, 2024
4babda2
Bump version number
ak1394 May 22, 2024
6ba6df8
Support floating windows in webviews
ak1394 May 24, 2024
fb6c40d
Better cleanup of the temp apis when running docker scan
ak1394 May 30, 2024
d4ccfd7
Change default scan runtime to 'cli'
ak1394 May 30, 2024
359e14e
Update changelog and bump version number
ak1394 May 31, 2024
3e1cdf3
Update default OAS version in the templates
ak1394 May 31, 2024
118db6b
Use JSONData for the http request body as well
ak1394 Jun 1, 2024
3df1a65
Add context menu to the Response component, to allow creation of the …
ak1394 Jun 5, 2024
54b879d
Cache code lenses, and update only on valid document parse. Fixes #275
ak1394 Jun 5, 2024
10a2ca9
Add dependency
ak1394 Jun 5, 2024
382b968
Update changelog
ak1394 Jun 5, 2024
9096649
Use standard server selector component for the external requests as well
ak1394 Jun 7, 2024
cba462a
Further unify TryIt selector use
ak1394 Jun 7, 2024
cfeca81
Tighten playbook types
ak1394 Jun 7, 2024
67829ab
Move getHttpResponseRange() to openapi package
ak1394 Jun 7, 2024
a749ecc
Finish creation of variable assignment entries from Scan UI
ak1394 Jun 7, 2024
b0313ee
Re-introduce 'variables used' to the scenario execution
ak1394 Jun 11, 2024
0c72b84
Update tests
ak1394 Jun 11, 2024
c8f8dae
Update dependencies
ak1394 Jun 11, 2024
b70dfe5
Update lock files
ak1394 Jun 11, 2024
11a074d
Tweak variable location descriptions
ak1394 Jun 11, 2024
367049f
Tweak labels in VariableUsed
ak1394 Jun 12, 2024
b16c3f7
Increase space for jsonPointer in create variable dialog
ak1394 Jun 12, 2024
f0bbf4d
Refactor Textarea
ak1394 Jun 12, 2024
479e6ae
Show excessiveDataExposure in scan reports
ak1394 Jun 12, 2024
f8b6ea7
Tweak context location descriptions, add step numbers to scenarios
ak1394 Jun 13, 2024
e8e2ad7
Remove unnecessary .catchall() from config zod schemas
ak1394 Jun 14, 2024
c1d0621
Remove console.log()
ak1394 Jun 26, 2024
8381cb1
Remove anond audits
ak1394 Jun 26, 2024
6d661c5
Use typescript 5.5
ak1394 Jun 26, 2024
fddddbb
Remove unneeded await's
ak1394 Jun 26, 2024
0f80de0
Update version and update changelog
ak1394 Jun 27, 2024
0d66202
Update lock files
ak1394 Jun 27, 2024
f8fc7b9
Switch from webpack to vitejs for the preview webapps
ak1394 Jun 27, 2024
1ceea7b
Update dependencies
ak1394 Jul 10, 2024
bf908ad
Update lock files
ak1394 Jul 10, 2024
193abc4
Handle default responses when extracting variables
ak1394 Jul 18, 2024
bb690f4
Allow overriding default location for the cli binary
ak1394 Jul 19, 2024
c1bb5d7
Add cliDirectoryOverride setting
ak1394 Jul 19, 2024
a1d2551
Relay updated CLI location to config webview on config saves
ak1394 Jul 22, 2024
ec56333
Pin react-hook-form version
ak1394 Jul 22, 2024
4153fcd
Clear cli download error and cli test result on config changes
ak1394 Jul 22, 2024
b12f8aa
Stop using 'Contract' when talking about API Security Audit
ak1394 Jul 22, 2024
b9fd56e
Apply 'severity - critical' filter when displaying semantic errors in…
ak1394 Jul 22, 2024
6c599ef
Fix issue when testing platform connection in config webview
ak1394 Jul 22, 2024
443a60e
Pass http proxy if configured to 42c-cli binary
ak1394 Jul 23, 2024
9bdadae
Drop empty default properties from DD
ak1394 Jul 23, 2024
fb35016
Move scan runtime banner message to the bottom of the form
ak1394 Jul 24, 2024
e2b7950
Fix issue where scanRuntime could not be changed in Settings
ak1394 Jul 25, 2024
1da38c8
Trim platformUrl when loading the config
ak1394 Jul 29, 2024
638654e
Tweak sidebar subsections opacity
ak1394 Aug 1, 2024
d7f6810
Update signup to use a webapp instead of native UI.
vfateev Jul 16, 2024
67a6bfc
Tweak text on the signup screens
ak1394 Aug 12, 2024
ccd6633
Remove old signup UI code
ak1394 Aug 13, 2024
a93d4a8
Use CLI Audit for the Scan configiuration creation if using the CLI r…
ak1394 Aug 13, 2024
fa23520
Bump version number and update changelog
ak1394 Aug 13, 2024
2fc7c62
Update package lock
ak1394 Aug 13, 2024
cb65768
Wait for the auth settings to be applied
ak1394 Aug 13, 2024
23e39ed
In scan configuration, variable processing, allow extracting values f…
ak1394 Aug 14, 2024
818170f
Update text of the warning shown when user goes below warning limit f…
ak1394 Aug 15, 2024
733723e
Bump version number
ak1394 Aug 16, 2024
d53e6cd
Fixes for delete path or operation feature
vfateev May 29, 2024
91c4dd3
Update 'upgrade' warning messages
ak1394 Aug 21, 2024
1cacda1
Add --freemium-host options to the binary command line
ak1394 Aug 21, 2024
de3782b
Fix issue with auth header not being passed to the scand-manager
ak1394 Sep 4, 2024
a65f617
Don't retry requests (in case of 500 etc responses) sent by Scan / Tr…
ak1394 Sep 12, 2024
b8b9763
Update changelog
ak1394 Sep 12, 2024
8557e84
Add Scan button to the toolbar and update Audit and Scan icons
ak1394 Sep 10, 2024
2315e96
Merge pull request #281 from 42Crunch/scan-button
ak1394 Sep 13, 2024
ee17d40
Check for exception reading collection naming convention in config view
ak1394 Sep 11, 2024
5bab444
Update vitejs and swagger-client dependencies
ak1394 Sep 27, 2024
170f42c
Bump version number
ak1394 Sep 27, 2024
f11476d
Update lock files
ak1394 Sep 27, 2024
7e7a622
Merge pull request #284 from 42Crunch/updates
ak1394 Sep 27, 2024
ae7f792
Display subscription info for the freemium customers in Config webapp
ak1394 Aug 8, 2024
047532c
Do not run audit prior to the scan.
ak1394 Sep 23, 2024
2525383
Update subscription status to show 'credits left'
ak1394 Sep 23, 2024
c2e3caf
Update Subscription page changing text and progress bars presentation
ak1394 Sep 25, 2024
d516738
When offering upgrade, show configuration page instead of directly op…
ak1394 Sep 25, 2024
f5cacba
Decrease cli update interval to 1 hour
ak1394 Sep 25, 2024
e838d64
Remove 'reversed' progress bar
ak1394 Sep 26, 2024
f7d7b2d
Automatically reload Subscription counters
ak1394 Sep 26, 2024
ea794df
Remove whitespace from anondToken
ak1394 Sep 27, 2024
5038b38
Remove warnings for low fullScan/fullAudit
ak1394 Sep 27, 2024
3b5f567
Fix checks for errors when showing subscription details
ak1394 Sep 27, 2024
7bd4adb
Fix typo
ak1394 Sep 27, 2024
f11f40b
Workaround for opening external urls in vscode
ak1394 Sep 27, 2024
6ce4b7d
Update stripe url
ak1394 Sep 27, 2024
87e8143
Update warning message to mention operation scans/audits
ak1394 Sep 27, 2024
378c3b4
Fix urls to use prod enpoints
ak1394 Sep 29, 2024
6556b9a
Update changelog
ak1394 Sep 29, 2024
81a36aa
Fix paths
ak1394 Sep 29, 2024
af8f331
Merge pull request #285 from 42Crunch/v4_29
ak1394 Sep 29, 2024
1442d2e
Update whats-new
ak1394 Oct 1, 2024
e900d7c
Update changelog
ak1394 Oct 1, 2024
6baca2a
Update readme
ak1394 Oct 1, 2024
1cb8d1d
Update readme
ak1394 Oct 1, 2024
218b6b3
Trim freemium token during the signup flow
ak1394 Oct 7, 2024
d670f9a
Update changelog and bump version number
ak1394 Oct 7, 2024
ec0c476
Merge pull request #287 from 42Crunch/fix-signup
ak1394 Oct 7, 2024
ddb2521
Extra trim to fix existing non-trimmed freemium tokens
ak1394 Oct 7, 2024
51dc810
Update changelog, bump version
ak1394 Oct 7, 2024
073b2d3
Merge pull request #288 from 42Crunch/fix-subscription
ak1394 Oct 7, 2024
e4d32b8
Retry platform requests on ENOMEM
ak1394 Oct 11, 2024
c824f50
Add crunch-logo-main SVG
ak1394 Oct 17, 2024
066e2ff
Gitignore tsconfig.tsbuildinfo
ak1394 Oct 18, 2024
ddc24c3
Merge pull request #289 from 42Crunch/pr-got-retry-enomem
ak1394 Oct 25, 2024
4621773
Fix signup page logo icon size
ak1394 Oct 24, 2024
43effcc
Set platform auth type when completing the signup
ak1394 Oct 22, 2024
34f1357
Merge pull request #290 from 42Crunch/pr-fix-signup-auth-type
ak1394 Oct 25, 2024
590c32c
Fix result banner position and size for Test elements in config webapp
ak1394 Oct 5, 2024
8f0288a
Merge pull request #291 from 42Crunch/fix-alignment
ak1394 Oct 25, 2024
33f622e
Check for the binary update every time when 'Check' functon is used i…
ak1394 Oct 5, 2024
0864376
Merge pull request #292 from 42Crunch/fix-upgrade
ak1394 Oct 25, 2024
238f0ae
Move endpoint information to a central location
ak1394 Oct 24, 2024
a36ba35
Merge pull request #294 from 42Crunch/pr-endpoints
ak1394 Oct 25, 2024
02cfc0e
Add Dockerfile/Jenkinsfile and introduce eslint
ak1394 Oct 18, 2024
5b510d8
Merge pull request #296 from 42Crunch/pr-jenkins
ak1394 Oct 30, 2024
19a8434
Update package-lock
ak1394 Oct 30, 2024
999bd70
Expose reportMaxSize scan config setting
ak1394 Oct 30, 2024
4e17001
Merge pull request #297 from 42Crunch/max-report-size
ak1394 Oct 30, 2024
989c558
Update Jenkinsfile to poll for SCM changes
ak1394 Oct 30, 2024
c23fa0e
Revert "Update Jenkinsfile to poll for SCM changes"
ak1394 Oct 30, 2024
e96e9e9
Collect stats in the artifacts
ak1394 Nov 5, 2024
c7b9572
Add stats files to .vsignore
ak1394 Nov 5, 2024
7433f29
Implement platform-client for the webapps using redux createApi()
ak1394 Aug 8, 2024
c220840
Implement tags selection UI
vfateev Sep 17, 2024
d48ae4c
Refactoring, move RadioGroup to new components
ak1394 Oct 17, 2024
022337f
Fix params
ak1394 Oct 17, 2024
6667ba3
Tweak codelens text for tagging
ak1394 Oct 17, 2024
1a34718
Add Tags icon
ak1394 Oct 17, 2024
e5d8e72
Update API tagging and linking UI layout
ak1394 Oct 17, 2024
30cde23
Move tags-api functionality to platform-api
ak1394 Oct 18, 2024
c63b02e
Remove card layout, show tags as list with remove action
vfateev Oct 22, 2024
cbd8212
Move tag selector to a separate file
vfateev Oct 22, 2024
7a3ca42
Use checkbox and radio button from components
vfateev Oct 22, 2024
1f46851
Use correct messages in case of inactive tag or api
vfateev Oct 23, 2024
4dfd5ff
Do not suggest the option if it is already selected
vfateev Oct 24, 2024
abca5be
Do not show admin only tags, sort categories
vfateev Oct 25, 2024
0c052d5
Do not check collectionId, add categoryName to memento data
vfateev Oct 25, 2024
9435e2e
Improve hover styles and selection
vfateev Oct 25, 2024
1d7db24
Update UI content in case of target file is changed for the same open…
vfateev Nov 1, 2024
7484e74
Revert "Update UI content in case of target file is changed for the s…
vfateev Nov 2, 2024
11d02b3
Recalc selection option value if targetFileName has been changed
vfateev Nov 2, 2024
61e6696
Fix IDE/vscode/links API/ tag list overflow
vfateev Nov 5, 2024
795537f
Notify user about not existing tags/api/collection
vfateev Nov 5, 2024
c0efa7a
Add refresh options
vfateev Nov 6, 2024
42af8fc
Fix red blinking on tags page
vfateev Nov 6, 2024
7c5004a
Call setupListeners() during the store config
ak1394 Nov 7, 2024
f222111
Merge pull request #298 from 42Crunch/pr-api-tags
ak1394 Nov 11, 2024
5b93f06
Update changelog
ak1394 Nov 11, 2024
196cace
Fix color of examples in swagger ui preview
ak1394 Nov 11, 2024
6c02cdf
Update changelog
ak1394 Nov 11, 2024
9d025ea
Update dependencies to fix security warnings
ak1394 Nov 11, 2024
518dae3
Merge pull request #299 from 42Crunch/pr-update-deps
ak1394 Nov 11, 2024
d28e833
Expose freemium signup webview as a command
ak1394 Nov 11, 2024
5b83887
Update signup webview text
ak1394 Nov 12, 2024
72e451c
Tweak what's new text
ak1394 Nov 12, 2024
bdd3800
Offer option to open Settings if user tries to open Signup web view b…
ak1394 Nov 12, 2024
d178bc3
Merge pull request #300 from 42Crunch/pr-signup-changes
ak1394 Nov 12, 2024
b37b580
Minor fixes to the README
ak1394 Oct 25, 2024
dd3ffb4
Update readme and whats-new
ak1394 Nov 13, 2024
cdb710a
Upate readme
ak1394 Nov 13, 2024
653299a
Minor fix tags web app in case of connection error
vfateev Nov 14, 2024
b05d389
Merge pull request #301 from 42Crunch/dev_fix_error_con
ak1394 Nov 14, 2024
b6c363f
Merge pull request #302 from 42Crunch/pr-docs-updates
ak1394 Nov 14, 2024
6d62599
Fix tags not shown for selected api
vfateev Nov 15, 2024
f87da0b
Do not show tags list in selector (show only tags counter if > 0)
vfateev Nov 15, 2024
262747c
Fix for PLATFORM-5497
vfateev Nov 15, 2024
5cc9d2f
Merge pull request #303 from 42Crunch/dev_tags_fixes
ak1394 Nov 15, 2024
4fdb8ca
Update changelog
ak1394 Nov 20, 2024
7f2c569
Make regex for credentialName more permissive
ak1394 Nov 22, 2024
9b95d87
Update extension description
ak1394 Nov 26, 2024
32b547b
Increase max buffer size for execFile()
ak1394 Dec 2, 2024
dcf705a
Bump version number
ak1394 Dec 3, 2024
c153042
Update changelog and bump version number
ak1394 Dec 3, 2024
ae6bb08
Add a delay when starting docker command to give time to terminal to …
ak1394 Dec 5, 2024
e8845e0
Update scan report to check for testSuccessful in happy path
ak1394 Dec 6, 2024
6e0a436
UI Changes to allow configuring Audit runtime separately from Scan ru…
ak1394 Nov 21, 2024
546411f
Add auditRuntime to the configuration
ak1394 Nov 22, 2024
5759e28
Pass platform tags to the runCliAudit()
ak1394 Nov 30, 2024
950bb3e
Read sqg todo and compliance when using AST
ak1394 Dec 7, 2024
894ce73
Bump version number
ak1394 Dec 10, 2024
a864a75
Update to lexical 0.20.0
ak1394 Dec 1, 2024
a5e53cf
Update dependencies
ak1394 Dec 1, 2024
6957316
Update dependencies
ak1394 Dec 1, 2024
870ce16
Merge pull request #305 from 42Crunch/feat-dep-updates
ak1394 Dec 11, 2024
619f286
Upgrade react-hook-form, lexical and related packages
ak1394 Dec 7, 2024
0a21245
Merge pull request #306 from 42Crunch/upgrade-form
ak1394 Dec 11, 2024
b188a20
Update package lock
ak1394 Dec 11, 2024
1b0cf3c
Update config label
ak1394 Dec 11, 2024
99bd852
Implement confirmation dialog feature and use it for scenario deletes
ak1394 Dec 8, 2024
21279a9
Fix typo
ak1394 Dec 11, 2024
287a09f
Implement 'remove scenario' in the reducer, resetting the operation t…
ak1394 Dec 11, 2024
89e2019
Merge pull request #307 from 42Crunch/feat-remove-scenario
ak1394 Dec 12, 2024
c336f50
Update changelog
ak1394 Dec 18, 2024
2e9b59d
Fix typo
ak1394 Dec 19, 2024
5d8610a
Update changelog
ak1394 Dec 23, 2024
6327786
Show capture credits in Settings
ak1394 Jan 10, 2025
fe6c5a7
Add command to export scan report
ak1394 Jan 13, 2025
4c55dcf
Implement exporting of audit report to a file
ak1394 Jan 15, 2025
c534922
Merge pull request #309 from 42Crunch/export-reports
ak1394 Jan 15, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 9 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
**/node_modules
.git
out
.vscode-test
.DS_Store
webview/generated
src/generated/*.json
schema/generated/*.json
**/tsconfig.tsbuildinfo
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ node_modules
.vscode-test
.DS_Store
webview/generated
src-webviews/dist/
src/generated/*.json
src/.log/
.cache/
/.idea/
schema/generated/*.json
packages/dist
tsconfig.tsbuildinfo
27 changes: 25 additions & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch Build Protections script",
"program": "${workspaceFolder}/packages/scripts/dist/build-protections.js",
"cwd": "${workspaceFolder}/packages/scripts/",
"request": "launch",
"skipFiles": ["<node_internals>/**"],
"type": "node"
},
{
"type": "extensionHost",
"request": "launch",
"name": "Launch",
"name": "Launch Dev Webapps",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceRoot}"],
"outFiles": ["${workspaceRoot}/out/**/*.js"],
Expand All @@ -16,6 +24,21 @@
"XLIIC_WEB_VIEW_DEV_MODE": "true"
}
},
{
"type": "extensionHost",
"request": "launch",
"name": "Launch Prod Webapps",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceRoot}"],
"outFiles": ["${workspaceRoot}/out/**/*.js"],
"preLaunchTask": {
"type": "npm",
"script": "watch"
},
"env": {
"XLIIC_WEB_VIEW_DEV_MODE": "false"
}
},
{
"type": "extensionHost",
"request": "launch",
Expand All @@ -36,7 +59,7 @@
"program": "scripts/build-snippets.js",
"request": "launch",
"skipFiles": ["<node_internals>/**"],
"type": "pwa-node"
"type": "node"
}
]
}
7 changes: 2 additions & 5 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"editor.insertSpaces": false,
"tslint.enable": true,
"typescript.tsc.autoDetect": "off",
"typescript.preferences.quoteStyle": "single"
}
"typescript.tsdk": "node_modules/typescript/lib"
}
16 changes: 15 additions & 1 deletion .vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,31 @@
**/*.ts
**/*.map
.gitignore
.dockerignore
**/tsconfig.json
**/tsconfig.base.json
**/tsconfig.tsbuildinfo
images/**
publish.sh
publish-open-vsx.sh
quickfixes/**
src/**
src-webviews/**
tests/**
out/test/**
.prettierrc.yaml
scripts/**
snippets/**
packages/**
Dockerfile
Jenkinsfile
build.sh
CHANGELOG.md
WHATS-NEW.md
README.md
spdx-report.json
total-issues.txt
total-lines.txt
eslint-report.json
eslint.config.mjs
issues-per-1k-lines.txt
stats.txt
199 changes: 199 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,204 @@
# Changelog

## Version 4.31.0 (December 23, 2024)

- Implement support for SQGs in Audit when using CLI binary
- Add ability to select CLI binary as a runtime for Audit for enterprise customers
- Support tagging of local OpenAPI files with platform tags
- Allow removing Scenarios in Scan config UI

## Version 4.30.1 (December 3, 2024)

- Increase stdout buffer size when running the Scan using the CLI binary

## Version 4.30.0 (November 20, 2024)

- Added ability to tag local API files or link them to the platform APIs
- Updated Scan configuration web UI to allow specifying reportMaxSize option
- Added extra check for the CLI binary updates when testes in the Config web UI
- Added workaround for ENOMEM exceptions when invoking the platform APIs
- Fix issue with example background colors in SwaggerUI preview #295

## Version 4.29.2 (October 7, 2024)

- Remove whitespace characters during the freemium signup flow

## Version 4.29.0 (October 1, 2024)

- Show subscription status in the Config webapp
- Add Scan button to the toolbar
- Do not automatically re-try failing HTTP request sent from Scan / Try it UIs

## Version 4.28.0 (August 13, 2024)

- New UI for logins and signups for 42Crunch platform
- Do not rely on platform API calls when creating Scan configuration for enterprise customers, if CLI runtime is choosen
- Do not display warnings when displaying high priority semantic/structural issues in the Audit
- Better handling of http proxies when CLI binary is used
- Allow specifying location for the CLI binary
- Fix issue in the Scan when using response processing with 'default' responses

## Version 4.27.0 (June 27, 2024)

- Make API Security Testing Binary required to run Audits
- Add ability to extract variables in Scan by clicking on the response body values
- Add 'Context' tab to the Scan UI to show information about variables used by Operation

## Version 4.26.3 (June 5, 2024)

- Fix issue with text editor contents jerking on code lenses being added/removed during editing #275

## Version 4.26.2 (May 31, 2024)

- Add support for floating windows in extension webviews
- Change default runtime for Scan to API Security Testing Binary

## Version 4.26.0 (May 22, 2024)

- Allow all users to run 42Crunch Scan
- Show 42Crunch icon in the status bar to authenticated users
- Add command "Open Scan configuration file for the current OpenAPI file" to display relevant Scan config
- Add Audit/Scan code lenses to the top of the OpenAPI file
- Allow switching between different authentication types (Security Audit Token/IDE Token) if both are available
- Allow running full Scans (in addition to per-operation Scans)

## Version 4.25.3 (April 23, 2024)

- Fix resource leak issue reported in #266

## Version 4.25.2 (April 18, 2024)

- Add setting to disable contribution of OpenAPI schemas for YAML files #269
- Allow configuring auth info for external references #256

## Version 4.25.1 (March 1, 2024)

- Downgrade swagger-ui dependency in preview to fix #264
- Display 'security' property in the operation nodes in OpenAPI Explorer

## Version 4.25.0 (February 29, 2024)

- Make scand-manager timeout configurable

## Version 4.24.1 (February 23, 2024)

- Fix issue where authorization tests dialog would not show in Scan UI

## Version 4.24.0 (February 19, 2024)

- Updated to the lastest SwaggerUI version for OpenAPI preview
- Support form/urlencoded bodies in external requests in Scan UI
- Support raw bodies in Scan UI

## Version 4.23.0 (February 15, 2024)

- Display 'requestBody' in the operation node OpenAPI Explorer
- Display operation child nodes in OperationID / Tag nodes in OpenAPI Explorer
- Fix labels of issue severity in the Scan report
- Stop hiding debug logs in the Logging view in the Scan report

## Version 4.22.1 (February 13, 2024)

- Fix issue where the temp apis on the platform were not properly cleaned up

## Version 4.22.0 (February 13, 2024)

- Check for updates of the 42Crunch AST binary and prompt user to upgrade
- Add support for BOLA/BFLA tests in Scan UI

## Version 4.21.1 (January 22, 2024)

- Fix for creating temp APIs when API Naming Convention is configured
- Fixes for form validation in Settings webapp

## Version 4.21.0 (January 18, 2024)

- Change scope of a number of configuration settings to "machine", to disallow overriding
this in a workspace, as having different per-workspace settings for likes of "platformUrl"
was very confusing.

## Version 4.20.0 (January 11, 2024)

- Implement context menu command to remove operations and paths in OpenAPI Explorer view
- Allow configuring name of a temporary collection when using 42Crunch Platform for performing Security Audit,
and make sure it matches org's collection naming convention
- Allow specifying a list of tags to be automatically added to all APIs created by the extention on 42Crunch platform
- Fix display of SQG configuration for audits executed using 42Crunch Platform
- In 42Crunch Platform explorer view, APIs with 'technical names' are made read-only, and if possible a link
to a filesystem location for relevant OpenAPI file is provided

## Version 4.19.5 (January 8, 2024)

- Fix issue when dots in operationId prevented 'Try' in Scan UI from sending the request

## Version 4.19.2 (December 5, 2023)

- Add Scan/Audit/Try it commands to the context menu in the OpenAPI tree
- Cleanup context menu titles removing 'OpenAPI:' prefix
- Update schemas for 42Crunch protection-types extensions
- Show extra logs when running Conformance Scan

## Version 4.19.0 (November 29, 2023)

- New OpenAPI tree, with individual sections merged into one tree and new Search functionality.
- Support for running Security Audit and Conformance Scan locally, using 42Crunch CLI binaries.
- New UI for API Conformance Scan with support for scenarios, authentication, etc.

## Version 4.18.6 (August 2, 2023)

- Fixes to support updated scan report

## Version 4.18.2 (June 9, 2023)

- Fix bug with sorting and filtering issues in Security Audit report

## Version 4.18.1 (June 5, 2023)

- Update styling of Security Audit Report
- Display SQG status in Security Audit
- Add filtering to Conformance Scan and Security Audit reports
- Implement single-operation Security Audit
- Add configuration option to disable use of CodeLenses #185

## Version 4.17.0 (May 12, 2023)

- Add support running Conformance Scan using scand-manager
- Add Settings webapp
- Update Data Dictionary browser UI
- Show Audit report in case pre-scan Audit fails

## Version 4.16.6 (April 7, 2023)

- Fix issue in TryIt where request parameters couldn't be deleted

## Version 4.16.5 (April 4, 2023)

- Fix issue where TryIt woudln't use value defined in parameter's 'example' #213
- Fix issue where Scan report incorrectly shows that response code wasn't found
- Fix color for trashcan icon in the dark theme

## Version 4.16.4 (March 29, 2023)

- Fix issue with TryIt request body editing input failing on invalid JSON
- Improve errors displaying when editing request parameters in TryIt

## Version 4.16.3 (March 24, 2023)

- Fix issue with TryIt failing on Swagger/OpenAPI files with no servers or host defined

## Version 4.16.2 (March 23, 2023)

- Fix issue with TryIt failing to display UI #209

## Version 4.16.1 (March 22, 2023)

- Fix issue with extra quotes added by intellisence #210

## Version 4.16 (March 21, 2023)

- Add support for Swagger 2.0 in TryIt and Conformance Scan
- Restyle TryIt and Scan UI

## Version 4.15 (October 28, 2022)

- Add support for single operation Conformance Scan
Expand Down
26 changes: 26 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
FROM node:22-alpine3.20
RUN apk add jq syft
RUN npm install -g @vscode/vsce

WORKDIR /build
COPY . /build
RUN find . \( -name '*.ts' -o -name '*.tsx' \) -print0 | xargs -0 cat | wc -l > total-lines.txt
RUN syft -o spdx-json . > spdx-report.json

RUN npm ci
RUN npm run lint || true
RUN jq '[.[] | .errorCount + .warningCount] | add' eslint-report.json > total-issues.txt
# Calculate stats
RUN echo "`cat total-issues.txt` / `cat total-lines.txt` * 1000" | bc -l > issues-per-1k-lines.txt
RUN echo "Total lines: `cat total-lines.txt`" > stats.txt
RUN echo "Total issues: `cat total-issues.txt`" >> stats.txt
RUN echo "Issues per 1000 lines: `cat issues-per-1k-lines.txt`" >> stats.txt

# Build the extension
RUN vsce package `jq -r '.version' < package.json`-build-`date +"%Y%m%d%H%M%S"` --allow-star-activation --follow-symlinks --no-git-tag-version

# Build the extension that uses the dev endpoints
COPY packages/common/src/endpoints-dev.ts /build/packages/common/src/endpoints.ts
COPY package.json /build/package.json
RUN jq '.contributes.configuration.properties."openapi.platformRepository".default = "https://repo.42crunch.com/downloads/rc"' package.json > package.json.tmp && mv package.json.tmp package.json
RUN vsce package `jq -r '.version' < package.json`-build-dev-`date +"%Y%m%d%H%M%S"` --allow-star-activation --follow-symlinks --no-git-tag-version
50 changes: 50 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
pipeline {
agent any

options {
buildDiscarder(logRotator(numToKeepStr:'5'))
}

stages {
stage('Checkout sources') {
steps {
checkout scm
}
}

stage('Build') {
agent {
dockerfile {
filename 'Dockerfile'
reuseNode true
}
}

steps {
sh 'cp /build/*.vsix .'
sh 'cp /build/spdx-report.json .'
sh 'cp /build/stats.txt .'
script {
def issues = sh(script: 'cat /build/total-issues.txt', returnStdout: true).trim().toInteger()
def lines = sh(script: 'cat /build/total-lines.txt', returnStdout: true).trim().toInteger()
def errorsPerThousandLines = (issues / lines) * 1000
echo "Total lines of code: ${lines}"
echo "Total issues: ${issues}"
echo "Errors per thousand lines: ${errorsPerThousandLines}"
}
}
}

stage('Archive Artifacts') {
steps {
archiveArtifacts artifacts: '*.vsix, spdx-report.json, stats.txt'
}
}
}

post {
always {
cleanWs()
}
}
}
Loading