1. 19 Mar, 2024 1 commit
  2. 18 Mar, 2024 1 commit
  3. 12 Mar, 2024 2 commits
  4. 10 Mar, 2024 3 commits
  5. 07 Mar, 2024 1 commit
  6. 06 Mar, 2024 1 commit
  7. 05 Mar, 2024 6 commits
  8. 03 Mar, 2024 1 commit
  9. 02 Mar, 2024 1 commit
  10. 17 Feb, 2024 1 commit
  11. 09 Feb, 2024 1 commit
  12. 18 Jan, 2024 1 commit
  13. 11 Jan, 2024 1 commit
    • goecho's avatar
      Fix bug: Header attributes (Host, Authorization, Origin, Referer) not sanitized · 74f91bc7
      goecho authored
      - Resolved an issue where header attributes Host, Authorization, Origin, and Referer were not being sanitized, resulting in two major issues:
        1. Ollama requests inadvertently exposed user information, leading to data leakage.
        2. When Ollama is deployed on different servers, and the intermediary proxy layer uses the host header to locate downstream services, it fails to find them.
      
      Root Cause:
      - In FastAPI, when accessing request.headers, all header names are converted to lowercase. This is because FastAPI, and its underlying framework Starlette, adhere to the HTTP/2 standard, which mandates lowercase header field names for performance and consistency.
      - In HTTP/2, enforcing lowercase header field names reduces complexity in header processing as case sensitivity is no longer a concern. Thus, regardless of the case used in client-sent header fields, the server processes them uniformly in lowercase.
      - This practice is adopted in FastAPI and other modern HTTP frameworks, even in an HTTP/1.1 context, to maintain consistency with HTTP/2 and improve overall performance. As a result, header field names are always presented in lowercase in FastAPI, even if the original request used capitalization or mixed case.
      74f91bc7
  14. 06 Jan, 2024 1 commit
  15. 05 Jan, 2024 3 commits
  16. 04 Jan, 2024 2 commits
  17. 03 Jan, 2024 1 commit
  18. 30 Dec, 2023 1 commit
    • Anuraag Jain's avatar
      refac: use dependencies to verify token · bdd153d8
      Anuraag Jain authored
      - feat: added new util to get the current user when needed. Middleware was adding authentication logic to all the routes. let's revisit if we can move the non-auth endpoints to a separate route.
      - refac: update the routes to use new helpers for verification and retrieving user
      - chore: added black for local formatting of py code
      bdd153d8
  19. 27 Dec, 2023 1 commit
  20. 26 Dec, 2023 3 commits
  21. 15 Dec, 2023 1 commit
  22. 14 Dec, 2023 1 commit
  23. 19 Nov, 2023 3 commits
  24. 15 Nov, 2023 1 commit