Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VAULT 11 - Proxy Ollama Requests For Authentication #13

Merged
merged 3 commits into from
Sep 13, 2024
Merged

Conversation

rodneyosodo
Copy link
Contributor

What type of PR is this?

This is a feature because it adds vault proxy a microservice to proxy requests for authentication

What does this do?

Adds vault proxy to proxy ollama request before forwarding the request to ollama

Which issue(s) does this PR fix/relate to?

Resolves #11
Resolves #9

Have you included tests for your changes?

Tested manually

Did you document any new/modified features?

Not yet

Notes

To be merged after #12

@rodneyosodo rodneyosodo force-pushed the VAULT-11 branch 6 times, most recently from 30f3d8a to b35d7d1 Compare September 11, 2024 16:19
@rodneyosodo rodneyosodo changed the title NOISSUE - Proxy Ollama Requests For Authentication VAULT 11 - Proxy Ollama Requests For Authentication Sep 11, 2024
proxy/handler.go Outdated
@@ -0,0 +1,88 @@
package main
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this?

Microservice must be done with go-kit, in the spirit of Magistrala microservices. Including metrics and logging.

Copy link
Contributor

@drasko drasko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the Trefik files from this PR, that has been merged in the previous PR

COPY . .
RUN apk update \
&& apk add make upx\
&& make build \

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This won't work because a Git repo is in the root and is not copied to Docker context so build will net be able to fetch version from git.

@@ -0,0 +1,17 @@
FROM golang:1.23-alpine AS builder

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The version is lower than the one in go.mod.

@dborovcanin dborovcanin merged commit b4a4fcb into main Sep 13, 2024
1 check passed
@dborovcanin dborovcanin deleted the VAULT-11 branch September 13, 2024 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature: Adapt Continue VS Code extension to Vault AI needs Feature: Setup Traefik with MG Auth
3 participants