Hello i'm unfortunately having bad luck with marvi...
# ask-community
e
Hello i'm unfortunately having bad luck with marvin, if anyone can help. 🙏 i'm trying to git clone into a k8s-worker (self-hosted prefect 3.5.X) >>>
i'm using k8s worker (from helm chart) and the SDK prefect 3.5.x i'm using from_source to setup a private repo with credential
Copy code
python -c 'from prefect.blocks.system import Secret; from prefect.runner.storage import GitRepository;  g =GitRepository( url="<https://gitlab.com/g/g.git>", credentials={ "username": Secret.load("gitlab-username"), "access_token": Secret.load("gitlab-lh-access-token"), }, branch="prefect",) ; import asyncio; asyncio.run(g.pull_code())'
here is a simple test i run in the pod and it clone the repo without problem , but prefect with similar code get error 128 (permission ?)
Copy code
<flow>.from_source(
source = GitRepository(
    url="<https://gitlab.com/g/g.git>",
    credentials={ "username": Secret.load("gitlab-username"),
    "access_token": Secret.load("gitlab-lh-access-token"),},
    branch="prefect",
)).deploy(...)
anyone has an idea ?
prefect-server (helm chart) is self hosted too
i found the issue, you can't use a secret for
username
so i needed to add
.get()
to it ( in my snippet) , but the username is then hardcoded :(