-
Notifications
You must be signed in to change notification settings - Fork 2
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
Conversation
30f3d8a
to
b35d7d1
Compare
proxy/handler.go
Outdated
@@ -0,0 +1,88 @@ | |||
package main |
There was a problem hiding this comment.
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.
b35d7d1
to
3f1b65d
Compare
There was a problem hiding this 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
2bc848b
to
45d7c47
Compare
Signed-off-by: Rodney Osodo <[email protected]>
45d7c47
to
7ec21af
Compare
Signed-off-by: Rodney Osodo <[email protected]>
7ec21af
to
73064ad
Compare
COPY . . | ||
RUN apk update \ | ||
&& apk add make upx\ | ||
&& make build \ |
There was a problem hiding this comment.
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.
proxy/docker/Dockerfile
Outdated
@@ -0,0 +1,17 @@ | |||
FROM golang:1.23-alpine AS builder |
There was a problem hiding this comment.
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
.
Also update docker base image
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