-
Notifications
You must be signed in to change notification settings - Fork 61
feat: allow for dedicated event streams database user #1468
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| credential_type = models.CredentialType.objects.get( | ||
| name=enums.DefaultCredentialType.POSTGRES | ||
| ) | ||
| for field in credential_type.inputs.get("fields", []): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ttuffin should we save/update this only if we are missing the type so its just done once and use the new schema which has the type and maybe other changes down the road.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mkanoor I've updated the logic to check if there is any mismatch with the schema, and if so, reapply the entire schema.
mkanoor
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comment added
f614283 to
e770be4
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## main #1468 +/- ##
==========================================
+ Coverage 91.45% 91.46% +0.01%
==========================================
Files 234 234
Lines 10089 10102 +13
==========================================
+ Hits 9227 9240 +13
Misses 862 862
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
8deb9f5 to
836abfe
Compare
|
Added unit tests. |
836abfe to
e68d997
Compare
- Fix postrgres credential type but adding the 'type' field - Allow for setting a specific event stream database user
e68d997 to
ccbf22d
Compare
|



This change allows for the definition of a dedicated database user account specifically for event streams. If
EVENT_STREAM_DB_USERandEVENT_STREAM_DB_PASSWORDare defined, those credentials will be used by both the event stream (producer) and the activation (consumer). If either of these settings are undefined the default database credentials will be used.https://issues.redhat.com/browse/AAP-64874