Title
#help
s

sdktr

10/19/2022, 9:33 AM
Did any of you got Azure Devops to work as a https based Git driver? We’re hitting ‘error 400’ on ‘git-upload-pack’
Alex Olivier (Cerbos)

Alex Olivier (Cerbos)

10/19/2022, 9:39 AM
Hey - we’re aware of an issue with Azure Devops and the git storage engine that we are tracking here https://github.com/cerbos/cerbos/issues/1279
s

sdktr

10/19/2022, 2:34 PM
Awesome that this is logged, we’ll be trying the file based git as an alternative.
Alex Olivier (Cerbos)

Alex Olivier (Cerbos)

10/19/2022, 2:37 PM
That is the recommended work around at the moment I’m afraid. I’ll be sure you ping you once we have an update
s

sdktr

10/19/2022, 2:39 PM
We didn’t get the file based git to work eighter. It errored on ‘git resolves to working directory’ or something like that
Alex Olivier (Cerbos)

Alex Olivier (Cerbos)

10/19/2022, 2:41 PM
How are you running Cerbos? Can you share your config file?
s

sdktr

10/19/2022, 2:51 PM
We're testing using docker for desktop, mapping a folder with -v ${pwd}. I don't have the complete config at hand with the git error atm. But generally speaking it was: Cerbos (folder being mapped) |_http://.gi|.git/ |_config.yaml |_polices/policies.yaml Cat config.yaml storage: driver: "git" git: protocol: file url: file://policies/ checkoutDir: ${HOME}/tmp/cerbos/work updatePollInterval: 10s
Charith (Cerbos)

Charith (Cerbos)

10/19/2022, 3:09 PM
Because your git root is not in
policies
you have to provide the URL as
file:///cerbos
and then use
subDir: policies
to tell Cerbos that policies are in that sub directory
s

sdktr

10/19/2022, 3:21 PM
Aight, I think we did that as well, but will post the repo if needed
3:30 PM
We created a github repo for our testing, that one works as expected