-
Notifications
You must be signed in to change notification settings - Fork 53.3k
feat(core): Add log streaming events for external secrets provider #23990
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
feat(core): Add log streaming events for external secrets provider #23990
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
E2E Tests: n8n tests passed after 7m 0.4s Run Details
Groups
This message was posted automatically by
currents.dev | Integration Settings
|
MarcL
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.
Looking great! Thanks for your first PR @phyllis-noester! 🎉
Just some minor nits about naming consistency.
| eventService.emit('external-secrets-provider-settings-saved', event); | ||
|
|
||
| expect(eventBus.sendAuditEvent).toHaveBeenCalledWith({ | ||
| eventName: 'n8n.audit.external-secrets-provider-settings.saved', |
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.
Rename as suggested above?
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.
good point thanks! added the requested changes :)
packages/cli/src/events/__tests__/log-streaming-event-relay.test.ts
Outdated
Show resolved
Hide resolved
This comment has been minimized.
This comment has been minimized.
Co-authored-by: Marc Littlemore <[email protected]>
MarcL
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.
Nice! ![]()
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.
No issues found across 7 files
Summary
Two new log streaming events will be sent:
n8n.audit.external-secrets-provider-settings.savedwhenever a new secrets provider is added or an existing one is updated (this is handled identically in the code). tested locallyexternal-secrets-provider-reloadedwhenever a secrets provider is reloaded meaning the secrets are refetched. I was not able to test that locally because I don't have valid credentials to a secrets storeYou can test this by setting up log streaming locally and seeing an event arrive when you update a secrets provider
setting up log streaming locally: https://github.com/n8n-io/n8n/blob/29bd48acbd6d52d93b9f0424db3c9a9a7c2a80bf/packages/cli/test/integration/eventbus/README-manual-test-syslog.md
Related Linear tickets, Github issues, and Community forum posts
https://linear.app/n8n/issue/PAY-2932/log-streaming-add-external-secrets
Review / Merge checklist
release/backport(if the PR is an urgent fix that needs to be backported)