mothership / rds-auth-proxy

A "passwordless" login experience for your AWS RDS
https://mothership.github.io/rds-auth-proxy/
MIT License
35 stars 5 forks source link

Adds discovery API #17

Closed mothershipper closed 2 years ago

mothershipper commented 2 years ago

Part one of refactoring the configuration / target discovery process. This will help us support different discovery clients and eventually different engines (database servers).

This also happens to fix a bug due to threads accessing a mutable map. Decided against using a sync map for now in case we want to maintain a second map going from name -> target instead of looping over the array. The lock will let us modify both maps and show the result atomically.