Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
89 changes: 0 additions & 89 deletions .github/actions/security-issues/action.yml

This file was deleted.

10 changes: 10 additions & 0 deletions doc/changes/unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@

## Summary

This release removes the code for creating security issues, as project-keeper
no longer supports it (see exasol/project-keeper#808). This is a breaking change:

* Removed the GitHub action `security-issues`
* Removed the CLI commands `tbx security`command group


## Refactoring

* #1009: Fixed Sonar issues in test files
* #987: Removed code creating security issues
* Removed GitHub action `security-issues`
* Removed `tbx security` CLI and module `exasol.toolbox.tools.security`
91 changes: 0 additions & 91 deletions doc/design.rst
Original file line number Diff line number Diff line change
Expand Up @@ -189,97 +189,6 @@ _________________
- Description
* - python-environment
- Sets up an appropriate poetry-based python environment
* - security-issues
- Takes a JSON of known vulnerabilities affecting a repo & creates GitHub Issues
in said repo for any vulnerabilities, which do not yet have a GitHub Issue

security-issues
^^^^^^^^^^^^^^^
The `security-issues/action.yml` creates GitHub Issues for known vulnerabilities
for `maven <https://sonatype.github.io/ossindex-maven/maven-plugin/>`_ and `pip-audit <https://pypi.org/project/pip-audit/>`_.
The following steps are taken:

1. Convert a JSON of known vulnerabilities into a common format (`class Issue`)
2. Filter out vulnerabilities which already have an existing GitHub Issue via CVE
3. Create new GitHub Issues
4. Return a JSON of the newly created GitHub Issues

Input Variants
""""""""""""""
An input variant would be passed in as a string-encoded JSON.

`maven` (with `ossindex-audit <https://sonatype.github.io/ossindex-maven/maven-plugin/ossindex-audit/>`_)

.. code-block:: json

{
"vulnerable": {
"<package_name>@<package_version>:compile": {
"coordinates": "<package_name>@<package_version>",
"description": "<package_description>",
"reference": "<oss_url_for_vuln>",
"vulnerabilities": [
{
"id": "<vuln_id>",
"displayName": "<vuln_name>",
"title": "<vuln_title>",
"description": "<vuln_description>",
"cvssScore": 7.5,
"cvssVector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
"cwe": "<cwe_vuln_id>",
"cve": "<cve_vuln_id>",
"reference": "<oss_url_for_vuln>",
"externalReferences": ["<vuln_reference_url>"],
}
],
},
}
}

`pip-audit` (via `nox -s dependency:audit`)

.. code-block:: json

{
"dependencies": [
{
"name": "<package_name>",
"version": "<package_version>",
"vulns":
[
{
"id": "<vuln_id>",
"fix_versions": ["<fix_version>"],
"aliases": ["<vuln_id2>"],
"description": "<vuln_description>"
}
]
}
]
}

Known Issues
""""""""""""
The `security-issues/action.yml` assumes that eventually every known vulnerability will
be associated with a singular CVE.

* This can be problematic as vulnerabilities may be initially reported to different
services and not receive a CVE until a few days later or, in some cases, never. This
could mean that some vulnerabilities are initially missed or, in some cases,
never propagated by our action.
* Additionally, reporting tools like `pip-audit` must link a vulnerability with the
different vulnerability IDs from different reporting services. Typically, this is done
by selecting 1 of the vulnerability IDs as the unique identifier of the vulnerability.
This, as is the case for `pip-audit`, may not be the CVE, so it is possible if the
linked vulnerability IDs were to change (i.e. wrongly linked CVE) that we could end
up with multiple GitHub Issues for the same underlying vulnerability.


Known Issues
------------

This section documents flaws, sins, and known issues with the current design and/or its current implementation that were either known upfront or surfaced through the course of implementing it. Additionally, it attempts to explain why certain choices were made at the time, so one can better understand whether it may be reasonable to make changes now or in the future.


Passing files as individual arguments on the CLI
++++++++++++++++++++++++++++++++++++++++++++++++
Expand Down
1 change: 0 additions & 1 deletion doc/github_actions/github_actions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@
:maxdepth: 2

python_environment
security_issues
115 changes: 0 additions & 115 deletions doc/github_actions/security_issues.rst

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ Do not add new functions under `exasol/toolbox/tools/`. Put reusable code in

- `exasol/toolbox/tools/issue.py`: issue template CLI.
- `exasol/toolbox/tools/replace_version.py`: version replacement helpers.
- `exasol/toolbox/tools/security.py`: security issue conversion and creation.
- `exasol/toolbox/tools/tbx.py`: CLI root.
- `exasol/toolbox/tools/template.py`: template list, show, diff, install, and
update helpers.
Expand Down
Loading