-
Authentication using SAML
Last week I worked on adding support for registration using SAML in openwisp-radius. It had to look it up as I only heard about SAML and never worked with it. I found multiple modules for adding SAML support to a Django project, out of them djangosaml2 stood out. djangosaml2 is...
-
Generating queries in PSQL
I was interacting today with a Postgres server where I needed to change the owner of all of the tables of a database. An answer on StackOverflow suggested the following code which transfers ownership of call of the public tables. SELECT 'ALTER TABLE '|| schemaname || '."' || tablename ||'"...
-
Running a script on boot
ansible-wireguard-openwisp role needed to be updated to add this functionality. I modified the update_wireguard.sh script to introduce a new function for bringing up interfaces. Then I modified the script to allow calling each function from the terminal. Adding ”$@” at the end of file does the trick. Executing a command...
-
`host_vars` for Molecule Scenarios
Been working on the enhancing ansible-wireguard-openwisp. I added support for CentOS and RHEL 7 and 8 which was quite a chore. I have been using Debian derivatives for all of my development work and it took time to get used to workings of CentOS. The names of some system packages...
-
Ansible Role for Wireguard VPN Updater
For the last couple of days, I have been working on creating an Ansible role to configure the Wireguard server instance. It includes deploying scripts to automatically fetch configurations from OpenWISP Controller and update the Wireguard and VXLAN configuration on the server. The updater comprises a small Flask app that...