by yungwarlock · 11mo ago · 0 comments
The flow is you declare the databases and tables you want to access and the specific permissions you want, an operator reviews it, if accepted it generates a temporary postgres user with those permissions you need. Also, all the connections to the database are proxied through the app, so the domain name and port are random and short-lived, so you don't expose internal database hosts. As an extra, all SQL statements during the user sessions are logged if you want to see that.
It's available at https://github.com/yungwarlock/pam_postgres
My primary goal of this is to drill myself as a product engineer working on a technical product.