-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
fix(core): Do not save credential overwrites data into the database #13170
fix(core): Do not save credential overwrites data into the database #13170
Conversation
Codecov ReportAttention: Patch coverage is
📢 Thoughts on this report? Let us know! |
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.
Looks good. Couple minor suggestions. I'll build a custom image of this and test this
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.
🚀
|
n8n
|
Project |
n8n
|
Branch Review |
CAT-634-do-not-save-credential-overwrites-data-in-db
|
Run status |
|
Run duration | 04m 35s |
Commit |
|
Committer | कारतोफ्फेलस्क्रिप्ट™ |
View all properties for this run ↗︎ |
Test results | |
---|---|
|
0
|
|
1
|
|
5
|
|
0
|
|
435
|
View all changes introduced in this branch ↗︎ |
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.
🚀
|
✅ All Cypress E2E specs passed |
Got released with |
Summary
During oauth flows we update the credentials in the DB a few times. At some point we switched to rewriting the credentials data in the DB, with the data including defaults and overwrites.
This PR updated this code to do partial updates and deleted on credentials data to ensure that we only change the relevant parts of the data, and never include that did not come from the user or the 3rd party service.
Related Linear tickets, Github issues, and Community forum posts
CAT-634
Review / Merge checklist
release/backport
(if the PR is an urgent fix that needs to be backported)