OpenConext / OpenConext/OpenConext-deploy
Migrate process_lastseen.php script
Nobody has claimed this yet.
- Dominant language
- Jinja
- Stars
- 16
- Forks
- 20
- Avg merge
- 4d 23h
- Merged PRs (30d)
- 2
Description
Currently this script is in PHP and requires PHP. The rsyslog role is not compatible with the current Debian target (no yum).
It is installed by the rsyslog role:
- process_lastseen.php.j2
- Installs PHP using YUM
- Runs the PHP script from a cronjob
- Cronjob: cron_update_lastseen.j2
It would make more sense to create a docker image that does all the log processing, i.e including: parse_ebauth_to_mysql.py and clean_loglogins.j2 and also include the stepup-authentication log so logins from direct SFO connections to the steup-gateway other that engine are also seen.
Contributor guide
No contributing guide indexed for this repository
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.
Research direction
Start with roles/rsyslog/tasks/process_auth_logs.yml and the referenced templates: process_lastseen.php.j2, parse_ebauth_to_mysql.py.j2, clean_loglogins.j2, and cron_update_lastseen.j2. Trace how the rsyslog role installs and runs them, then define the Docker image and deployment changes needed to consolidate log processing. Done means the PHP/YUM dependency is removed and the stepup-authentication log is included.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ansible, docker, php, python
- Domain
- devops, infrastructure
- Issue type
- Refactor
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100