Hades
Hades is the AG DSN authentication and authorization system
Documentation for Hades can be found on here
Building
Enter the hades
docker container:
docker compose exec --user=builder --workdir=/build/hades hades bash
Building arpreq
```shell
(
cd vendor \
&& (cd arpreq && dpkg-buildpackage --no-sign -b) \
&& sudo dpkg -i python3-arpreq_*.deb;
)
```
Building hades
```shell
dpkg-buildpackage --no-sign -b \
&& sudo dpkg -i ../hades_*.deb \
&& sudo systemctl start hades
```
Troubleshooting
Issues with the db schema / access
Try recreating the costgresql-cluster in the container:
```shell
sudo systemctl stop hades-database
sudo /usr/lib/hades/control-database.sh clear
sudo systemctl start hades-database
```
setup.py
cannot be deleted when rebuilding
This can happen when the template instantiation command fails,
which causes setup.py
to not be emitted.
Thus, setup.py clean
cannot possibly work.
The quickfix is to
```shell
touch /build/hades/setup.py
```
and then rebuild.
Misc
Drawing a systemd unit dependency graph
Inside the docker container:
```shell
sydstemd-analyze dot --to-pattern='hades*' > hades.dot
```
Then on your system (assuming it has `dot` installed):
```shell
dot -Tsvg <( hades.svg
xdg-open hades.svg
```