-
Notifications
You must be signed in to change notification settings - Fork 0
feat: Add listener for inject audit context in jobs #101
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
Conversation
f32ffd5 to
57e515e
Compare
57e515e to
8b96c9b
Compare
caseylocker
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.
In CleanupJobAuditContextListener is only attached to the JobProcessed event. If a job fails before completion, the context may persist and pollute the next job data. Add a cleanup on failure as well: JobFailed and JobExceptionOccurred.
|
@andrestejerina97 any update on #101 (review) ? |
|
Thanks @caseylocker i have updated with new changes |
smarcet
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.
@andrestejerina97 please review comments
|
@smarcet new changes to review |
smarcet
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.
LGTM
|
Please can you review this @caseylocker @romanetar |
romanetar
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.
LGTM
This is an improvement to obtain the audit context in a worker's job. The idea is to attack the listener just before the job is sent, inject the context of the request into the payload, and then, just before starting processing, pass the context to the app container.
ref: https://app.clickup.com/t/86b892wkn