Did any of you got Azure Devops to work as a https...
# help
s
Did any of you got Azure Devops to work as a https based Git driver? We’re hitting ‘error 400’ on ‘git-upload-pack’
a
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
Awesome that this is logged, we’ll be trying the file based git as an alternative.
a
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
We didn’t get the file based git to work eighter. It errored on ‘git resolves to working directory’ or something like that
a
How are you running Cerbos? Can you share your config file?
s
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|.gi>t/ |_config.yaml |_polices/policies.yaml Cat config.yaml storage: driver: "git" git: protocol: file url: file://policies/ checkoutDir: ${HOME}/tmp/cerbos/work updatePollInterval: 10s
c
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
Aight, I think we did that as well, but will post the repo if needed
We created a github repo for our testing, that one works as expected