Giter VIP home page Giter VIP logo

amazon-rds-proxy-multitenant-load-test's People

Contributors

rezabekf avatar samsanders23 avatar smusand avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

amazon-rds-proxy-multitenant-load-test's Issues

Database connection failed due to 1045 (28000)

The environment variable here Is causing the issue and 100% of connection is getting dropped. The logs show error

Database connection failed due to 1045 (28000): Access denied for user 'user117'@'%' (using password: NO)

The working solutions is to remove ${DbClusterResourceId} and replace it with * which essentially give access to any cluster/database instance in the account.

The Access denied error only appears when connecting to database with Proxy in front of it. The No Proxy cluster access is fine and working as expected.

Example removes any existing secrets associated to RDS Proxy and wouldn't scale to more active / dynamic tenant list

This is as much a question / clarification than anything, but as somebody looking to build a multi-tenant RDS Proxy solution with AWS, this example is a bit misleading in that it doesn't really call out the limitation with this approach, mainly that this solution would remove any existing RDS Proxy secrets that may have existed prior to the creation of the new secrets / users.

In my mind, this would be a viable solution for a small number of relatively static tenants, but for something like a SaaS that might scale out to hundreds (or even more) of users, dynamically creating users in the way demonstrated in this example doesn't seem tenable. Of course an API call could be made to fetch the existing secrets associated with the proxy, then append a list of additional secrets, but I imagine most people building out a multi-tenant system would be interested in scaling this past a handful of secrets.

I'm interested to know if this pattern does indeed scale (i.e. the pseudo logic mentioned above of fetching the proxy config to get existing secrets, appending any new secret(s), then updating with the complete list) or would be supported by RDS Proxy, or if this approach is really only workable for a small, relatively static set of tenants?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.