enhancements to support postgres client-cert authentication #47
Reference in New Issue
Block a user
No description provided.
Delete Branch "refs/pull/47/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR adds a few new chart features which adds to the flexibility of the chart.
As a concrete example of how this can be used, I use is to configure Gitea to use client certificate authentication against an external Postgres database. That could be accomplished by having a
gitea-postgres-ssl
secret:and then mounting this as a volume in Gitea using:
To get the right permissions on the credentials, we'd use the
initPreScript
:and to make sure that Gitea uses the certificate we need to pass the proper postgres environment variables (both to the init container and the "main" container):
Thank you, I will test this later that day :)
looks good to me, tested basic functionality but didnt have time to test ssl.
@petergardfjall i guess you've tested, that ssl works since you've provided a detailed description?
We maybe should add the description into the README with another PR
Yes, I could probably contribute a PR for the README if you'd like.
I will have another look into this PR
I think that this PR is in need of another reviewer.
Please resolve the conflicts.
I was thinking about maybe implementing a build in variant to support certificate authorization. So that user can easily point to a cert, key and ca. This would eliminate the need of a pre init script. And would give an easier approach to support cert verification.
resolv conflicts and maybe discuss if we should implement a build in variant for certificates
@luhahn I rebased from
master
and (force) pushed to my fork (https://gitea.com/petergardfjall/helm-chart/commits/branch/support-postgres-ssl), which I expected to update the commits of this PR as well, but didn't seem to happen (the PR commits hashes are still the same). What's the process for this?@petergardfjall that is indeed weird, i've had a look at your branch and it is up to date with the current master.
Normally the PR should update automatically
I pushed an empty commit and that seems to have done the trick. The commits are now updated.
Sorry for the delay, had a lot of todos recently.
PR looks good, I think that the extra init parameters are quite useful had a few usecases myself.
@petergardfjall can you once again update your branch? So we can merge it as soon as possible? Sorry again for the delay
@luhahn Ok, just updated.
Can someone have a look at this PR? It has been open quite a while now.
The fact that this is introducing an initPreScript to inject an own script into the container is okay, since this enables users to customize the container even more.
Maybe we should change the chart version. @luhahn @petergardfjall ?
Yes an increment in the chart version can be done here or with another feature. Here would be better i guess.
What exactly do you want me to do to get this PR merged? Bump the minor version in
Chart.yaml
to0.0.1
?No, we don't need the Chart version anymore. I still think that we should merge this, but we first need the conflicts to be resolved + another reviewer
Okay, I've rebased onto
master
.