agdsn / hades

AG DSN Authentication and Authorization Infrastructure
MIT License
8 stars 3 forks source link

Provide a `hades-psql` helper script #105

Closed lukasjuhrich closed 2 years ago

lukasjuhrich commented 2 years ago

Currently, to access the hades postgresql database, one has to find the postgresql socket and invoke psql with that specific path. Specifically: sudo -u hades-database psql -h /var/run/hades/database hades

It would be nice if one would not have to retrieve this information (or have to rely on shell history) in order to do that.

I propose a hades-psql executable as part of the hades debian package that wraps the psql command.

Even better would be a hades cli with a psql subcommand (which may be offered as part of the hades python package).

lukasjuhrich commented 2 years ago

I retract my last suggestion as it would be inconsistent with the current choice of entrypoints (hades-agent, hades-portal).