Skip to content

Commit

Permalink
Allow insecure file uploads
Browse files Browse the repository at this point in the history
  • Loading branch information
maany committed Apr 14, 2024
1 parent 0e152d9 commit ffdc6f3
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ RUN apt-get update && apt-get install -y \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY . /app
ENV PYTHONPATH "${PYTHONPATH}:${WORKDIR}"
RUN pip install -r requirements.txt
2 changes: 1 addition & 1 deletion app/sdk/file_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def public_upload(self, signed_url: str, file_path: str) -> None:
"""

with open(file_path, "rb") as f:
upload_res = requests.put(signed_url, data=f)
upload_res = requests.put(signed_url, data=f, verify=False)

if upload_res.status_code != 200:
raise ValueError(f"Failed to upload file to signed url: {upload_res.text}")
Expand Down
1 change: 0 additions & 1 deletion sentinel_scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,6 @@ def main(
kp_port=args.kp_port,
kp_auth_token=args.kp_auth_token,
kp_scheme=args.kp_scheme

)


0 comments on commit ffdc6f3

Please sign in to comment.