-
Notifications
You must be signed in to change notification settings - Fork 933
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/staging' into white/master
- Loading branch information
Showing
34 changed files
with
1,224 additions
and
805 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,5 @@ | ||
* Add `stats` param in hosts endpoint. | ||
* [FIX] Now get agents dosent returns tokens | ||
* [FIX] Now when a constrain is violated faraday use the actual object to query if there is another object | ||
* [MOD] Improve agents logs | ||
* Add global commands and summary field in command's model |
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 @@ | ||
Oct 27th, 2022 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,6 +34,7 @@ services: | |
- redis | ||
ports: | ||
- "5985:5985" | ||
- "9000:9000" | ||
volumes: | ||
db: | ||
driver: local |
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
42 changes: 42 additions & 0 deletions
42
...ons/versions/3eb96406e88d_rename_important_with_importance_and_remove_check_constraint.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,42 @@ | ||
"""rename important with importance and remove check constraint | ||
Revision ID: 3eb96406e88d | ||
Revises: 0409e696eeec | ||
Create Date: 2022-09-30 19:15:05.214519+00:00 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = '3eb96406e88d' | ||
down_revision = '0409e696eeec' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.add_column('vulnerability', sa.Column('epss', sa.Float(), nullable=True)) | ||
op.execute("ALTER TABLE vulnerability DROP COLUMN IF EXISTS risk") | ||
op.execute("ALTER TABLE vulnerability ADD COLUMN IF NOT EXISTS risk INTEGER NULL") | ||
op.execute("ALTER TABLE workspace DROP COLUMN IF EXISTS important") | ||
op.execute("ALTER TABLE host DROP COLUMN IF EXISTS important") | ||
op.execute("ALTER TABLE workspace ADD COLUMN IF NOT EXISTS importance INTEGER NULL DEFAULT 0") | ||
op.execute("ALTER TABLE host ADD COLUMN IF NOT EXISTS importance INTEGER NULL DEFAULT 0") | ||
op.execute("ALTER TABLE vulnerability DROP CONSTRAINT IF EXISTS check_vulnerability_risk") | ||
op.drop_constraint('uix_reference_name_vulnerability_workspace', 'reference', type_='unique') | ||
op.create_unique_constraint('uix_reference_name_type_vulnerability_workspace', 'reference', | ||
['name', 'type', 'workspace_id']) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_constraint('uix_reference_name_type_vulnerability_workspace', 'reference', type_='unique') | ||
op.create_unique_constraint('uix_reference_name_vulnerability_workspace', 'reference', ['name', 'workspace_id']) | ||
op.drop_column('workspace', 'importance') | ||
op.drop_column('host', 'importance') | ||
op.execute("ALTER TABLE host ADD COLUMN important BOOLEAN NULL DEFAULT FALSE") | ||
op.drop_column('vulnerability', 'epss') | ||
# ### end Alembic commands ### |
Oops, something went wrong.