Skip to content

Commit

Permalink
removed requests-aws4auth as a requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
gecBurton committed Oct 22, 2024
1 parent 929c2df commit f34b4ae
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 47 deletions.
19 changes: 1 addition & 18 deletions django_app/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion django_app/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ django-plotly-dash = "^2.3.1"
django-adminplus = "^0.6"
pandas = "^2.2.2"
django-waffle = "^4.1.0"
requests-aws4auth = "^1.3.1"
opensearch-py = "^2.7.1"

[tool.poetry.group.dev.dependencies]
Expand Down
19 changes: 1 addition & 18 deletions redbox-core/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion redbox-core/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ kneed = "^0.8.5"
langgraph = "^0.2.15"
langchain-aws = "^0.1.17"
opensearch-py = "^2.7.1"
requests-aws4auth = "^1.3.1"


[tool.poetry.group.dev.dependencies]
Expand Down
9 changes: 0 additions & 9 deletions redbox-core/redbox/models/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,17 +142,8 @@ def elasticsearch_client(self) -> Elasticsearch:
)

elif isinstance(self.elastic, OpenSearchSettings):
# credentials = boto3.Session().get_credentials()
# auth = AWS4Auth(
# credentials.access_key,
# credentials.secret_key,
# self.aws_region,
# "aoss",
# session_token=credentials.token,
# )
client = OpenSearch(
hosts=[{"host": self.collection_enpdoint, "port": 443}],
# http_auth=auth,
use_ssl=True,
verify_certs=True,
connection_class=RequestsHttpConnection,
Expand Down

0 comments on commit f34b4ae

Please sign in to comment.