Hi. Besides Github, will Cerbos work with Gitlab? ...
# help
j
Hi. Besides Github, will Cerbos work with Gitlab? I'm referring to this https://docs.cerbos.dev/cerbos/latest/installation/helm.html
d
If you mean reading policies from GitLab repository, then yes.
j
Yes, that's what I mean. So it will be the same set of instructions at https://docs.cerbos.dev/cerbos/latest/installation/helm.html#_deploy_cerbos_configured_to_read_policies_from_a_github_repository except I replace the url and credentials with the gitlab ones?
d
Short answer: yes.
j
thank you Dennis
d
Longer answer: in addition to supporting any git repository there are other options for storage. https://docs.cerbos.dev/cerbos/latest/configuration/storage.html
j
holy moly! that's exactly what i need. thank you !!
๐ŸŽ‰ 1
d
Youโ€™re welcome, Jesum. Please let us know if you have any other questions anytime.
j
so if the policy store is offline (e.g. i have cerbos in GKE, and i use an AWS S3 bucket for policy storage) , will cerbos perform a fail open or fail close evaluation ?
and do i have a choice for configuring "fail open" or "fail close" ? or will the cerbos REST API calls just fail with HTTP500?
then it's up to my application logic how it wants to handle the HTTP500
d
It will keep working with downloaded policies if it fails to download the update.
j
oh so cerbos maintains a cache?
what triggers cache invalidation? when the next download is successful? will it survive a pod rolling restart (assuming i deploy cerbos as a service)?
d
It downloads it to a specified workDir
j
sorry for so many questions. i'm starting my ABAC infrastructure build and i hope to have a running instance within the next 5-6 days which i can let my app team use.
d
no worries, I am here to help
j
so i just have to ensure i mount the workdir in a K8s PV to ensure it survives a restart?
d
Yes, I think so
Unless you are certain you can always download it from the S3
We support GCS as well of your application runs in GKE.
j
i'm thinking of putting my storage in an easily accessible place for my policy team. GCS is difficult for them to get access to. Gitlab is easier with a browser and credentials.
so they can then login and author the policies in YAML.
if i use public gitlab with a PAT, i can then ensure they have access to it from anywhere.
i just need to make sure cerbos can survive a gitlab outage
so based on what you have said it sounds like it will as long as it has managed to download all the policies at least once.
d
Cerbos will download update from GitLab when it become available again, meanwhile using available policies.
j
then i can set up the workdir as a kubernetes persistent volume so that if GKE automatically updates my pods and performs a rolling restart, my "cached" policies are still intact in Cerbos
๐Ÿ‘ 1
ok!
by the way, what time zone are you in?
d
I am in Auckland, NZ (4pm now). We also have team members in Europe.
We have almost round the clock coverage in this Slack channel.
j
great! i'm in Singapore. so UTC+8.
๐ŸŽ‰ 2