forked from onyx-dot-app/onyx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
225 changed files
with
10,675 additions
and
4,486 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# https://github.com/madler/zlib/issues/868 | ||
# Pulled in with base Debian image, it's part of the contrib folder but unused | ||
# zlib1g is fine | ||
# Will be gone with Debian image upgrade | ||
# No impact in our settings | ||
CVE-2023-45853 | ||
|
||
# krb5 related, worst case is denial of service by resource exhaustion | ||
# Accept the risk | ||
CVE-2024-26458 | ||
CVE-2024-26461 | ||
CVE-2024-26462 | ||
CVE-2024-26458 | ||
CVE-2024-26461 | ||
CVE-2024-26462 | ||
CVE-2024-26458 | ||
CVE-2024-26461 | ||
CVE-2024-26462 | ||
CVE-2024-26458 | ||
CVE-2024-26461 | ||
CVE-2024-26462 | ||
|
||
# Specific to Firefox which we do not use | ||
# No impact in our settings | ||
CVE-2024-0743 | ||
|
||
# bind9 related, worst case is denial of service by CPU resource exhaustion | ||
# Accept the risk | ||
CVE-2023-50387 | ||
CVE-2023-50868 | ||
CVE-2023-50387 | ||
CVE-2023-50868 | ||
|
||
# libexpat1, XML parsing resource exhaustion | ||
# We don't parse any user provided XMLs | ||
# No impact in our settings | ||
CVE-2023-52425 | ||
CVE-2024-28757 | ||
|
||
# sqlite, only used by NLTK library to grab word lemmatizer and stopwords | ||
# No impact in our settings | ||
CVE-2023-7104 | ||
|
||
# libharfbuzz0b, O(n^2) growth, worst case is denial of service | ||
# Accept the risk | ||
CVE-2023-25193 |
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
29 changes: 29 additions & 0 deletions
29
backend/alembic/versions/173cae5bba26_port_config_store.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,29 @@ | ||
"""Port Config Store | ||
Revision ID: 173cae5bba26 | ||
Revises: e50154680a5c | ||
Create Date: 2024-03-19 15:30:44.425436 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
from sqlalchemy.dialects import postgresql | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = "173cae5bba26" | ||
down_revision = "e50154680a5c" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade() -> None: | ||
op.create_table( | ||
"key_value_store", | ||
sa.Column("key", sa.String(), nullable=False), | ||
sa.Column("value", postgresql.JSONB(astext_type=sa.Text()), nullable=False), | ||
sa.PrimaryKeyConstraint("key"), | ||
) | ||
|
||
|
||
def downgrade() -> None: | ||
op.drop_table("key_value_store") |
41 changes: 41 additions & 0 deletions
41
backend/alembic/versions/38eda64af7fe_add_chat_session_sharing.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,41 @@ | ||
"""Add chat session sharing | ||
Revision ID: 38eda64af7fe | ||
Revises: 776b3bbe9092 | ||
Create Date: 2024-03-27 19:41:29.073594 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = "38eda64af7fe" | ||
down_revision = "776b3bbe9092" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade() -> None: | ||
op.add_column( | ||
"chat_session", | ||
sa.Column( | ||
"shared_status", | ||
sa.Enum( | ||
"PUBLIC", | ||
"PRIVATE", | ||
name="chatsessionsharedstatus", | ||
native_enum=False, | ||
), | ||
nullable=True, | ||
), | ||
) | ||
op.execute("UPDATE chat_session SET shared_status='PRIVATE'") | ||
op.alter_column( | ||
"chat_session", | ||
"shared_status", | ||
nullable=False, | ||
) | ||
|
||
|
||
def downgrade() -> None: | ||
op.drop_column("chat_session", "shared_status") |
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,28 @@ | ||
"""PG File Store | ||
Revision ID: 4738e4b3bae1 | ||
Revises: e91df4e935ef | ||
Create Date: 2024-03-20 18:53:32.461518 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = "4738e4b3bae1" | ||
down_revision = "e91df4e935ef" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade() -> None: | ||
op.create_table( | ||
"file_store", | ||
sa.Column("file_name", sa.String(), nullable=False), | ||
sa.Column("lobj_oid", sa.Integer(), nullable=False), | ||
sa.PrimaryKeyConstraint("file_name"), | ||
) | ||
|
||
|
||
def downgrade() -> None: | ||
op.drop_table("file_store") |
Oops, something went wrong.