SAST IDE Integration ADR 001: Provide API-based security scans
SAST IDE Integration ADR 001: Provide API-based security scans
| Status | Authors | Coach | DRIs | Owning Stage | Created |
|---|---|---|---|---|---|
| ongoing |
erran
jleasure
julianthome
theoretick
|
theoretick
|
connorgilbert
dashaadu
tkopel
kisha.mavryck
|
devops secure | 2024-06-21 |
Support developers performing API-based Static Analysis Security Testing from their IDE.
What is it trying to achieve?
How will we know that this has succeeded?
What are other less tangible opportunities here?
What is out of scope for this blueprint?
Provide both local and API-based security scans against the current IDE workspace.
Pros:
Cons:
sequenceDiagram
actor User
User->>+IntelliJ: Edits a file "hello.rb"
User->>+IntelliJ: Saves "hello.rb"
IntelliJ->>+GitLab Duo for JetBrains: Triggers a security scan based on the current file and workspace
GitLab Duo for JetBrains->>+GitLab API: POST /api/v4/security_scans/sast
note over GitLab Duo for JetBrains,GitLab API: { "path": "hello.rb", "content": "exec(ARGV[0])" }
GitLab API->>+Security Scan Service: POST /v1/sast
Security Scan Service->>-GitLab API: 200 OK
GitLab API->>-GitLab Duo for JetBrains: 200 OK
GitLab Duo for JetBrains->>-IntelliJ: Display Static Analysis findings (Diagnostics)
The current experience for GitLab users in the IDE is that they must run separate Static Analysis tools locally before pushing their code and waiting on their CI/CD pipeline’s security scan results.
Pros:
Cons:
eef3c341)