Migrate wiki-sync permission script to Kubernetes Job
#132 opened on Apr 7, 2026
Repository metrics
- Stars
- (2 stars)
- PR merge metrics
- (PR metrics pending)
Description
Currently wiki permissions are managed by a script that is running on the old salt infrastructure, but the wiki itself is already running in Kubernetes.
We should add this script to the Kubernetes config. It should ideally be run as a post-sync job so it runs after each new deployment, but it could also be a periodic cronjob.
The script can be found in the old salt-config repo.
It is run in the following way:
python3 /opt/wiki/wiki-sync.py /opt/wiki/mappings.json
It requires a configuration file and two environment variables:
WIKI_TOKEN="secret"
WIKI_URL="https://wiki.ia.utwente.nl/graphql"
The configuration file is a JSON version of this file.
I believe the script only uses the python 3 standard library, so we could simply use a py3 base image in the job, mount the script and config file from a configmap, set the env vars from a secret, and run it, no custom docker image required.