Add periodic LDAP group / users sync
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
This issue has not been assessed yet.
Description
In the flagsmith application we have written a django management command that synchronises LDAP groups / users with Flagsmith groups / users. This can be run via python manage.py sync_ldap_users_and_groups. We'd like a process for enterprise users to run this on a specific schedule.
My immediate suggestion is to use k8s cron jobs, something like the following.
apiVersion: batch/v1
kind: CronJob
spec:
schedule: "0 * * * *"
jobTemplate:
spec:
template:
spec:
containers:
- name: ldap-sync
image: flagsmith:${{ api.version }}
imagePullPolicy: IfNotPresent
command:
- python
- manage.py
- sync_ldap_users_and_groups
restartPolicy: OnFailure
However, there are perhaps some additional complications here (I think we might need to add it to the run-docker.sh bash script for example? There might also be a simpler / better way to achieve this.
gz#262
- Dominant language
- Mustache
- Stars
- 44
- Forks
- 47
- Avg merge
- 14m
- Merged PRs (30d)
- 1
Getting set up
We have not checked this project's setup files yet. Start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Flagsmith/flagsmith-charts
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Flagsmith/flagsmith-charts#543 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Flagsmith/flagsmith-charts#588 ·
Maintainers usually reply within 1 day
-
tech-debt
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Flagsmith/flagsmith-charts#523 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 52/100
Flagsmith/flagsmith-charts#446 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
Flagsmith/flagsmith-charts#443 ·
Maintainers usually reply within 1 day