I need feedback about the DbUser resource #418
Replies: 2 comments 2 replies
|
Thanks for the ping. |
|
The ro and rw users are meant for users who need to access the database. The authentication is rds-iam based. The password is stored as a k8s secret, but not really accessed/needed, because people using the rw and ro user authenticate themselves via rds-iam. As we don't want to manage the users manually, it is very convenient we can define them via for example the db-operator. But who knows there are other solutions for that. |
Uh oh!
There was an error while loading. Please reload this page.
I'm currently working on the new api version for
DbInstancesand I have thought that theDbUserresource doesn't really make a lot of sense. I've got a feeling that it's almost always used to simple provide permissions to existing users, so people which accounts are not manager by the operator can access the databases managed by the operator.I've decided that I would like to deprecate the
DbUsersand instead move this logic to theDbInstancelevel. What I currently have in mind is adding following to the CRD:And then when a following database is created:
ReadOnlyaccess is automatically added to thedevopsrole.And if database is created in the
my-application-dev-pr-103namespace, it will beReadWritefordevopsandReadOnlyfordevThen no DbUser resource is needed, it will be possible to manager users via for example Workload Identity, and the operator will only assign.
@mruoss @a-dekker I hope you don't mind that I ping you directly. I think you are using the
DbUserresource and I wanted to ask whether this approach would also work for you? And if not, could you please describe, what would be missing in that case?Thanks
All reactions