-
Notifications
You must be signed in to change notification settings - Fork 936
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'white/dev' into tkt_white_7781_refactor_contextualization
- Loading branch information
Showing
23 changed files
with
252 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
* [ADD] CVSS4 data is now included in CSV exports. #7850 | ||
* [ADD] Added support for CVSS v4 in bulk imports. #7849 | ||
* [FIX] Added authorization to the config endpoint. #7331 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Jan 6th, 2025 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* [FIX] Fix config endpoint authentication. #7889 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Jan 13th, 2025 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"level": "community", | ||
"md": "[FIX] Fixed an issue where evidence descriptions were not saved correctly during manual vulnerability creation. #7867" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"level": "community", | ||
"md": "[ADD] Attachment descriptions can now be updated. #7868" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ | |
See the file 'doc/LICENSE' for the license information | ||
""" | ||
|
||
__version__ = '5.9.0' | ||
__version__ = '5.10.1' |
38 changes: 38 additions & 0 deletions
38
faraday/migrations/versions/618a59151523_vulnerability_is_main.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
"""vulnerability is_main | ||
Revision ID: 618a59151523 | ||
Revises: 7c223e63007f | ||
Create Date: 2024-11-21 18:59:20.567581+00:00 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = '618a59151523' | ||
down_revision = '7c223e63007f' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# Add the is_main column | ||
op.add_column('vulnerability', sa.Column('is_main', sa.Boolean(), nullable=True)) | ||
|
||
# Set is_main = True for main vulnerabilities | ||
op.execute(""" | ||
UPDATE vulnerability | ||
SET is_main = True | ||
WHERE id IN ( | ||
SELECT DISTINCT vulnerability_duplicate_id | ||
FROM vulnerability | ||
WHERE vulnerability_duplicate_id IS NOT NULL | ||
) | ||
""") | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_column('vulnerability', 'is_main') | ||
# ### end Alembic commands ### |
45 changes: 45 additions & 0 deletions
45
faraday/migrations/versions/7c223e63007f_add_service_desk_scope.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
"""add service desk scope | ||
Revision ID: 7c223e63007f | ||
Revises: 391de8e3c453 | ||
Create Date: 2024-08-14 15:18:41.873355+00:00 | ||
""" | ||
from alembic import op | ||
from faraday.server.models import UserToken | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = '7c223e63007f' | ||
down_revision = '391de8e3c453' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
with op.get_context().autocommit_block(): | ||
op.execute("ALTER TYPE token_scopes ADD VALUE IF NOT EXISTS 'service_desk'") | ||
|
||
|
||
def downgrade(): | ||
op.execute("DELETE FROM user_token WHERE scope = 'service_desk'") | ||
|
||
scopes = [scope for scope in UserToken.SCOPES if scope != UserToken.SERVICE_DESK_SCOPE] | ||
|
||
scopes_str = ', '.join(f"'{scope}'" for scope in scopes) | ||
|
||
op.execute(f"CREATE TYPE token_scopes_tmp AS ENUM({scopes_str})") | ||
|
||
# Step 2: Alter the table to use the new enum type | ||
op.execute(""" | ||
ALTER TABLE user_token | ||
ALTER COLUMN scope | ||
SET DATA TYPE token_scopes_tmp | ||
USING scope::text::token_scopes_tmp | ||
""") | ||
|
||
# Step 3: Drop the old enum type | ||
op.execute("DROP TYPE token_scopes") | ||
|
||
# Step 4: Rename the new enum type to the original one | ||
op.execute("ALTER TYPE token_scopes_tmp RENAME TO token_scopes") | ||
# ### end Alembic commands ### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.